[vlc-commits] [Git][videolan/vlc][master] opengl: interop: fix P010 texture configuration

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Thu Jun 30 10:11:14 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
0f8ace22 by Alexandre Janniaux at 2022-06-30T09:47:07+00:00
opengl: interop: fix P010 texture configuration

The interop texture configuration for P010 was not matching the one
removed in 4bc8c7c84e56a9c1d612b9eb9c8a5afe8856dd2f. In particular:

 - type must be GL_UNSIGNED_SHORT since we're using 16bit values.
 - chroma plane are 1/2 size of luma both in width and height.

Regression from c344522ff264caa43c9dbc710484f01edbad04cb.

Fixes #27101

- - - - -


1 changed file:

- modules/video_output/opengl/interop_cvpx.m


Changes:

=====================================
modules/video_output/opengl/interop_cvpx.m
=====================================
@@ -308,14 +308,14 @@ Open(vlc_object_t *obj)
                 .h = {1, 1},
                 .internal = GL_R16,
                 .format = GL_RED,
-                .type = GL_UNSIGNED_BYTE,
+                .type = GL_UNSIGNED_SHORT,
             };
             interop->texs[1] = (struct vlc_gl_tex_cfg) {
-                .w = {1, 1},
+                .w = {1, 2},
                 .h = {1, 2},
                 .internal = GL_RG16,
                 .format = GL_RG,
-                .type = GL_UNSIGNED_BYTE,
+                .type = GL_UNSIGNED_SHORT,
             };
 
             break;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0f8ace22191ecd44b438c3300a3ba109ebf1278e

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0f8ace22191ecd44b438c3300a3ba109ebf1278e
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list