Compare commits

...
Sign in to create a new pull request.

3 commits

Author SHA1 Message Date
772db74bfc Set delay after decoder creation
All checks were successful
eden-license / license-header (pull_request) Successful in 51s
2025-07-23 16:04:23 -04:00
213a7acdd0 Force GPU decoding to make some tests
All checks were successful
eden-license / license-header (pull_request) Successful in 39s
2025-07-23 13:40:11 -04:00
bbf40454ae Add experimental support for MediaCodec on Android 2025-07-23 13:17:24 -04:00
3 changed files with 4 additions and 3 deletions

View file

@ -41,7 +41,7 @@ void Decoder::Decode() {
if (!frame.get()) { if (!frame.get()) {
LOG_ERROR(HW_GPU, LOG_ERROR(HW_GPU,
"Nvdec {} dailed to decode interlaced frame for top 0x{:X} bottom 0x{:X}", id, "Nvdec {} failed to decode interlaced frame for top 0x{:X} bottom 0x{:X}", id,
luma_top, luma_bottom); luma_top, luma_bottom);
} }

View file

@ -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) {

View file

@ -45,7 +45,7 @@ private:
NvdecCommon::NvdecRegisters regs{}; NvdecCommon::NvdecRegisters regs{};
std::unique_ptr<Decoder> decoder; std::unique_ptr<Decoder> decoder;
bool wait_needed{false}; bool wait_needed{true};
}; };
} // namespace Host1x } // namespace Host1x