Hi,
it depends on the order within the value (RGB or BGR).
For example:
unsigned char ucR;
unsigned char ucG;
unsigned char ucB;
//...
int iRGB = ((int)ucR << 16) | ((int)ucG << 8) | (int)ucB;
int iBGR = ((int)ucB << 16) | ((int)ucG << 8) | (int)ucR;
Am 27.01.2011 09:03, schrieb Nimo s:
Hello..!
In a Image instead of getting RGB values, how to get the exact pixel values?
I mean in an 24bit image we will have 16581375 colors.
I wanna extract each pixel values in range of 0 - 16581375 instead of individual
R,G& B values..
Any pointers would be very helpful..
Thanks& Cheers.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user