GNOME Bugzilla – Bug 733588
videobox: Add format conversion gray to/from AYUV/RGB
Last modified: 2014-09-24 07:10:58 UTC
Currently, videobox supports below format conversions I420->AYUV I420->YV12 YV12->AYUV YV12->I420 AYUV->I420 AYUV->YV12 AYUV->xRGB (24bpp, 32bpp, incl. alpha) xRGB->xRGB (24bpp, 32bpp, from/to all variants, incl. alpha) xRGB->AYUV (24bpp, 32bpp, incl. alpha) RGB/YUV to GRAY and vice-versa isn't supported, although videobox can work with GRAY format pipelines like below will work without converter if gray conversion is supported. gst-launch-1.0 videotestsrc ! "video/x-raw,format={GRAY8}" ! videobox ! ximagesink
Created attachment 281452 [details] [review] AYUV <-> GRAY conversion
Created attachment 281453 [details] [review] GRAY8 <-> GRAY16 conversion
Created attachment 281454 [details] [review] RGB <-> GRAY conversion
Created attachment 281455 [details] [review] Unit tests for supported conversions Patches for proposed changes attached.
Looks good. Could you tell me how to test this fully before I go ahead and merge it?
I don't think we should add more format conversions to videobox... having any at all there already was not very clever. If anything we should use the code from videoconvert in here instead of reimplementing it.
See bug #732415
Yes, I later learnt about videoscale and videoconvert API enhancement.
A patch that changes the conversion code in videobox to use those would be nice though, if you want to work on that :)
Sure. :)