PPL Logo

util/ckimage.h File Reference

Go to the source code of this file.

Data Structures

class  CkRect

Functions

int min (int a, int b)
int max (int a, int b)
 PUPmarshall (CkRect) class CkImage
 This class describes an image, represented as a flat byte array.
 PUPmarshall (CkImage) class CkAllocImage


Function Documentation

int min ( int  a,
int  b 
) [inline]

int max ( int  a,
int  b 
) [inline]

PUPmarshall ( CkRect   ) 

This class describes an image, represented as a flat byte array.

Pixels are stored first by color (e.g., r,g,b), then by row in the usual raster order.

This is the maximum value of a color channel

This describes the various data layouts used by image pixels:

The default layout: ARGB. With one color, pure luminance. With 3 colors, [0]=R, [1]=G, [2]=B. With 4 colors, [0]=A, [1]=R, [2]=G, [3]=B.

The "reversed" layout: BGRA. With one color, pure luminance. With 3 colors, [0]=B, [1]=G, [2]=R. With 4 colors, [0]=B, [1]=G, [2]=R, [3]=A.

< channel_ts per line, channel_ts per pixel

< Image pixel format.

< Image size: cols and rows

< Image pixel data

< DO NOT USE

Get/set the whole image's data

Return the number of channel_t's per row of the image

Return the number of colors (channel_t's) per pixel

Get/set the pixel format.

Return the number of pixels per row of the image

Return the number of pixels per column of the image

Definition at line 64 of file ckimage.h.

References data, dest, CkRect::ht(), CkRect::l, p, CkRect::t, and CkRect::wid().

PUPmarshall ( CkImage   ) 

Definition at line 193 of file ckimage.h.

References c, and p.


Generated on Thu May 24 07:56:05 2012 for Charm++ by  doxygen 1.5.5