diff options
author | Niklas Haas <git@nand.wakku.to> | 2016-03-05 09:42:57 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-03-05 13:08:38 +0100 |
commit | 8ac6f6acf0845b390fe02f8d7fd5b3155a592c2d (patch) | |
tree | 2bc8bb9706c1a6f44c87324ab5cc0635772278a0 /video/out/opengl/video.h | |
parent | 93546f0c2f8e4df211eb907e1247aa6f2b97721d (diff) | |
download | mpv-8ac6f6acf0845b390fe02f8d7fd5b3155a592c2d.tar.bz2 mpv-8ac6f6acf0845b390fe02f8d7fd5b3155a592c2d.tar.xz |
vo_opengl: add macros for scaler units
There was no real point in hard-coding these all over the place,
especially since the order was sort of arbitrary and confusing.
Diffstat (limited to 'video/out/opengl/video.h')
-rw-r--r-- | video/out/opengl/video.h | 10 |
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]; |