-
Notifications
You must be signed in to change notification settings - Fork 17
/
FormatConversion.h
23 lines (19 loc) · 1.18 KB
/
FormatConversion.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __TEXTURE_CONVERSION_H__
#define __TEXTURE_CONVERSION_H__
#include "GlOgl.h"
void Convert565to8888( FxU16 *Buffer1, FxU32 *Buffer2, FxU32 Pixels );
void Convert565Kto8888( FxU16 *Buffer1, FxU16 key, FxU32 *Buffer2, FxU32 Pixels );
void Convert565to5551( FxU32 *Buffer1, FxU32 *Buffer2, int Pixels );
void Convert5551to565( FxU32 *Buffer1, FxU32 *Buffer2, int Pixels );
void Convert8888to565( FxU32 *Src, FxU16 *Dst, FxU32 Pixels );
void Convert4444to4444special( FxU32 *Buffer1, FxU32 *Buffer2, int Pixels );
void Convert1555to5551( FxU32 *Buffer1, FxU32 *Buffer2, int Pixels );
void ConvertA8toAP88( FxU8 *Buffer1, FxU16 *Buffer2, FxU32 Pixels );
void ConvertAI44toAP88( FxU8 *Buffer1, FxU16 *Buffer2, FxU32 Pixels );
void Convert8332to8888( FxU16 *Buffer1, FxU32 *Buffer2, FxU32 Pixels );
void ConvertP8to8888( FxU8 *Buffer1, FxU32 *Buffer2, FxU32 Pixels, FxU32 *palette );
void ConvertAP88to8888( FxU16 *Buffer1, FxU32 *Buffer2, FxU32 Pixels, FxU32 *palette );
void ConvertYIQto8888( FxU8 *in, FxU32 *out, FxU32 Pixels, GuNccTable *ncc );
void ConvertAYIQto8888( FxU16 *in, FxU32 *out, FxU32 Pixels, GuNccTable *ncc );
void SplitAP88( FxU16 *ap88, FxU8 *index, FxU8 *alpha, FxU32 pixels );
#endif