简体   繁体   English

是否可以检测Android编解码器是硬件还是软件?

[英]Is it possible to detect if Android codec is hardware or software?

As of title, I can programmatically get a lot of data about MediaCodecInfo in my Android app, but I cannot find a way to detect if a given codec is a hardware or software codec. 作为标题,我可以在我的Android应用程序中以编程方式获取有关MediaCodecInfo的大量数据,但我找不到一种方法来检测给定的编解码器是硬件还是软件编解码器。

I usually assume that codec name like OMX.google.* are software codecs, but how can I be sure if a codec is an hardware one? 我通常认为像OMX.google。*这样的编解码器名称是软件编解码器,但我怎么能确定编解码器是否是硬件编解码器?

EDIT To give more context to the question, I am trying to analyze all the codecs supported by a mobile device. 编辑为了提供更多问题的上下文,我试图分析移动设备支持的所有编解码器。

Andrea did you try to pass the accessory method getCodecInfo() ? Andrea你试过传递附件方法getCodecInfo()吗?

there is the official documentation that explains how to use it 有官方文档说明如何使用它

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

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