title: How to convert RGB frame to YUV in android using GPU?
body: <p>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.<br></p>
  
  <p>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.<br></p>
  
  <p>A blog post here <a href="http://www.mdk.org.pl/2007/11/17/gl-colorspace-conversions" rel="nofollow">http://www.mdk.org.pl/2007/11/17/gl-colorspace-conversions</a> has example for doing RGB to YUV conversion using GStreamer and OpenGL.<br>
  I am looking for something that works on Android.<br></p>
  
  <p>Edit:
  The link <a href="http://slouken.blogspot.com/2011/02/mpeg-acceleration-with-glsl.html" rel="nofollow">http://slouken.blogspot.com/2011/02/mpeg-acceleration-with-glsl.html</a> has good pointers. Still researching.</p>