vlc | branch: master | Thomas Guillem <tho...@gllm.fr> | Fri Feb 9 15:47:51 2018 +0100| [dd61493217411a3ca715f08c292fbc519445136e] | committer: Thomas Guillem
gl: cvpx: add P010 support > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dd61493217411a3ca715f08c292fbc519445136e --- modules/video_output/opengl/converter_cvpx.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/video_output/opengl/converter_cvpx.c b/modules/video_output/opengl/converter_cvpx.c index 2599dd88db..f0de830907 100644 --- a/modules/video_output/opengl/converter_cvpx.c +++ b/modules/video_output/opengl/converter_cvpx.c @@ -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, _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits