Hi,
I'm trying to read the color buffer using OpenGL function
glReadPixels. Since OpenGL ES 2.0 allows RGBA+UNSIGNED_BYTE
combination in glReadPixels, I'm using it to read 480 x 800 pixels on
my Nexus One. I want to save the read pixels as JPEG data.
Bitmap.Config allows ARGB_8888 and *not RGBA_8888*, although the
underlying libjpg library has the following definitions:

#ifdef ANDROID_RGB
    JCS_RGBA_8888,  /* red/green/blue/alpha */
    JCS_RGB_565     /* red/green/blue in 565 format */
#endif

Why is it that the SDK doesn't expose the RGBA_8888 config? Any
technical reasons?

At the moment, I'm shifting A and RGB bits to suite
'Bitmap.createBitmap()'. [Bitmap.createBitmap(colorData, width,
height, Bitmap.Config.ARGB_8888);]
Of course, this is inefficient on large images, especially when I use
large FBOs.

I appreciate suggestions as well as solutions!

thanks
dp

-- 
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