如何RGB帧转换为YUV在Android中使用GPU? [英] How to convert RGB frame to YUV in android using GPU?

查看:3473
本文介绍了如何RGB帧转换为YUV在Android中使用GPU?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找H / W加速的方式来RGB帧的android转换为YUV(比如说YUV420)。
我确实看到Renderscript有intrisics为YUV这样对RGB转换。我找了RGB虽则YUV。结果

I am looking for h/w accelerated way to convert RGB frame to YUV (say YUV420) in android. I do see Renderscript has intrisics to do this for YUV to RGB conversion. I am looking for the RGB to YUV though.

我的Cortex-A8需要这个嵌入式系统(基于Android 4.0.3)与SGX530 GPU核心。我喜欢做这一点,保持在每秒10帧改变720P ARGB框架。在ARM A8内核这样做是不行的。这就是为什么我在寻找一种方式来做到这一点使用GPU计算。
我想象Renderscript或基于OpenGL的实施能够解决this.But不知道怎么样。结果

I need this for an embedded system (Android 4.0.3 based) with Cortex-A8 with SGX530 GPU core. I like to do this on a 720p ARGB frame that keeps changing at 10 frames per sec. Doing this on ARM A8 core is not acceptable. Thats why I am looking for a way to do this using GPU compute. I am imagining Renderscript or OpenGL based implementation can solve this.But don't know how.

一个博客张贴在这里 HTTP://www.mdk。 org.pl/2007/11/17/gl-colorspace-conversions 有例子做RGB使用的GStreamer和OpenGL YUV转换。结果
我寻找的东西,在Android上的作品。结果

A blog post here http://www.mdk.org.pl/2007/11/17/gl-colorspace-conversions has example for doing RGB to YUV conversion using GStreamer and OpenGL.
I am looking for something that works on Android.

编辑:
链接 http://slouken.blogspot.com/2011/02 /mpeg-acceleration-with-glsl.html 具有良好的指针。仍在研究。

The link http://slouken.blogspot.com/2011/02/mpeg-acceleration-with-glsl.html has good pointers. Still researching.

推荐答案

时使用真的有必要的GPU? Cortex-A8的NEON有一个支持可快速转换帧作​​为GPU的可能。有一个很漂亮的C库需要CPU H型护理/ W加速:的http:// code.google.com / p / libyuv /

Is using the GPU really necessary? Cortex-A8 has NEON support an can convert the frames as fast as the GPU could. There is a very nice c library that takes care of CPU h/w acceleration: http://code.google.com/p/libyuv/.

这篇关于如何RGB帧转换为YUV在Android中使用GPU?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆