0

Hy everyone,

I try to convert yuv data (yuv420p) in rgb data in ios 5 with OpenGLES. I already had a look at the GLCameraRipple Demo from Apple, but that did not worked for me.

Have anybody tried this before and can help me?

Cheers

Brad Larson
  • 170,088
  • 45
  • 397
  • 571
MrCoinSiX
  • 571
  • 1
  • 6
  • 13
  • 1
    What didn't work about it? Apple provides all the code required to take in YUV data and convert those frames to RGB right in that example. You're going to need to be more specific. – Brad Larson May 16 '12 at 20:23
  • The Demo is using a biplanar format, but yuv420p is a planar yuv format. That is the problem!! – MrCoinSiX May 24 '12 at 20:29
  • @TheRock that should just mean adjusting your texture sampling; the conversion is the same. – Tommy Oct 03 '12 at 01:23
  • @Tommy, Apple supports only yuv biplanar and ARGB interleaved. Hence, the conversion is not allowed – Shravya Boggarapu Apr 26 '16 at 11:00
  • @ShravyaBoggarapu `gl_FragColor = yuvToRGB * texture2D(yuv420pSource, coordinate);`. – Tommy Apr 26 '16 at 14:12

1 Answers1

0

The GLCameraRipple doesn't use RAW YUV data. It uses a frame buffer straight from the camera. Getting the GLCameraRipple to work with raw YUV data is not possible because you cannot layer back a manual created buffer.

junglecat
  • 643
  • 1
  • 10
  • 19