GstVideo.VideoCodecState

Fields

Name

Type

Access

Description

allocation_caps

Gst.Caps

r/w

The Gst.Caps for allocation query and pool negotiation.

caps

Gst.Caps

r/w

The Gst.Caps used in the caps negotiation of the pad.

codec_data

Gst.Buffer

r/w

a Gst.Buffer corresponding to the ‘codec_data’ field of a stream, or None.

content_light_level

GstVideo.VideoContentLightLevel

r/w

Content light level information for the stream.

info

GstVideo.VideoInfo

r/w

The GstVideo.VideoInfo describing the stream

mastering_display_info

GstVideo.VideoMasteringDisplayInfo

r/w

Mastering display color volume information (HDR metadata) for the stream.

padding

[object]

r

ref_count

int

r

Methods

ref ()

unref ()

Details

class GstVideo.VideoCodecState

Structure representing the state of an incoming or outgoing video stream for encoders and decoders.

Decoders and encoders will receive such a state through their respective set_format vmethods.

Decoders and encoders can set the downstream state, by using the GstVideo.VideoDecoder.set_output_state() or GstVideo.VideoEncoder.set_output_state() methods.

ref()[source]
Returns:

buf

Return type:

GstVideo.VideoCodecState

Increases the refcount of the given state by one.

unref()[source]

Decreases the refcount of the state. If the refcount reaches 0, the state will be freed.