mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
gstvaapifilter: Add guard for VAProcFilterSkinToneEnhancement
VAProcFilterSkinToneEnhancement is avaialbe from VA >= 0.36. Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
This commit is contained in:
parent
6b88777627
commit
eb465fb392
1 changed files with 2 additions and 0 deletions
|
@ -458,10 +458,12 @@ op_data_new (GstVaapiFilterOp op, GParamSpec * pspec)
|
|||
op_data->va_cap_size = sizeof (VAProcFilterCap);
|
||||
op_data->va_buffer_size = sizeof (VAProcFilterParameterBuffer);
|
||||
break;
|
||||
#if VA_CHECK_VERSION(0,36,0)
|
||||
case GST_VAAPI_FILTER_OP_SKINTONE:
|
||||
op_data->va_type = VAProcFilterSkinToneEnhancement;
|
||||
op_data->va_buffer_size = sizeof (VAProcFilterParameterBuffer);
|
||||
break;
|
||||
#endif
|
||||
case GST_VAAPI_FILTER_OP_HUE:
|
||||
op_data->va_subtype = VAProcColorBalanceHue;
|
||||
goto op_colorbalance;
|
||||
|
|
Loading…
Reference in a new issue