[Mesa-dev] [PATCH 2/4] st/va: add extra parameters to vl_compositor_set_csc_matrix

Nayan Deshmukh nayan26deshmukh at gmail.com
Tue Jun 7 11:28:32 UTC 2016


Add extra parmeters min and max luma for the luma key filter.
setting them to opposite value 1.f and 0.f respectively won't effect
the CSC conversion

Signed-off-by: Nayan Deshmukh <nayan26deshmukh at gmail.com>
---
 src/gallium/state_trackers/va/context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c
index 51abd87..898f81a 100644
--- a/src/gallium/state_trackers/va/context.c
+++ b/src/gallium/state_trackers/va/context.c
@@ -159,7 +159,7 @@ VA_DRIVER_INIT_FUNC(VADriverContextP ctx)
    vl_compositor_init_state(&drv->cstate, drv->pipe);
 
    vl_csc_get_matrix(VL_CSC_COLOR_STANDARD_BT_601, NULL, true, &drv->csc);
-   vl_compositor_set_csc_matrix(&drv->cstate, (const vl_csc_matrix *)&drv->csc);
+   vl_compositor_set_csc_matrix(&drv->cstate, (const vl_csc_matrix *)&drv->csc, 1.f, 0.f);
    pipe_mutex_init(drv->mutex);
 
    ctx->pDriverData = (void *)drv;
-- 
2.5.5



More information about the mesa-dev mailing list