GPS4Palm

Source Code Documentation


BitmapRsrc.h File Reference

#include <PalmTypes.h>

Include dependency graph for BitmapRsrc.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BmpRsrcFlagsType
struct  BmpRsrcV0Type
struct  BmpRsrcV1Type
struct  BmpRsrcV2Type
struct  BmpRsrcV3Type
union  BmpRsrcType

Defines

#define BmpRsrcVersionZero   0
#define BmpRsrcVersionOne   1
#define BmpRsrcVersionTwo   2
#define BmpRsrcVersionThree   3

Typedefs

typedef enum BmpRsrcCompressionTag BmpRsrcCompressionType
typedef enum BmpRsrcFlag BmpRsrcFlagEnum

Enumerations

enum  BmpRsrcCompressionTag { BmpRsrcCompressionTypeScanLine = 0, BmpRsrcCompressionTypeRLE, BmpRsrcCompressionTypePackBits, BmpRsrcCompressionTypeEnd }
enum  BmpRsrcFlag {
  kCompressedFlag = 0, kHasColorTableFlag, kHasTransparencyFlag, kIndirectFlag,
  kPrivate4Flag, kDirectColorFlag, kIndirectColorTableFlag, kNoDitherFlag
}

Functions

BmpRsrcTypeBmpRsrcCreate (Int16 width, Int16 height, Int16 pixelSize, const ColorTableType *ct, Int16 density, PixelFormatType pixelFormat)
void BmpRsrcDelete (BmpRsrcType *bmp)
BmpRsrcTypeBmpRsrcV0Create (Int16 width, Int16 height)
BmpRsrcTypeBmpRsrcV2Create (Int16 width, Int16 height, Int16 pixelSize, const ColorTableType *ct, const UInt8 *indirectBits)
BmpRsrcTypeBmpRsrcV3Create (Int16 width, Int16 height, Int16 pixelSize, const ColorTableType *ct, const UInt8 *indirectBits, Int16 density, PixelFormatType pixelFormat)
BmpRsrcTypeBmpRsrcCreateIndirectCopy (const BmpRsrcType *bmp)
Int32 BmpRsrcGetTotalSize (const BmpRsrcType *bmp)
UInt8 * BmpRsrcGetBits (const BmpRsrcType *bmp)
UInt32 BmpRsrcGetTransparentValue (const BmpRsrcType *bmp)
ColorTableType * BmpRsrcGetColorTable (const BmpRsrcType *bmp)
PixelFormatType BmpRsrcGetPixelFormat (const BmpRsrcType *bmp)
void BmpRsrcSetFlag (BmpRsrcType *bmp, BmpRsrcFlagEnum which, Boolean value)
void BmpRsrcSetTransparentValue (BmpRsrcType *bmp, UInt32 value)
void BmpRsrcSetDensity (BmpRsrcType *bmp, Int16 density)
UInt32 BmpRsrcBlackPixelValue (const BmpRsrcType *bmp)
UInt32 BmpRsrcWhitePixelValue (const BmpRsrcType *bmp)
IndexedColorType BmpRsrcBlackPixelIndex (const BmpRsrcType *bmp)
IndexedColorType BmpRsrcWhitePixelIndex (const BmpRsrcType *bmp)
UInt32 BmpRsrcGetPixel (const BmpRsrcType *bmp, Int16 x, Int16 y)
void BmpRsrcSetPixel (BmpRsrcType *bmp, Int16 x, Int16 y, UInt32 value)
const BmpRsrcTypeBmpRsrcGetNextMemberFromFamily (const BmpRsrcType *bmpFamily)
BmpRsrcTypeBmpRsrcBestMemberFromFamily (const BmpRsrcType *bmpFamily)


Define Documentation

#define BmpRsrcVersionOne   1
 

Definition at line 41 of file BitmapRsrc.h.

#define BmpRsrcVersionThree   3
 

Definition at line 43 of file BitmapRsrc.h.

#define BmpRsrcVersionTwo   2
 

Definition at line 42 of file BitmapRsrc.h.

#define BmpRsrcVersionZero   0
 

Definition at line 40 of file BitmapRsrc.h.


Typedef Documentation

typedef enum BmpRsrcCompressionTag BmpRsrcCompressionType
 

typedef enum BmpRsrcFlag BmpRsrcFlagEnum
 


Enumeration Type Documentation

enum BmpRsrcCompressionTag
 

Enumerator:
BmpRsrcCompressionTypeScanLine 
BmpRsrcCompressionTypeRLE 
BmpRsrcCompressionTypePackBits 
BmpRsrcCompressionTypeEnd 

Definition at line 47 of file BitmapRsrc.h.

enum BmpRsrcFlag
 

Enumerator:
kCompressedFlag 
kHasColorTableFlag 
kHasTransparencyFlag 
kIndirectFlag 
kPrivate4Flag 
kDirectColorFlag 
kIndirectColorTableFlag 
kNoDitherFlag 

Definition at line 79 of file BitmapRsrc.h.


Function Documentation

BmpRsrcType* BmpRsrcBestMemberFromFamily const BmpRsrcType bmpFamily  ) 
 

Definition at line 1486 of file BitmapRsrc.c.

References BmpRsrcCreateIndirectCopy().

IndexedColorType BmpRsrcBlackPixelIndex const BmpRsrcType bmp  ) 
 

Definition at line 1141 of file BitmapRsrc.c.

References SimpleVerify_.

UInt32 BmpRsrcBlackPixelValue const BmpRsrcType bmp  ) 
 

Definition at line 1107 of file BitmapRsrc.c.

References SimpleVerify_.

BmpRsrcType* BmpRsrcCreate Int16  width,
Int16  height,
Int16  pixelSize,
const ColorTableType *  ct,
Int16  density,
PixelFormatType  pixelFormat
 

Definition at line 535 of file BitmapRsrc.c.

References BmpRsrcV0Create(), BmpRsrcV2Create(), and BmpRsrcV3Create().

Referenced by dobitmap().

BmpRsrcType* BmpRsrcCreateIndirectCopy const BmpRsrcType bmp  ) 
 

Definition at line 1210 of file BitmapRsrc.c.

References BmpRsrcGetBits(), BmpRsrcGetColorTable(), BmpRsrcGetPixelFormat(), BmpRsrcGetTransparentValue(), BmpRsrcSetFlag(), BmpRsrcSetTransparentValue(), BmpRsrcV2Create(), BmpRsrcV3Create(), BmpRsrcFlagsType::compressed, BmpRsrcV3Type::compressionType, BmpRsrcV2Type::compressionType, BmpRsrcV3Type::flags, kCompressedFlag, kHasTransparencyFlag, kNoDitherFlag, BmpRsrcType::v2, BmpRsrcType::v3, and BmpRsrcV2Type::version.

Referenced by BmpRsrcBestMemberFromFamily().

void BmpRsrcDelete BmpRsrcType bmp  ) 
 

Definition at line 606 of file BitmapRsrc.c.

References BmpRsrcGetTotalSize(), DEAD_FILL_BYTE, and SimpleVerify_.

UInt8* BmpRsrcGetBits const BmpRsrcType bmp  ) 
 

Definition at line 700 of file BitmapRsrc.c.

References BmpRsrcGetColorTable(), BmpRsrcFlagsType::directColor, BmpRsrcV0Type::flags, BmpRsrcV2Type::flags, BmpRsrcFlagsType::hasColorTable, BmpRsrcFlagsType::indirect, BmpRsrcFlagsType::indirectColorTable, SimpleVerify_, BmpRsrcV3Type::size, BmpRsrcType::v0, BmpRsrcType::v2, and BmpRsrcType::v3.

Referenced by BmpRsrcCreateIndirectCopy(), BmpRsrcGetPixel(), BmpRsrcGetTotalSize(), BmpRsrcSetPixel(), and dobitmap().

ColorTableType* BmpRsrcGetColorTable const BmpRsrcType bmp  ) 
 

Definition at line 780 of file BitmapRsrc.c.

References BmpRsrcV0Type::flags, BmpRsrcV3Type::flags, BmpRsrcV2Type::flags, BmpRsrcFlagsType::hasColorTable, BmpRsrcFlagsType::indirectColorTable, SimpleVerify_, BmpRsrcV3Type::size, BmpRsrcType::v0, BmpRsrcType::v1, BmpRsrcType::v2, and BmpRsrcType::v3.

Referenced by BmpRsrcCreateIndirectCopy(), BmpRsrcGetBits(), and BmpRsrcGetTotalSize().

const BmpRsrcType* BmpRsrcGetNextMemberFromFamily const BmpRsrcType bmpFamily  ) 
 

Definition at line 1174 of file BitmapRsrc.c.

References BmpRsrcV3Type::nextBitmapOffset, BmpRsrcV2Type::nextDepthOffset, SimpleVerify_, BmpRsrcType::v2, and BmpRsrcType::v3.

UInt32 BmpRsrcGetPixel const BmpRsrcType bmp,
Int16  x,
Int16  y
 

Definition at line 971 of file BitmapRsrc.c.

References BmpRsrcGetBits(), BmpRsrcGetPixelFormat(), ErrIf_, BmpRsrcV0Type::height, kCompressedFlag, SimpleVerify_, BmpRsrcType::v0, and BmpRsrcV0Type::width.

PixelFormatType BmpRsrcGetPixelFormat const BmpRsrcType bmp  ) 
 

Definition at line 822 of file BitmapRsrc.c.

References BmpRsrcV3Type::pixelFormat, BmpRsrcV2Type::pixelSize, SimpleVerify_, BmpRsrcType::v2, and BmpRsrcType::v3.

Referenced by BmpRsrcCreateIndirectCopy(), BmpRsrcGetPixel(), BmpRsrcSetPixel(), and dobitmap().

Int32 BmpRsrcGetTotalSize const BmpRsrcType bmp  ) 
 

Definition at line 627 of file BitmapRsrc.c.

References BmpRsrcGetBits(), BmpRsrcGetColorTable(), BmpRsrcFlagsType::compressed, BmpRsrcFlagsType::directColor, BmpRsrcV0Type::flags, BmpRsrcV2Type::flags, BmpRsrcFlagsType::hasColorTable, BmpRsrcV0Type::height, BmpRsrcFlagsType::indirect, BmpRsrcFlagsType::indirectColorTable, BmpRsrcV0Type::rowBytes, SimpleVerify_, BmpRsrcV3Type::size, BmpRsrcType::v0, BmpRsrcType::v2, BmpRsrcType::v3, and BmpRsrcV2Type::version.

Referenced by BmpRsrcDelete().

UInt32 BmpRsrcGetTransparentValue const BmpRsrcType bmp  ) 
 

Definition at line 742 of file BitmapRsrc.c.

References BmpRsrcV2Type::pixelSize, SimpleVerify_, BmpRsrcV2Type::transparentIndex, BmpRsrcV3Type::transparentValue, BmpRsrcType::v2, and BmpRsrcType::v3.

Referenced by BmpRsrcCreateIndirectCopy().

void BmpRsrcSetDensity BmpRsrcType bmp,
Int16  density
 

Definition at line 939 of file BitmapRsrc.c.

References BmpRsrcV3Type::density, ErrIf_, SimpleVerify_, and BmpRsrcType::v3.

void BmpRsrcSetFlag BmpRsrcType bmp,
BmpRsrcFlagEnum  which,
Boolean  value
 

Definition at line 846 of file BitmapRsrc.c.

References ErrIf_, BmpRsrcV0Type::flags, kHasTransparencyFlag, kNoDitherFlag, SimpleVerify_, and BmpRsrcType::v0.

Referenced by BmpRsrcCreateIndirectCopy().

void BmpRsrcSetPixel BmpRsrcType bmp,
Int16  x,
Int16  y,
UInt32  value
 

Definition at line 1036 of file BitmapRsrc.c.

References BmpRsrcGetBits(), BmpRsrcGetPixelFormat(), ErrIf_, BmpRsrcV0Type::height, kCompressedFlag, SimpleVerify_, BmpRsrcType::v0, and BmpRsrcV0Type::width.

void BmpRsrcSetTransparentValue BmpRsrcType bmp,
UInt32  value
 

Definition at line 887 of file BitmapRsrc.c.

References b, ErrIf_, g, BmpRsrcV2Type::pixelSize, r, SimpleVerify_, BmpRsrcV2Type::transparentIndex, BmpRsrcV3Type::transparentValue, BmpRsrcType::v2, and BmpRsrcType::v3.

Referenced by BmpRsrcCreateIndirectCopy().

BmpRsrcType* BmpRsrcV0Create Int16  width,
Int16  height
 

Definition at line 221 of file BitmapRsrc.c.

References ErrIf_, BmpRsrcV0Type::height, BmpRsrcV0Type::rowBytes, and BmpRsrcV0Type::width.

Referenced by BmpRsrcCreate().

BmpRsrcType* BmpRsrcV2Create Int16  width,
Int16  height,
Int16  pixelSize,
const ColorTableType *  ct,
const UInt8 *  indirectBits
 

Definition at line 257 of file BitmapRsrc.c.

References BmpRsrcFlagsType::directColor, ErrIf_, BmpRsrcV2Type::flags, BmpRsrcFlagsType::hasColorTable, BmpRsrcV2Type::height, BmpRsrcFlagsType::indirect, BmpRsrcV2Type::pixelSize, BmpRsrcV2Type::rowBytes, BmpRsrcV2Type::version, and BmpRsrcV2Type::width.

Referenced by BmpRsrcCreate(), and BmpRsrcCreateIndirectCopy().

BmpRsrcType* BmpRsrcV3Create Int16  width,
Int16  height,
Int16  pixelSize,
const ColorTableType *  ct,
const UInt8 *  indirectBits,
Int16  density,
PixelFormatType  pixelFormat
 

Definition at line 385 of file BitmapRsrc.c.

References BmpRsrcV3Type::density, BmpRsrcFlagsType::directColor, ErrIf_, BmpRsrcV3Type::flags, BmpRsrcFlagsType::hasColorTable, BmpRsrcV3Type::height, BmpRsrcFlagsType::indirect, BmpRsrcV3Type::pixelFormat, BmpRsrcV3Type::pixelSize, BmpRsrcV3Type::rowBytes, BmpRsrcV3Type::size, BmpRsrcV3Type::version, and BmpRsrcV3Type::width.

Referenced by BmpRsrcCreate(), BmpRsrcCreateIndirectCopy(), and dobitmap().

IndexedColorType BmpRsrcWhitePixelIndex const BmpRsrcType bmp  ) 
 

Definition at line 1158 of file BitmapRsrc.c.

References SimpleVerify_.

UInt32 BmpRsrcWhitePixelValue const BmpRsrcType bmp  ) 
 

Definition at line 1124 of file BitmapRsrc.c.

References SimpleVerify_.


Created: Mon, 08 Oct 2007 22:33:16 +0200
Copyright ©2004 M. Prinke