diff options
author | wm4 <wm4@nowhere> | 2014-03-29 00:25:08 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-03-29 00:25:08 +0100 |
commit | bd0618f01f1331c1ba0a3b2bb65975b5a21fe2e2 (patch) | |
tree | aa7ecd5d7a7662130c8a25d3dd569ac6c50624c2 /video/out/vo.c | |
parent | fdeda359f7b060ec0a926eccb86c01b736a1ee16 (diff) | |
download | mpv-bd0618f01f1331c1ba0a3b2bb65975b5a21fe2e2.tar.bz2 mpv-bd0618f01f1331c1ba0a3b2bb65975b5a21fe2e2.tar.xz |
video/out: remove legacy colorspace stuff
Reduce most dependencies on struct mp_csp_details, which was a bad first
attempt at dealing with colorspace stuff. Instead, consistently use
mp_image_params.
Code which retrieves colorspace matrices from csputils.c still uses this
type, though.
Diffstat (limited to 'video/out/vo.c')
-rw-r--r-- | video/out/vo.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/video/out/vo.c b/video/out/vo.c index 66c148135d..340817633d 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -450,16 +450,6 @@ int vo_reconfig(struct vo *vo, struct mp_image_params *params, int flags) vo->waiting_mpi = NULL; vo->redrawing = false; vo->hasframe = false; - if (vo->config_ok) { - // Legacy - struct mp_csp_details csp; - if (vo_control(vo, VOCTRL_GET_YUV_COLORSPACE, &csp) > 0) { - csp.levels_in = params->colorlevels; - csp.levels_out = params->outputlevels; - csp.format = params->colorspace; - vo_control(vo, VOCTRL_SET_YUV_COLORSPACE, &csp); - } - } return ret; } |