summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/video.h')
-rw-r--r--video/out/opengl/video.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/video/out/opengl/video.h b/video/out/opengl/video.h
index a1918bef39..db1a80e074 100644
--- a/video/out/opengl/video.h
+++ b/video/out/opengl/video.h
@@ -31,7 +31,7 @@
// Other texture units are reserved for specific purposes
#define TEXUNIT_SCALERS TEXUNIT_VIDEO_NUM
-#define TEXUNIT_3DLUT (TEXUNIT_SCALERS+4)
+#define TEXUNIT_3DLUT (TEXUNIT_SCALERS+SCALER_COUNT)
#define TEXUNIT_DITHER (TEXUNIT_3DLUT+1)
struct lut3d {
@@ -69,6 +69,14 @@ struct scaler {
struct filter_kernel kernel_storage;
};
+enum scaler_unit {
+ SCALER_SCALE, // luma/video
+ SCALER_DSCALE, // luma-video downscaling
+ SCALER_CSCALE, // chroma upscaling
+ SCALER_TSCALE, // temporal scaling (interpolation)
+ SCALER_COUNT
+};
+
struct gl_video_opts {
int dumb_mode;
struct scaler_config scaler[4];