Commit 6fc392b6 authored by Thomas Guillem's avatar Thomas Guillem
Browse files

fourcc: add VAAPI opaque chroma

parent 3c0a8a50
......@@ -348,6 +348,9 @@
/* VDPAU output surface RGBA */
#define VLC_CODEC_VDPAU_OUTPUT VLC_FOURCC('V','D','O','R')
/* VAAPI opaque surface */
#define VLC_CODEC_VAAPI_420 VLC_FOURCC('V','A','O','P') /* 4:2:0 8 bpc */
/* MediaCodec/IOMX opaque buffer type */
#define VLC_CODEC_ANDROID_OPAQUE VLC_FOURCC('A','N','O','P')
......
......@@ -377,6 +377,10 @@ static const vlc_fourcc_t p_CVPX_VIDEO_I420_fallback[] = {
VLC_CODEC_CVPX_I420, VLC_CODEC_I420, 0,
};
static const vlc_fourcc_t p_VAAPI_420_fallback[] = {
VLC_CODEC_VAAPI_420, VLC_CODEC_I420,
};
static const vlc_fourcc_t p_I440_fallback[] = {
VLC_CODEC_I440,
VLC_CODEC_YUV_PLANAR_420,
......@@ -459,6 +463,7 @@ static const vlc_fourcc_t *pp_YUV_fallback[] = {
p_CVPX_VIDEO_NV12_fallback,
p_CVPX_VIDEO_UYVY_fallback,
p_CVPX_VIDEO_I420_fallback,
p_VAAPI_420_fallback,
NULL,
};
......@@ -481,6 +486,7 @@ static const vlc_fourcc_t p_list_YUV[] = {
VLC_CODEC_CVPX_NV12,
VLC_CODEC_CVPX_UYVY,
VLC_CODEC_CVPX_I420,
VLC_CODEC_VAAPI_420,
0,
};
......@@ -697,6 +703,8 @@ static const struct
VLC_CODEC_CVPX_I420, VLC_CODEC_CVPX_BGRA },
FAKE_FMT() },
{ { VLC_CODEC_VAAPI_420 }, FAKE_FMT() },
{ { 0 }, FAKE_FMT() }
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment