mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
Add definitions for YUV420 with more than 8 bits per channel
This commit is contained in:
parent
a2171ea0eb
commit
009c2c72c9
2 changed files with 11 additions and 1 deletions
|
@ -65,6 +65,7 @@ G_BEGIN_DECLS
|
|||
* @GST_VAAPI_CHROMA_TYPE_YUV400: YUV 4:0:0 chroma format (grayscale)
|
||||
* @GST_VAAPI_CHROMA_TYPE_RGB32: 32-bit RGB chroma format
|
||||
* @GST_VAAPI_CHROMA_TYPE_RGB16: 16-bit RGB chroma format
|
||||
* @GST_VAAPI_CHROMA_TYPE_YUV420_10BPP: YUV 4:2:0 chroma format, more than 8 bits per channel
|
||||
*
|
||||
* The set of all chroma types for #GstVaapiSurface.
|
||||
*/
|
||||
|
@ -77,7 +78,8 @@ typedef enum
|
|||
GST_VAAPI_CHROMA_TYPE_YUV410,
|
||||
GST_VAAPI_CHROMA_TYPE_YUV400,
|
||||
GST_VAAPI_CHROMA_TYPE_RGB32,
|
||||
GST_VAAPI_CHROMA_TYPE_RGB16
|
||||
GST_VAAPI_CHROMA_TYPE_RGB16,
|
||||
GST_VAAPI_CHROMA_TYPE_YUV420_10BPP
|
||||
} GstVaapiChromaType;
|
||||
|
||||
/**
|
||||
|
|
|
@ -231,6 +231,9 @@ string_of_va_chroma_format (guint chroma_format)
|
|||
MAP (RGB32);
|
||||
MAP (RGBP);
|
||||
#endif
|
||||
#if VA_CHECK_VERSION(0,38,1)
|
||||
MAP (YUV420_10BPP);
|
||||
#endif
|
||||
#undef MAP
|
||||
default:
|
||||
break;
|
||||
|
@ -299,6 +302,11 @@ from_GstVaapiChromaType (guint chroma_type)
|
|||
case GST_VAAPI_CHROMA_TYPE_RGB16:
|
||||
format = VA_RT_FORMAT_RGB16;
|
||||
break;
|
||||
#endif
|
||||
#if VA_CHECK_VERSION(0,38,1)
|
||||
case GST_VAAPI_CHROMA_TYPE_YUV420_10BPP:
|
||||
format = VA_RT_FORMAT_YUV420_10BPP;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
format = 0;
|
||||
|
|
Loading…
Reference in a new issue