Function ffmpeg_encoder_decoder::utils::get_hwframe_transfer_formats

Function Documentation

std::vector<enum AVPixelFormat> ffmpeg_encoder_decoder::utils::get_hwframe_transfer_formats(AVBufferRef *hwframe_ctx, enum AVHWFrameTransferDirection direction)

Gets all pixel formats that can be transferred to the hardware device.

Parameters:

hwframe_ctx – the hardware frame context for which transfer is intended

Returns:

vector of allowed pixel formats