Function ffmpeg_encoder_decoder::utils::find_hw_config
Defined in File utils.hpp
Function Documentation
-
enum AVPixelFormat ffmpeg_encoder_decoder::utils::find_hw_config(bool *usesHWFrames, enum AVHWDeviceType hwDevType, const AVCodec *codec)
finds hardware configuration.
Finds hardware configuration, in particular the target pixel format and whether the encoder uses hardware frame upload.
- Parameters:
usesHWFrames – will be set to true if hw frames are used
hwDevType – the hardware device type to probe get the config for
codec – the codec to get the config for
- Returns:
the hardware pixel format to use, or AV_PIX_FMT_NONE