filter: fix colorbalance related subtypes.

Fix intiialization of GstVaapiFilterOpData for colorbalance related
operations. In particular, fill in the va_subtype field accordingly.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
Zhao Halley 2013-09-04 13:53:25 +08:00 committed by Gwenole Beauchesne
parent 94b554e7a2
commit 3e4d8d27b3

View file

@ -418,9 +418,17 @@ op_data_new(GstVaapiFilterOp op, GParamSpec *pspec)
op_data->va_buffer_size = sizeof(VAProcFilterParameterBuffer);
break;
case GST_VAAPI_FILTER_OP_HUE:
op_data->va_subtype = VAProcColorBalanceHue;
goto op_colorbalance;
case GST_VAAPI_FILTER_OP_SATURATION:
op_data->va_subtype = VAProcColorBalanceSaturation;
goto op_colorbalance;
case GST_VAAPI_FILTER_OP_BRIGHTNESS:
op_data->va_subtype = VAProcColorBalanceBrightness;
goto op_colorbalance;
case GST_VAAPI_FILTER_OP_CONTRAST:
op_data->va_subtype = VAProcColorBalanceContrast;
op_colorbalance:
op_data->va_type = VAProcFilterColorBalance;
op_data->va_cap_size = sizeof(VAProcFilterCapColorBalance);
op_data->va_buffer_size = sizeof(VAProcFilterParameterBufferColorBalance);