diff options
author | wm4 <wm4@nowhere> | 2015-01-06 15:21:26 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-06 16:51:02 +0100 |
commit | 5410a5b2c55b5c7d9889451c1d6e56c697325a2c (patch) | |
tree | e7989451ced95a879a1d92b9037db86fa6b4c9e0 /video/csputils.h | |
parent | a52ca8a2b075388dc7dd5012e4e3f4871e26b133 (diff) | |
download | mpv-5410a5b2c55b5c7d9889451c1d6e56c697325a2c.tar.bz2 mpv-5410a5b2c55b5c7d9889451c1d6e56c697325a2c.tar.xz |
csputils: move image_params -> csp_params into a function
Although the line count increases, this is better for making sure
everything is handled consistently for all users of the mp_csp_params
stuff.
This also makes sure mp_csp_params is always initialized with
MP_CSP_PARAMS_DEFAULTS (for consistency).
Diffstat (limited to 'video/csputils.h')
-rw-r--r-- | video/csputils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/video/csputils.h b/video/csputils.h index 4e2fe611b3..51de50c4b6 100644 --- a/video/csputils.h +++ b/video/csputils.h @@ -133,6 +133,10 @@ struct mp_csp_params { .rgamma = 1, .ggamma = 1, .bgamma = 1, \ .texture_bits = 8, .input_bits = 8} +struct mp_image_params; +void mp_csp_set_image_params(struct mp_csp_params *params, + const struct mp_image_params *imgparams); + enum mp_chroma_location { MP_CHROMA_AUTO, MP_CHROMA_LEFT, // mpeg2/4, h264 |