mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
94b554e7a2
commit
3e4d8d27b3
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue