mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 05:28:48 +00:00
video-format: Add P012_LE format.
It can be used as HEVC YUV_4:2:0 12bits stream's decoder output, and also can be used as the input format for encoding HEVC YUV_4:2:0 12bits stream. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/359>
This commit is contained in:
parent
26afaab523
commit
7d3a19bace
2 changed files with 2 additions and 0 deletions
|
@ -97,6 +97,7 @@ vaapi_image_is_linear (const VAImage * va_image)
|
|||
data_size = 4 * width * height;
|
||||
break;
|
||||
case VA_FOURCC ('P', '0', '1', '0'):
|
||||
case VA_FOURCC ('P', '0', '1', '2'):
|
||||
data_size = 2 * (width * height + 2 * width2 * height2);
|
||||
break;
|
||||
case VA_FOURCC ('R', 'G', '2', '4'):
|
||||
|
|
|
@ -93,6 +93,7 @@ static const GstVideoFormatMap gst_vaapi_video_default_formats[] = {
|
|||
DEF_YUV (VA_BYTE_ORDER_NOT_CARE, GRAY8, ('Y', '8', '0', '0'), 8, 400),
|
||||
|
||||
DEF_YUV (VA_LSB_FIRST, P010_10LE, ('P', '0', '1', '0'), 24, 420_10BPP),
|
||||
DEF_YUV (VA_LSB_FIRST, P012_LE, ('P', '0', '1', '2'), 24, 420_12BPP),
|
||||
/* AYUV is a clear defined format by doc */
|
||||
DEF_YUV (VA_LSB_FIRST, VUYA, ('A', 'Y', 'U', 'V'), 32, 444),
|
||||
|
||||
|
|
Loading…
Reference in a new issue