video: fix AV12 format lacking the GST_VIDEO_FORMAT_FLAG_ALPHA flag

The GST_VIDEO_FORMAT_FLAG_ALPHA indicates whether a video format has an
alpha channel.  AV12 does have an alpha plane.  Switching from
MAKE_YUV_FORMAT to MAKE_YUVA_FORMAT to generate GST_VIDEO_FORMAT_AV12.

Fixes #4081

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8067>
This commit is contained in:
Cheung Yik Pang 2024-12-04 18:45:30 +08:00 committed by GStreamer Marge Bot
parent abb11ad8b4
commit acc1309cdf

View file

@ -8026,7 +8026,7 @@ static const VideoFormat formats[] = {
PACK_RGBP),
MAKE_RGB_FORMAT (BGRP, "raw video", DPTH888, PSTR111, PLANE210, OFFS0, SUB444,
PACK_BGRP),
MAKE_YUV_FORMAT (AV12, "raw video", GST_MAKE_FOURCC ('A', 'V', '1', '2'),
MAKE_YUVA_FORMAT (AV12, "raw video", GST_MAKE_FOURCC ('A', 'V', '1', '2'),
DPTH8888, PSTR1221, PLANE0112, OFFS001, SUB4204, PACK_AV12),
MAKE_RGBA_LE_FORMAT (ARGB64_LE, "raw video", DPTH16_16_16_16, PSTR8888,
PLANE0, OFFS2460, SUB4444, PACK_ARGB64_LE),