Function ffmpeg_encoder_decoder::utils::get_encoder_formats

Function Documentation

std::vector<enum AVPixelFormat> ffmpeg_encoder_decoder::utils::get_encoder_formats(const AVCodecContext *context, const AVCodec *avctx)

finds all formats that the encoder supports.

Note that for VAAPI, this will justreturn AV_PIX_FMT_VAAPI since it uses hardware frames.

Param :