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 797267 - video: add new Y210 pixel format (packed 4:2:2, 10-bit)
video: add new Y210 pixel format (packed 4:2:2, 10-bit)
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal enhancement
: 1.15.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks: 797264
 
 
Reported: 2018-10-10 06:11 UTC by Fei
Modified: 2018-11-15 14:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add Y210 pixel format support. (5.82 KB, patch)
2018-10-10 06:15 UTC, Fei
committed Details | Review

Comment 1 Fei 2018-10-10 06:15:05 UTC
Created attachment 373880 [details] [review]
Add Y210 pixel format support.
Comment 2 Sebastian Dröge (slomo) 2018-10-10 10:44:42 UTC
How does this differ from v210?
Comment 3 Nicolas Dufresne (ndufresne) 2018-10-10 11:50:55 UTC
v210
https://wiki.multimedia.cx/index.php/V210

The order differ, v210 is UYVY, Y210 is YUYV. The also, the packing if different. v210 packs over 32 bit, 2 distributed padding bit, while Y210 uses 6bits padding per components (like all the other MS formats).

Please make sure to run make check / ninja test. We have a generic test for pixels formats which is very good at catching any errors.
Comment 4 Fei 2018-10-11 09:53:46 UTC
(In reply to Nicolas Dufresne (ndufresne) from comment #3)
> v210
> https://wiki.multimedia.cx/index.php/V210
> 
> The order differ, v210 is UYVY, Y210 is YUYV. The also, the packing if
> different. v210 packs over 32 bit, 2 distributed padding bit, while Y210
> uses 6bits padding per components (like all the other MS formats).
> 
> Please make sure to run make check / ninja test. We have a generic test for
> pixels formats which is very good at catching any errors.

Thanks ndufresne for your clear explain. Also, make check looks good for this patch.
Comment 5 Fei 2018-10-12 01:09:45 UTC
Hi, could someone help to review this patch? Our next task(https://bugzilla.gnome.org/show_bug.cgi?id=797264) is blocked by this patch. 
Thanks~
Comment 6 Nicolas Dufresne (ndufresne) 2018-10-12 03:23:59 UTC
I'm more busy then usual, but lately I took care of new pixel formats. This one seems fine, the name is horrible though, but as it's referenced by Microsoft this way, let's keep it. In any case, feel free  to start implementing the vaapi bits, Victor could then merge these two together.
Comment 7 Fei 2018-10-12 05:21:13 UTC
(In reply to Nicolas Dufresne (ndufresne) from comment #6)
> I'm more busy then usual, but lately I took care of new pixel formats. This
> one seems fine, the name is horrible though, but as it's referenced by
> Microsoft this way, let's keep it. In any case, feel free  to start
> implementing the vaapi bits, Victor could then merge these two together.

Thanks ndufresne, I will ping Victor to help merge two patch together after I finished gst-vaapi side one.
Comment 8 Nicolas Dufresne (ndufresne) 2018-10-31 15:14:47 UTC
Patch looked good, manual tests showed that it works, so I merged it. I have fixed typos in the commit message.

commit cc0bcd585626ac1d01cde4258420325a535c0962 (HEAD -> master, origin/master, origin/HEAD)
Author: Wangfei <fei.w.wang@intel.com>
Date:   Tue Oct 9 15:25:37 2018 +0800

    video: add Y210 pixel format.
    
    This pixel format is packed format with 4:2:2 sample and 10
    available bits of each channel.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=797267
Comment 9 Sebastian Dröge (slomo) 2018-11-15 09:13:12 UTC
Review of attachment 373880 [details] [review]:

::: gst-libs/gst/video/video-format.h
@@ +142,3 @@
   GST_VIDEO_FORMAT_v210,
   GST_VIDEO_FORMAT_v216,
+  GST_VIDEO_FORMAT_Y210,

This breaks ABI, it must be added at the end
Comment 10 Nicolas Dufresne (ndufresne) 2018-11-15 14:40:15 UTC
Oops, complete missed that one, I'll send an Mr if no one beats me at it.