dibdrv: Store image size
[wine/dibdrv.git] / dlls / winedib.drv / dib_render.h
blob888c8d7bee308ea7ef4aa32ab3409b7d2739808c
1 /*
2 * DIBDRV depth specific DIB rendering functions private header
4 * Copyright 2007 Jesse Allen
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_DIBDRV_DIB_RENDER_H
22 #define __WINE_DIBDRV_DIB_RENDER_H
24 #include "dibdrv.h"
26 extern void DIB_GetColorTableEntry( DIBDRVBITMAP *bmp, BYTE i, BYTE *r, BYTE *g, BYTE *b );
27 extern INT DIB_GetNearestIndex( DIBDRVBITMAP *bmp, BYTE r, BYTE g, BYTE b );
28 extern WORD DIB16_EncodeColor( DIBDRVBITMAP *bmp, BYTE r, BYTE g, BYTE b );
29 extern DWORD DIB32_EncodeColor( DIBDRVBITMAP *bmp, BYTE r, BYTE g, BYTE b );
30 extern void DIB1_AdvancePosition( DIBDRVBITMAP *bmp, int num_pixels );
31 extern void DIB4_AdvancePosition( DIBDRVBITMAP *bmp, int num_pixels );
32 extern void DIB8_AdvancePosition( DIBDRVBITMAP *bmp, int num_pixels );
33 extern void DIB16_AdvancePosition( DIBDRVBITMAP *bmp, int num_pixels );
34 extern void DIB24_AdvancePosition( DIBDRVBITMAP *bmp, int num_pixels );
35 extern void DIB32_AdvancePosition( DIBDRVBITMAP *bmp, int num_pixels );
36 extern void DIB1_ReadColor( DIBDRVBITMAP *bmp, BYTE *r, BYTE *g, BYTE *b );
37 extern void DIB4_ReadColor( DIBDRVBITMAP *bmp, BYTE *r, BYTE *g, BYTE *b );
38 extern void DIB8_ReadColor( DIBDRVBITMAP *bmp, BYTE *r, BYTE *g, BYTE *b );
39 extern void DIB16_ReadColor( DIBDRVBITMAP *bmp, BYTE *r, BYTE *g, BYTE *b );
40 extern void DIB24_ReadColor( DIBDRVBITMAP *bmp, BYTE *r, BYTE *g, BYTE *b );
41 extern void DIB32_ReadColor( DIBDRVBITMAP *bmp, BYTE *r, BYTE *g, BYTE *b );
43 #endif /* __WINE_DIBDRV_DIB_RENDER_H */