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