video: add support for AV12
authorDaniel Almeida <daniel.almeida@collabora.com>
Fri, 21 May 2021 15:24:37 +0000 (12:24 -0300)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Sat, 22 May 2021 01:16:24 +0000 (21:16 -0400)
commit6760c7fd766d0be5d37ce911f73502fe5463f5e2
treecf23445b945f3ade3c431b42e2c6ce0b6590ef9b
parent038ba1bffe4fd6751e3c5edd2797413875f38d79
video: add support for AV12

AV12 is an internally conceived format that is actually
the combination of NV12 and an alpha plane.

This format is to add to gstreamer's webM
transparency support for vp8 and vp9. To this end, two
I420 streams are independently decoded simultaneously for
the actual content and the alpha plane respectively
and these are then combined into A420.

Since most hardware decoders output NV12, this patch adds
NV12+A to make the same workflow possible.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1152>
gst-libs/gst/video/video-converter.c
gst-libs/gst/video/video-format.c
gst-libs/gst/video/video-format.h
gst-libs/gst/video/video-info.c
gst-libs/gst/video/video-orc.orc