Improve HEVC hardware decoding defaults on MTK Android TV#190
Open
zhiffu wants to merge 1 commit into
Open
Conversation
- 电视端默认优先系统 MediaCodec 硬解,避免 Exo 扩展软解接管 HEVC - 保留手动选择 NextLib 的能力,兼顾特殊片源兼容性 - 低内存回收 HomeActivity 时不再误触发全局退出,减少播放中退回主页
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Why this helps MTK TV SoCs
On MTK Android TV devices with capable HEVC hardware decoders, extension-first renderer selection can make high-bitrate H.265/HEVC playback fall back to app-process software decoding. In that case CPU usage spikes and playback stutters even though the device has a working
c2.mtk.hevc.decoder.This change should benefit other MTK Android TV SoCs with a similar Codec2/MediaCodec HEVC hardware decoder path, because it lets the platform decoder win by default. It is not MTK-only code and should be safe on other TV devices too, but the biggest benefit is expected on MTK TVs where HEVC software fallback is noticeably expensive. Users can still select NextLib manually if a specific stream needs it.
Validation
:app:assembleArmeabiHisenseNormalRelease.