简体   繁体   English

Android MediaCodec HEVC支持的解决方案

[英]Android MediaCodec HEVC Supported Resolutions

Does anyone know what the supported resolutions are for Android MediaCodec when decoding HEVC? 在解码HEVC时,有谁知道Android MediaCodec支持的分辨率是多少?

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? 有官方文件吗?

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. 我怀疑是否有任何官方文档 - 在实践中,您可能依赖于CTS测试的分辨率工作的事实,但其他分辨率可以以任何方式表现。

Judging from Android MediaCodec for HEVC , I guess you're testing with a device which only has got the SW decoder. Android MediaCodec的HEVC来看,我猜你正在使用只有SW解码器的设备进行测试。 I would actually guess that the real HW decoders would be more capable or more compatible, than the SW decoder. 我实际上猜测真正的硬件解码器比SW解码器更强大或更兼容。 (This may sound counterintuitive, but this is especially the case historically with the H264 SW encoder, which is very limited.) (这可能听起来违反直觉,但历史上使用H264 SW编码器尤其如此,这是非常有限的。)

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". 第一个非工作分辨率的高度不能被16分割(所有工作分辨率的宽度和高度都可以分割为16),而另一个可能“太大”。 Does that hypothesis seem to hold up if you test more resolutions? 如果您测试更多分辨率,这个假设似乎会支撑吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM