GNOME Bugzilla – Bug 746142
tests: Add unit test for alpha manipulation in video-converter
Last modified: 2018-11-03 11:35:56 UTC
Add unit test for alpha manipulation in video-converter.
Created attachment 299301 [details] [review] unit test case for alpha Attached unit test case. Pls review.
More unit tests, excellent!
Comment on attachment 299301 [details] [review] unit test case for alpha > [...] >+ >+ out_data = GST_VIDEO_FRAME_PLANE_DATA (&outframe, 0); >+ out_bpp = GST_VIDEO_FRAME_COMP_PSTRIDE (&outframe, 0); >+ >+#if G_BYTE_ORDER == G_LITTLE_ENDIAN From a quick glance at the code I'd suggest ifdefing out_bpp += 3 on != G_LITTLE_ENDIAN (or similar) once and drop all the other ifdefs. Quite Shorter and a lot cleaner this way.
Created attachment 300420 [details] [review] unit test case for alpha Thanks. Modified it.
This seems to fail for me though - does it rely on other patches? libs/video.c:2613:F:general:test_video_convert_alpha:0: 'out_data[i * out_bpp + alpha_offset]' (186) is not equal to '0x7F' (127) C
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/173.