diff options
author | Niklas Haas <git@nand.wakku.to> | 2016-05-16 00:14:02 +0200 |
---|---|---|
committer | Niklas Haas <git@nand.wakku.to> | 2016-05-16 02:45:39 +0200 |
commit | 965031ccd5acb04dcff2bbbfea0ac35a3c035ecb (patch) | |
tree | 204f46bed3250164094a599b502b41005bd491c3 /video/out/opengl/video.h | |
parent | 362015cd770de486c5dea218d3609450682756ca (diff) | |
download | mpv-965031ccd5acb04dcff2bbbfea0ac35a3c035ecb.tar.bz2 mpv-965031ccd5acb04dcff2bbbfea0ac35a3c035ecb.tar.xz |
vo_opengl: use enums for choice options internally
This is much more readable than hard-coding magic IDs all over the file,
and removes the need for all the explanatory comments that were a direct
result of this.
Diffstat (limited to 'video/out/opengl/video.h')
-rw-r--r-- | video/out/opengl/video.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/video/out/opengl/video.h b/video/out/opengl/video.h index 5a14cb3ee5..22cbaeec0a 100644 --- a/video/out/opengl/video.h +++ b/video/out/opengl/video.h @@ -78,6 +78,31 @@ enum scaler_unit { SCALER_COUNT }; +enum dither_algo { + DITHER_NONE = 0, + DITHER_FRUIT, + DITHER_ORDERED, +}; + +enum alpha_mode { + ALPHA_NO = 0, + ALPHA_YES, + ALPHA_BLEND, + ALPHA_BLEND_TILES, +}; + +enum blend_subs_mode { + BLEND_SUBS_NO = 0, + BLEND_SUBS_YES, + BLEND_SUBS_VIDEO, +}; + +enum prescalers { + PRESCALE_NONE = 0, + PRESCALE_SUPERXBR, + PRESCALE_NNEDI3, +}; + struct gl_video_opts { int dumb_mode; struct scaler_config scaler[4]; |