On Thu, Mar 20, 2003 at 07:44:59PM +0100, Matthias Haack wrote:
> Hi,
> 
> 
> how do I access the data in a CImage?
> 
> At the moment I do:
> 
> CImage *image;
> image = some_stream->GetFrame(true);
> image->ToRGB();
> uint8_t *data = image->At(0);

> 
> If this is the wrong way, please tell me how to do it right.
> 
> In which way is *data ordered? Is it 8bit for red, 8bit for green, 8bit 
> for blue followed by another 24bits for the next pixel and so on?

For  Little Endian platform it is  BGR actually.

At(i) will address i-th pixel
Offset(i,j)  i - column,  j - row



-- 
  .''`.
 : :' :    Zdenek Kabelac  [EMAIL PROTECTED], users.sf.net, fi.muni.cz}
 `. `'           Debian GNU/Linux maintainer - www.debian.{org,cz}
   `-

_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile

Reply via email to