dxppng.h
説明を見る。00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061 #ifndef DXPPNG_H__
00062 #define DXPPNG_H__
00063 #ifdef __cplusplus
00064 extern "C" {
00065 #endif
00066
00067 #define PSM_8888 (3)
00068 #define PSM_T4 (4)
00069 #define PSM_T8 (5)
00070
00071 #define DXPPNG_MODE_GPU 1
00072 #define DXPPNG_MODE_RAW 0
00073
00074 typedef struct DXPPNG_
00075 {
00076 unsigned int width,height;
00077 unsigned int widthN2,heightN2;
00078 unsigned int pitch;
00079 unsigned int psm;
00080 unsigned int *clut;
00081 unsigned int clutnum;
00082 unsigned int alpha;
00083 void *raw;
00084 }DXPPNG;
00085
00086 typedef struct DXPPNG_FUNCS_
00087 {
00088 void*(*pmalloc)(unsigned int);
00089 void*(*pmemalign)(unsigned int,unsigned int);
00090 void (*pfree)(void*);
00091 }DXPPNG_FUNCS;
00092
00093 typedef struct DXPPNG_PARAMS_
00094 {
00095 void *src;
00096 unsigned int srcLength;
00097 unsigned int mode;
00098 DXPPNG_FUNCS funcs;
00099 }DXPPNG_PARAMS;
00100
00101
00102 int dxppng_decode(DXPPNG_PARAMS *params,DXPPNG *png);
00103
00104 #ifdef __cplusplus
00105 };
00106 #endif
00107
00108 #endif
00109