mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
msdk: map Y212_LE to VA_FOURCC_Y216
In media driver, VA_FOURCC_Y216 is used for packed 12 bits 4:2:2 YUV format, the corresponding RT format is VA_RT_FORMAT_YUV422_12
This commit is contained in:
parent
34177985e2
commit
01edef09a3
1 changed files with 4 additions and 0 deletions
|
@ -587,6 +587,10 @@ gst_msdk_export_dmabuf_to_vasurface (GstMsdkContext * context,
|
|||
va_chroma = VA_RT_FORMAT_YUV420_12;
|
||||
va_fourcc = VA_FOURCC_P016;
|
||||
break;
|
||||
case GST_VIDEO_FORMAT_Y212_LE:
|
||||
va_chroma = VA_RT_FORMAT_YUV422_12;
|
||||
va_fourcc = VA_FOURCC_Y216;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
goto error_unsupported_format;
|
||||
|
|
Loading…
Reference in a new issue