gst_caps_unref (state->allocation_caps);
if (state->codec_data)
gst_buffer_unref (state->codec_data);
+ if (state->mastering_display_info)
+ g_slice_free (GstVideoMasteringDisplayInfo, state->mastering_display_info);
+ if (state->content_light_level)
+ g_slice_free (GstVideoContentLightLevel, state->content_light_level);
g_slice_free (GstVideoCodecState, state);
}
#include <gst/gst.h>
#include <gst/video/video-prelude.h>
+#include <gst/video/video-hdr.h>
G_BEGIN_DECLS
#define GST_TYPE_VIDEO_CODEC_STATE \
* 'codec_data' field of a stream, or NULL.
* @allocation_caps: The #GstCaps for allocation query and pool
* negotiation. Since: 1.10
+ * @mastering_display_info: Mastering display color volume information
+ * (HDR metadata) for the stream. Since: 1.20
+ * @content_light_level: Content light level information for the stream.
+ * Since: 1.20
*
* Structure representing the state of an incoming or outgoing video
* stream for encoders and decoders.
* gst_video_decoder_set_output_state() or
* gst_video_encoder_set_output_state() methods.
*/
+/**
+ * GstVideoCodecState.mastering_display_info:
+ *
+ * Mastering display color volume information (HDR metadata) for the stream.
+ *
+ * Since: 1.20
+ */
+/**
+ * GstVideoCodecState.content_light_level:
+ *
+ * Content light level information for the stream.
+ *
+ * Since: 1.20
+ */
struct _GstVideoCodecState
{
/*< private >*/
GstCaps *allocation_caps;
+ GstVideoMasteringDisplayInfo *mastering_display_info;
+ GstVideoContentLightLevel *content_light_level;
+
/*< private >*/
- gpointer padding[GST_PADDING_LARGE - 1];
+ gpointer padding[GST_PADDING_LARGE - 3];
};
/**