mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +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_YUV400: YUV 4:0:0 chroma format (grayscale)
|
||||||
* @GST_VAAPI_CHROMA_TYPE_RGB32: 32-bit RGB chroma format
|
* @GST_VAAPI_CHROMA_TYPE_RGB32: 32-bit RGB chroma format
|
||||||
* @GST_VAAPI_CHROMA_TYPE_RGB16: 16-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.
|
* The set of all chroma types for #GstVaapiSurface.
|
||||||
*/
|
*/
|
||||||
|
@ -77,7 +78,8 @@ typedef enum
|
||||||
GST_VAAPI_CHROMA_TYPE_YUV410,
|
GST_VAAPI_CHROMA_TYPE_YUV410,
|
||||||
GST_VAAPI_CHROMA_TYPE_YUV400,
|
GST_VAAPI_CHROMA_TYPE_YUV400,
|
||||||
GST_VAAPI_CHROMA_TYPE_RGB32,
|
GST_VAAPI_CHROMA_TYPE_RGB32,
|
||||||
GST_VAAPI_CHROMA_TYPE_RGB16
|
GST_VAAPI_CHROMA_TYPE_RGB16,
|
||||||
|
GST_VAAPI_CHROMA_TYPE_YUV420_10BPP
|
||||||
} GstVaapiChromaType;
|
} GstVaapiChromaType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -231,6 +231,9 @@ string_of_va_chroma_format (guint chroma_format)
|
||||||
MAP (RGB32);
|
MAP (RGB32);
|
||||||
MAP (RGBP);
|
MAP (RGBP);
|
||||||
#endif
|
#endif
|
||||||
|
#if VA_CHECK_VERSION(0,38,1)
|
||||||
|
MAP (YUV420_10BPP);
|
||||||
|
#endif
|
||||||
#undef MAP
|
#undef MAP
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
@ -299,6 +302,11 @@ from_GstVaapiChromaType (guint chroma_type)
|
||||||
case GST_VAAPI_CHROMA_TYPE_RGB16:
|
case GST_VAAPI_CHROMA_TYPE_RGB16:
|
||||||
format = VA_RT_FORMAT_RGB16;
|
format = VA_RT_FORMAT_RGB16;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
#if VA_CHECK_VERSION(0,38,1)
|
||||||
|
case GST_VAAPI_CHROMA_TYPE_YUV420_10BPP:
|
||||||
|
format = VA_RT_FORMAT_YUV420_10BPP;
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
format = 0;
|
format = 0;
|
||||||
|
|
Loading…
Reference in a new issue