From 5410a5b2c55b5c7d9889451c1d6e56c697325a2c Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 6 Jan 2015 15:21:26 +0100 Subject: 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). --- video/out/vo_direct3d.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'video/out/vo_direct3d.c') diff --git a/video/out/vo_direct3d.c b/video/out/vo_direct3d.c index 4a2c86aab7..7183f7d555 100644 --- a/video/out/vo_direct3d.c +++ b/video/out/vo_direct3d.c @@ -1152,9 +1152,7 @@ static void update_colorspace(d3d_priv *priv) { float coeff[3][4]; struct mp_csp_params csp = MP_CSP_PARAMS_DEFAULTS; - csp.colorspace = priv->params.colorspace; - csp.levels_in = priv->params.colorlevels; - csp.levels_out = priv->params.outputlevels; + mp_csp_set_image_params(&csp, &priv->params); mp_csp_copy_equalizer_values(&csp, &priv->video_eq); if (priv->use_shaders) { -- cgit v1.2.3