msdkvpp: Use filter flag to handle passthrough for tone mapping

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5449>
This commit is contained in:
Mengkejiergeli Ba 2023-10-10 09:52:48 +08:00 committed by GStreamer Marge Bot
parent c2ed8759c8
commit c14f4cda0c
2 changed files with 2 additions and 0 deletions

View file

@ -1709,6 +1709,7 @@ gst_msdkvpp_set_property (GObject * object, guint prop_id,
break;
case PROP_HDR_TONE_MAPPING:
thiz->hdr_tone_mapping = g_value_get_boolean (value);
thiz->flags |= (thiz->hdr_tone_mapping ? GST_MSDK_FLAG_TONE_MAPPING : 0);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);

View file

@ -56,6 +56,7 @@ typedef enum {
GST_MSDK_FLAG_SCALING_MODE = 1 << 9,
GST_MSDK_FLAG_FRC = 1 << 10,
GST_MSDK_FLAG_VIDEO_DIRECTION = 1 << 11,
GST_MSDK_FLAG_TONE_MAPPING = 1 << 12,
} GstMsdkVppFlags;
struct _GstMsdkVPP