GNOME Bugzilla – Bug 730014
alpha: Should translate BGRx to BGRA instead of AYUV
Last modified: 2018-11-03 14:52:32 UTC
Currently in: gst-launch-1.0 -v videotestsrc ! video/x-raw,format=BGRx ! alpha alpha=0.5 ! glimagesink glimagesink will receive AYUV. This seems much slower then producing BGRA and setting the alpha byte. Would be a nice enhancement to try and address that.
Not so trivial: - It depends on the selected method, _SET is most efficient when no color conversion needs to happen. So in order of preference xRGB->ARGB, YUV->AYUV, xRGB->AYUV, YUV->ARGB - the color keying formats work on YUV so either getting input in YUV or outputting in YUV is ideal to avoid color conversions internally. Most ideal is to have input and output YUV. So in order of preference YUV->YUV, YUV->ARGB, ARGB->YUV, ARGB->ARGB I think the transform function is fine but probably it should have a custom fixate function that sorts based on prefered conversions.
-- 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-good/issues/116.