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 PUP::a, PUP::d, data, dest, CkRect::ht(), int, CkRect::l, p, PUP::pup(), src, CkRect::t, CkRect::wid(), and x.

Here is the call graph for this function:

PUPmarshall ( CkImage   ) 

Definition at line 193 of file ckimage.h.

References c, h, len, p, PUP::pup(), and PUP::w.

Here is the call graph for this function:


Generated on Mon Sep 21 08:11:39 2020 for Charm++ by  doxygen 1.5.5