手机中用于硬件加速视频解码的 API 有哪些?
我见过许多智能手机配备了支持 mpeg2 和 h264 的硬件加速视频解码,但与台式机和笔记本电脑系统不同,我不清楚如何与硬件加速进行交互。 对于台式机/笔记本电脑,有 DXVA、VDPAU 和 OpenMax。 手机支持其中任何一个吗?我认为 OpenMax 是,但我不确定它的支持范围有多大。
有谁熟悉通常用于为运行 Android 或 Windows Phone 的 Snapdragon、Tegra 2 或 Omap 4 等平台编写硬件加速媒体播放器和解码器的内容吗? 我知道 ffmpeg 可以为arm编译,我想知道它在该平台上支持什么样的硬件视频加速。
I have seen many smartphones coming with hardware accelerated video decoding supporting mpeg2 and h264, but unlike in desktop and laptop systems, it is not clear to me how to interact with the hardware acceleration.
For desktops/laptops there is DXVA, VDPAU and OpenMax.
Is any of those supported in Mobile phones? I think OpenMax is, but I am not sure of how widely supported it is.
Is anyone familiar with what is usually used to write hardware accelerated media players and decoders for platforms like Snapdragon, Tegra 2 or Omap 4 running Android or Windows Phone?
I know that ffmpeg can be compiled for arm and I wonder what kind of hardware video acceleration it supports on that platform.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对于 ARM,这些将是基于芯片的特定于供应商的。我已经看到一些通过在硬件中集成视频解码算法的子集来提供加速,并且您需要设置特殊的寄存器来指向数据,翻转一点并等待输出。
我认为其中大部分都是 API,适用于正在使用的任何嵌入式 GPU(Nvidia 的 Tegra、PowerVR SGX)。我对这些了解不多,因为它们通常需要 NDA,而你得到的只是一个头文件和一个 ELF 二进制文件。
For ARMs, these are going to be vendor specific based on the silicon. I've seen some offer speedups by integrating subsets of the video decoding algorithms in hardware and you need to set up special registers to point to the data, flip a bit to go and wait for the output.
I think the majority of these though are going to be APIs to whatever embedded GPU is being used (Nvidia's Tegra, PowerVR SGX). I don't know a whole lot more about these, because they usually require NDAs and all you get is a header file and a ELF binary.
OpenGL ES 似乎几乎在所有地方都受到支持。
OpenGL ES seems to be supported pretty much everywhere.