summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/formats.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-06-30 17:13:58 +0200
committerwm4 <wm4@nowhere>2017-06-30 17:56:42 +0200
commit6eb0bbe312c8422f3180b530126e1dfebb47295e (patch)
treecdac4beaefa37c4e07c2c7c91c04fc8fe830e67d /video/out/opengl/formats.c
parent0c0a06140c8460115d5ce357a8adfc4d8c1bae69 (diff)
downloadmpv-6eb0bbe312c8422f3180b530126e1dfebb47295e.tar.bz2
mpv-6eb0bbe312c8422f3180b530126e1dfebb47295e.tar.xz
vo_opengl: remove mp_imgfmt_desc and IMGFLAG_ usage
These were weird due to their past, and often undefined or ill-defined. Time to get rid of them.
Diffstat (limited to 'video/out/opengl/formats.c')
-rw-r--r--video/out/opengl/formats.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/opengl/formats.c b/video/out/opengl/formats.c
index 562f35da31..5678e0f75f 100644
--- a/video/out/opengl/formats.c
+++ b/video/out/opengl/formats.c
@@ -308,6 +308,8 @@ bool gl_get_imgfmt_desc(GL *gl, int imgfmt, struct gl_imgfmt_desc *out)
for (int i = 0; i < plane->num_components; i++)
res.components[n][i] = plane->components[i];
}
+ res.chroma_w = regfmt.chroma_w;
+ res.chroma_h = regfmt.chroma_h;
goto supported;
}
@@ -319,6 +321,7 @@ bool gl_get_imgfmt_desc(GL *gl, int imgfmt, struct gl_imgfmt_desc *out)
return false;
for (int n = 0; n < 3; n++)
res.components[0][n] = n + 1;
+ res.chroma_w = res.chroma_h = 1;
goto supported;
}
if (imgfmt == IMGFMT_UYVY || imgfmt == IMGFMT_YUYV) {
@@ -331,6 +334,7 @@ bool gl_get_imgfmt_desc(GL *gl, int imgfmt, struct gl_imgfmt_desc *out)
res.components[0][0] = 3;
res.components[0][1] = 1;
res.components[0][2] = 2;
+ res.chroma_w = res.chroma_h = 1;
goto supported;
}