Android MediaCodec HEVC Supported Resolutions

别说谁变了你拦得住时间么 提交于 2019-12-23 18:29:44

问题


Does anyone know what the supported resolutions are for Android MediaCodec when decoding HEVC?

Through trial and error I've found that the following work:

640x272
720x304
960x400
1280x528
1920x800
2560x1072

And the following don't:

512x216
3840x1600

Is there any official documentation?


回答1:


I doubt that there is any official documentation - in practice, you can probably rely on the fact that the resolutions that are tested by the CTS work, but other resolutions can behave in any way.

Judging from Android MediaCodec for HEVC, I guess you're testing with a device which only has got the SW decoder. I would actually guess that the real HW decoders would be more capable or more compatible, than the SW decoder. (This may sound counterintuitive, but this is especially the case historically with the H264 SW encoder, which is very limited.)

The first non-working resolution has a height that isn't dividable by 16 (all the working resolutions have both width and height dividable by 16), while the other one might be "too large". Does that hypothesis seem to hold up if you test more resolutions?



来源:https://stackoverflow.com/questions/28068537/android-mediacodec-hevc-supported-resolutions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!