I managed to use the referenced C code, through JNI. this seems to
work. the code can be found in the svn repository.
regards
tobi

On 7 Jan., 19:10, "[email protected]" <[email protected]>
wrote:
> Hi,
> I want to display the preview frames of an android smartphone on an
> opengl texture. As opengl es only support RGB and the preview frame is
> encoded with YCbCr 4:2:0. Therefor I have to convert from one to the
> other. Though I wasn't successful in doing so, so far. Maybe someone
> can help me with it. I found some sources/example code here:
>
> http://groups.google.de/group/android-developers/browse_thread/thread...http://www.netmite.com/android/mydroid/donut/development/tools/yuv420...http://blog.tomgibara.com/post/132956174/yuv420-to-rgb565-conversion-...
>
> my code can be found 
> here:http://code.google.com/p/andar/source/browse/#svn/trunk/AndOpenGLCam/...
> especially the classes CameraPreviewHandler.java and
> OpenGLCamRenderer.java are important.
>
> When using the example from the android project(http://tinyurl.com/
> y9l36tl) it results in this:http://picfront.de/d/Saj1pYfo4/IMG_7715.jpg
>
> I can get the best result from using the outcommented formula from
> (http://tinyurl.com/y9l36tl) and inverting RGB in 
> BGR:http://picfront.de/d/x4iMqes9/IMG_7717.jpg
> it shows red planes in green and some blue edges around everything...
>
> any help is appreciated :D

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to