Creates a new CodecState with the specified fmt, width
and height as the output state for the decoder.
Any previously set output state on this 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
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().
| this |
a Decoder |
| fmt |
a Format |
| width |
The width in pixels |
| height |
The height in pixels |
| reference |
An optional reference CodecState |
|
the newly configured output state. |