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 outputted by avcodec_decode_video2 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