set_output_state


Description:

public CodecState set_output_state (owned Caps caps, CodecState? reference)

Creates a new CodecState with the specified caps as the output state for the encoder.

Any previously set output state on this will be replaced by the newly created one.

The specified caps should not contain any resolution, pixel-aspect-ratio, framerate, codec-data, .... Those should be specified instead in the returned CodecState.

If the subclass wishes to copy over existing fields (like pixel aspect ratio, or framerate) from an existing CodecState, 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 CodecState.

The new output state will only take effect (set on pads and buffers) starting from the next call to finish_frame().

Parameters:

this

a Encoder

caps

the Caps to use for the output

reference

An optional reference GstVideoCodecState

Returns:

the newly configured output state.