video: Pass component index not plane index
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 18 May 2021 19:36:36 +0000 (15:36 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 19 May 2021 15:17:56 +0000 (15:17 +0000)
commit3897b24f6978f527f4294f65bda10d255749ce57
tree328cd7eb9114b88e8a90ba492999c9ec480f2361
parent42512c92de9fb49f1b2af48889313f0ff0c9fd6b
video: Pass component index not plane index

While so far it worked, we are about to introduce a format that break this
assuming. We have a format which consist of NV12 with alpha, and this format
does not have a direct mapping of the component against their plane indexes.

Fix this by using gst_video_format_info_component() introduced in 1.18 for
this purpose.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1151>
gst-libs/gst/gl/egl/gsteglimage.c
gst-libs/gst/gl/gstglmemory.c
gst-libs/gst/gl/gstglutils.c
gst-libs/gst/video/video-converter.c
gst-libs/gst/video/video-frame.c
gst-libs/gst/video/video-info.c
gst/compositor/compositor.c
gst/rawparse/gstrawvideoparse.c