Commit b87bab4d authored by Thomas Guillem's avatar Thomas Guillem

gl: cvpx: add P010 support

(cherry picked from commit dd614932)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent 129c6b93
......@@ -167,7 +167,8 @@ Open(vlc_object_t *obj)
if (tc->fmt.i_chroma != VLC_CODEC_CVPX_UYVY
&& tc->fmt.i_chroma != VLC_CODEC_CVPX_NV12
&& tc->fmt.i_chroma != VLC_CODEC_CVPX_I420
&& tc->fmt.i_chroma != VLC_CODEC_CVPX_BGRA)
&& tc->fmt.i_chroma != VLC_CODEC_CVPX_BGRA
&& tc->fmt.i_chroma != VLC_CODEC_CVPX_P010)
return VLC_EGENERIC;
struct priv *priv = calloc(1, sizeof(struct priv));
......@@ -234,6 +235,14 @@ Open(vlc_object_t *obj)
tc->texs[1].h = (vlc_rational_t) { 1, 2 };
break;
}
case VLC_CODEC_CVPX_P010:
{
fragment_shader =
opengl_fragment_shader_init(tc, tex_target, VLC_CODEC_P010,
tc->fmt.space);
tc->texs[1].h = (vlc_rational_t) { 1, 2 };
break;
}
case VLC_CODEC_CVPX_I420:
fragment_shader =
opengl_fragment_shader_init(tc, tex_target, VLC_CODEC_I420,
......
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