mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
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:
parent
c2ed8759c8
commit
c14f4cda0c
2 changed files with 2 additions and 0 deletions
|
@ -1709,6 +1709,7 @@ gst_msdkvpp_set_property (GObject * object, guint prop_id,
|
||||||
break;
|
break;
|
||||||
case PROP_HDR_TONE_MAPPING:
|
case PROP_HDR_TONE_MAPPING:
|
||||||
thiz->hdr_tone_mapping = g_value_get_boolean (value);
|
thiz->hdr_tone_mapping = g_value_get_boolean (value);
|
||||||
|
thiz->flags |= (thiz->hdr_tone_mapping ? GST_MSDK_FLAG_TONE_MAPPING : 0);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
|
||||||
|
|
|
@ -56,6 +56,7 @@ typedef enum {
|
||||||
GST_MSDK_FLAG_SCALING_MODE = 1 << 9,
|
GST_MSDK_FLAG_SCALING_MODE = 1 << 9,
|
||||||
GST_MSDK_FLAG_FRC = 1 << 10,
|
GST_MSDK_FLAG_FRC = 1 << 10,
|
||||||
GST_MSDK_FLAG_VIDEO_DIRECTION = 1 << 11,
|
GST_MSDK_FLAG_VIDEO_DIRECTION = 1 << 11,
|
||||||
|
GST_MSDK_FLAG_TONE_MAPPING = 1 << 12,
|
||||||
} GstMsdkVppFlags;
|
} GstMsdkVppFlags;
|
||||||
|
|
||||||
struct _GstMsdkVPP
|
struct _GstMsdkVPP
|
||||||
|
|
Loading…
Reference in a new issue