Browse Source

Add experimental support for MediaCodec on Android

pull/102/head
MaranBr 8 months ago
parent
commit
bbf40454ae
  1. 3
      src/video_core/host1x/ffmpeg/ffmpeg.cpp

3
src/video_core/host1x/ffmpeg/ffmpeg.cpp

@ -36,8 +36,9 @@ constexpr std::array PreferredGpuDecoders = {
AV_HWDEVICE_TYPE_CUDA,
AV_HWDEVICE_TYPE_VAAPI,
AV_HWDEVICE_TYPE_VDPAU,
#elif defined(__ANDROID__)
AV_HWDEVICE_TYPE_MEDIACODEC
#endif
AV_HWDEVICE_TYPE_VULKAN,
};
AVPixelFormat GetGpuFormat(AVCodecContext* codec_context, const AVPixelFormat* pix_fmts) {

Loading…
Cancel
Save