From bd0618f01f1331c1ba0a3b2bb65975b5a21fe2e2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 29 Mar 2014 00:25:08 +0100 Subject: 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. --- video/out/vo.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'video/out/vo.c') 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; } -- cgit v1.2.3