GNOME Bugzilla – Bug 745639
video: support YUYV fourcc as alias for YUY2
Last modified: 2018-11-03 11:35:27 UTC
Calling gst_video_format_from_fourcc with YUYV returns GST_VIDEO_FORMAT_UNKNOWN, YUYV is an alias for YUY2 so it should return YUY2 safely. I've found this by reading the pixelformat from v4l2.
Created attachment 298577 [details] [review] YUYV is YUY2
Created attachment 298579 [details] [review] YUYV is YUY2 fixup One less line.
Current list is based on X11/XV fourcc. Would be nice to go over V4L2, DRM and XV fourccs. If there is clash, I would rather suggest to deprecate and eventually remove this function.
(In reply to Nicolas Dufresne (stormer) from comment #3) > Current list is based on X11/XV fourcc. Would be nice to go over V4L2, DRM > and XV fourccs. If there is clash, I would rather suggest to deprecate and > eventually remove this function. I see. Should we mark this as invalid, then?
Would be nice to make this exercise first. If there is no clash, I'd say why not. If there is clash, it means we'll have a hard time supporting everyone.
Got it, I misunderstood. Isn't fourcc just a four characters code? I don't see how there could be a clash. May be you meant something else?
the same fourcc might not mean the same thing for V4L2, DRM, X11, Microsoft, ISOMP4, etc.
I think it's a reasonable patch. Only problem is what to do for _to_fourcc() then? :)
-- 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/168.