forked from eden-emu/eden
Add experimental support for MediaCodec on Android
This commit is contained in:
parent
b2b993b665
commit
bbf40454ae
1 changed files with 2 additions and 1 deletions
|
@ -36,8 +36,9 @@ constexpr std::array PreferredGpuDecoders = {
|
||||||
AV_HWDEVICE_TYPE_CUDA,
|
AV_HWDEVICE_TYPE_CUDA,
|
||||||
AV_HWDEVICE_TYPE_VAAPI,
|
AV_HWDEVICE_TYPE_VAAPI,
|
||||||
AV_HWDEVICE_TYPE_VDPAU,
|
AV_HWDEVICE_TYPE_VDPAU,
|
||||||
|
#elif defined(__ANDROID__)
|
||||||
|
AV_HWDEVICE_TYPE_MEDIACODEC
|
||||||
#endif
|
#endif
|
||||||
AV_HWDEVICE_TYPE_VULKAN,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
AVPixelFormat GetGpuFormat(AVCodecContext* codec_context, const AVPixelFormat* pix_fmts) {
|
AVPixelFormat GetGpuFormat(AVCodecContext* codec_context, const AVPixelFormat* pix_fmts) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue