summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/ra.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-08-07 19:18:58 +0200
committerwm4 <wm4@nowhere>2017-08-07 19:18:58 +0200
commitd45fbecbb5d8ba2c782cc419fa386f78b9473d82 (patch)
treec0549d6507f426bfa7d5f092a1fd7a56b7b95527 /video/out/opengl/ra.h
parent47ea771b7a29b04e35276d38733f72970b4dd448 (diff)
downloadmpv-d45fbecbb5d8ba2c782cc419fa386f78b9473d82.tar.bz2
mpv-d45fbecbb5d8ba2c782cc419fa386f78b9473d82.tar.xz
vo_opengl: add another ra_format field to exclude insane formats
Generic description of pixel formats is hard. In this case, the Apple special format for packed YUV could have been interpreted as a RGB format with funny packing.
Diffstat (limited to 'video/out/opengl/ra.h')
-rw-r--r--video/out/opengl/ra.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/opengl/ra.h b/video/out/opengl/ra.h
index a6c2461d89..47fa465d99 100644
--- a/video/out/opengl/ra.h
+++ b/video/out/opengl/ra.h
@@ -60,6 +60,8 @@ struct ra_format {
const char *name; // symbolic name for user interaction/debugging
void *priv;
enum ra_ctype ctype; // data type of each component
+ bool ordered; // components are sequential in memory, and returned
+ // by the shader in memory order
int num_components; // component count, 0 if not applicable, max. 4
int component_size[4]; // in bits, all entries 0 if not applicable
int component_depth[4]; // bits in use for each component, 0 if not applicable