|
|
|
@ -122,7 +122,7 @@ bool Decoder::SupportsDecodingOnDevice(AVPixelFormat* out_pix_fmt, AVHWDeviceTyp |
|
|
|
} |
|
|
|
|
|
|
|
if (config->methods & AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX && config->device_type == type) { |
|
|
|
LOG_INFO(HW_GPU, "Using {} GPU Decoder", av_hwdevice_get_type_name(type)); |
|
|
|
LOG_INFO(HW_GPU, "Using {} GPU decoder", av_hwdevice_get_type_name(type)); |
|
|
|
*out_pix_fmt = config->pix_fmt; |
|
|
|
return true; |
|
|
|
} |
|
|
|
@ -226,7 +226,7 @@ bool DecoderContext::OpenContext(const Decoder& decoder) { |
|
|
|
} |
|
|
|
|
|
|
|
if (!m_codec_context->hw_device_ctx) { |
|
|
|
LOG_INFO(HW_GPU, "Using FFmpeg CPU Decoder"); |
|
|
|
LOG_INFO(HW_GPU, "Using FFmpeg CPU decoder"); |
|
|
|
} |
|
|
|
|
|
|
|
return true; |
|
|
|
|