File: bmgetrow.h

package info (click to toggle)
ted 2.16-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 13,944 kB
  • ctags: 20,273
  • sloc: ansic: 167,980; makefile: 12,518; sh: 263
file content (42 lines) | stat: -rw-r--r-- 1,104 bytes parent folder | download | duplicates (2)
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