+op_set_skintone_level (GstVaapiFilter * filter,
+ GstVaapiFilterOpData * op_data, guint value)
+{
+ gboolean success = FALSE;
+
+ GST_VAAPI_DISPLAY_LOCK (filter->display);
+ success = op_set_skintone_level_unlocked (filter, op_data, value);
+ GST_VAAPI_DISPLAY_UNLOCK (filter->display);
+ return success;
+}
+
+#ifndef GST_REMOVE_DEPRECATED
+/* Update skin tone enhancement */
+static gboolean
+op_set_skintone_unlocked (GstVaapiFilter * filter,
+ GstVaapiFilterOpData * op_data, gboolean value)
+{
+ if (!op_data)
+ return FALSE;
+
+ if (!value) {
+ op_data->is_enabled = 0;
+ return TRUE;
+ }
+
+ return op_set_skintone_level_unlocked (filter, op_data, 3);
+}
+
+static inline gboolean