VideoDecoder.setOutputState
gstvideo.video_codec_state.VideoCodecState setOutputState(gstvideo.types.VideoFormat fmt, uint width, uint height, gstvideo.video_codec_state.VideoCodecState reference = null)Creates a new #GstVideoCodecState with the specified fmt, width and height as the output state for the decoder. Any previously set output state on decoder will be replaced by the newly created one.
If the subclass wishes to copy over existing fields (like pixel aspec ratio, or framerate) from an existing #GstVideoCodecState, it can be provided as a reference.
If the subclass wishes to override some fields from the output state (like pixel-aspect-ratio or framerate) it can do so on the returned #GstVideoCodecState.
The new output state will only take effect (set on pads and buffers) starting from the next call to #[gstvideo.video_decoder.VideoDecoder.finishFrame].
Parameters
fmt | a #GstVideoFormat |
width | The width in pixels |
height | The height in pixels |
reference | An optional reference #GstVideoCodecState |
Returns
the newly configured output state.