After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 735436 - Puzzle: Porting GstPuzzle to 1.0
Puzzle: Porting GstPuzzle to 1.0
Status: RESOLVED WONTFIX
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other Linux
: Normal enhancement
: git master
Assigned To: Luis de Bethencourt
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-08-26 08:54 UTC by Vineeth
Modified: 2018-05-04 09:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Porting GstPuzzle element to 1.0 (29.50 KB, patch)
2014-08-26 08:54 UTC, Vineeth
none Details | Review

Description Vineeth 2014-08-26 08:54:05 UTC
Created attachment 284480 [details] [review]
Porting GstPuzzle element to 1.0

GstPuzzle was not ported to the latest version. 
Hence porting the same.

The same can be tested with the following command
gst-launch-1.0 videotestsrc pattern=snow ! videoconvert ! puzzle ! 'video/x-raw,width=320,height=240,format=(string)I420,framerate=30/1' ! videoconvert ! ximagesink

This is my first time porting an element, hence expecting a few review comments.

Please review the code.


PS: Right now the actual puzzle game is not implemented. This patch takes care of just porting the element. Will submit one more patch by changing the existing logic.
Comment 1 Luis de Bethencourt 2014-09-18 12:08:11 UTC
Don't have time at this moment to review the code, but this is really cool! Looking forward to playing with it soon.
Comment 2 Vineeth 2014-09-18 15:01:52 UTC
:).. please review the code whenever you get time.. will implement the actual game as soon as first version is submitted
Comment 3 Luis de Bethencourt 2014-10-06 12:43:38 UTC
Try it with the following pipeline:

gst-launch-1.0 uridecodebin uri="file:///home/user/samplevideo" ! videoconvert ! puzzle columns="3" rows="3" ! 'video/x-raw,width=320,height=240,format=(string)I420,fram
erate=30/1' ! videoconvert ! ximagesink

Using a concrete video you will notice the image isn't being shuffled in 9 blocks, but each channel. So it looks almost random instead of the classic puzzle like the image.

http://www.iossdktutorials.com/wp-content/uploads/2012/05/iconBig.png
Comment 4 Luis de Bethencourt 2014-10-06 12:53:05 UTC
Also, try avoiding having changes like the one in lines 212-218 of gst/games/gstpuzzle.c. You are just removing an empty line, which is an unnecessary style change.

https://bugzilla.gnome.org/attachment.cgi?id=284480&action=diff#a/gst/games/gstpuzzle.c_sec10
Comment 5 Vineeth 2014-10-07 05:35:37 UTC
Hi Luis,
   Thanks for the review.
As i have already mentioned in the first comment, the actual logic is not correct.
This patch takes care of just porting the existing element.
Since i was not sure when this patch will get accepted, i did not work on the logic part yet.
But now i will check the logic part as to why it is not working and update the same.
Can you please review the porting part in the meantime.


Regards,
Vineeth
Comment 6 Luis de Bethencourt 2014-10-07 10:10:07 UTC
Hi Vineeth,

The patch looks good then, but we should wait until the logic is fixed before merging. This way we avoid having a element that doesn't work well making it to the next release in case the logic isn't fixed by then.

I know you are busy, so I will work on fixing the element as soon as I can. Sounds like fun :)
Comment 7 Olivier Crête 2018-05-04 09:40:27 UTC
This element has been removed from the repo and hasn't been fixed here. If you care, please submit a patch to re-add a fixed version.