mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
msdk: map P012_LE to VA_FOURCC_P016
In media driver, VA_FOURCC_P016 is used for semi-planar 12 bits YUV format, the corresponding RT format is VA_RT_FORMAT_YUV420_12
This commit is contained in:
parent
c5763f66c9
commit
94fa88b6da
1 changed files with 4 additions and 0 deletions
|
@ -579,6 +579,10 @@ gst_msdk_export_dmabuf_to_vasurface (GstMsdkContext * context,
|
|||
va_chroma = VA_RT_FORMAT_YUV444_10;
|
||||
va_fourcc = VA_FOURCC_Y410;
|
||||
break;
|
||||
case GST_VIDEO_FORMAT_P012_LE:
|
||||
va_chroma = VA_RT_FORMAT_YUV420_12;
|
||||
va_fourcc = VA_FOURCC_P016;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
goto error_unsupported_format;
|
||||
|
|
Loading…
Reference in a new issue