[vlc-commits] nvdec_gl: handle display of 4:4:4 decoded pictures
Steve Lhomme
git at videolan.org
Fri Dec 13 17:28:17 CET 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Dec 13 15:51:22 2019 +0100| [9c834e14d8d8634f2667191d094cbdc15dd77c63] | committer: Steve Lhomme
nvdec_gl: handle display of 4:4:4 decoded pictures
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9c834e14d8d8634f2667191d094cbdc15dd77c63
---
modules/hw/nvdec/nvdec_gl.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/hw/nvdec/nvdec_gl.c b/modules/hw/nvdec/nvdec_gl.c
index 47eca06507..5c5773a5c2 100644
--- a/modules/hw/nvdec/nvdec_gl.c
+++ b/modules/hw/nvdec/nvdec_gl.c
@@ -131,7 +131,7 @@ tc_nvdec_gl_update(opengl_tex_converter_t const *tc, GLuint textures[],
.WidthInBytes = tex_widths[0],
.Height = tex_heights[i],
};
- if (tc->fmt.i_chroma != VLC_CODEC_NVDEC_OPAQUE)
+ if (tc->fmt.i_chroma != VLC_CODEC_NVDEC_OPAQUE && tc->fmt.i_chroma != VLC_CODEC_NVDEC_OPAQUE_444)
cu_cpy.WidthInBytes *= 2;
result = CALL_CUDA(cuMemcpy2DAsync, &cu_cpy, 0);
if (result != VLC_SUCCESS)
@@ -201,6 +201,8 @@ static int Open(vlc_object_t *obj)
{
case VLC_CODEC_NVDEC_OPAQUE_10B: render_chroma = VLC_CODEC_P010; break;
case VLC_CODEC_NVDEC_OPAQUE_16B: render_chroma = VLC_CODEC_P016; break;
+ case VLC_CODEC_NVDEC_OPAQUE_444: render_chroma = VLC_CODEC_I444; break;
+ case VLC_CODEC_NVDEC_OPAQUE_444_16B: render_chroma = VLC_CODEC_I444_16L; break;
case VLC_CODEC_NVDEC_OPAQUE:
default: render_chroma = VLC_CODEC_NV12; break;
}
More information about the vlc-commits
mailing list