Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting RGB Format from raw data

7 views
Skip to first unread message

Sadanand

unread,
Nov 24, 2009, 3:31:58 AM11/24/09
to
hi all,

Can anybody tell me how can I get RGB format of an image using its raw
data? like RGB888, RGB565, RGB555 etc.

how can I get that value from raw pixel data?

Thanks & Regards,
Sadanand

Vladimir Jovic

unread,
Nov 24, 2009, 4:31:29 AM11/24/09
to
Sadanand wrote:
> hi all,
>
> Can anybody tell me how can I get RGB format of an image using its raw
> data? like RGB888, RGB565, RGB555 etc.
>
> how can I get that value from raw pixel data?

This is the simplest:
http://www.opengl.org/sdk/docs/man/xhtml/glReadPixels.xml

Then there is this:
http://www.songho.ca/opengl/gl_pbo.html
which can be more efficient, but is an extension.

--
ultrasound www.ezono.com

0 new messages