AVCodecContext.pix_fmt

Pixel format, see AV_PIX_FMT_xxx. May be set by the demuxer if known from headers. May be overridden by the decoder if it knows better.

@note This field may not match the value of the last AVFrame output by avcodec_receive_frame() due frame reordering.

- encoding: Set by user. - decoding: Set by user if known, overridden by libavcodec while parsing the data.

struct AVCodecContext
AVPixelFormat pix_fmt;

Meta