1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
# ifndef BM_GETROW_H
# define BM_GETROW_H
# include "bmintern.h"
/************************************************************************/
/* */
/* Collect rows of image data for further processing. */
/* */
/* For historical, and for efficiency reasons, there is not really an */
/* elegant general approach. */
/* */
/************************************************************************/
typedef struct ColorValue
{
long cvR;
long cvG;
long cvB;
int cvN;
} ColorValue;
typedef void (*GetSourceRow)( ColorValue * cv,
int col0Out,
const unsigned char * from,
int col0In,
int colPIn,
const BitmapDescription * bdIn );
/************************************************************************/
/* */
/* Routine declarations. */
/* */
/************************************************************************/
extern void bmInitColorRow( ColorValue * cv,
int wide );
extern int bmGetGetRow( GetSourceRow * pGetRow,
const BitmapDescription * bdIn );
# endif
|