1 2 /* REV 2 Decoder Info Structure */ 3 4 typedef struct 5 { 6 xaULONG cmd; /* decode or query */ 7 xaULONG skip_flag; /* skip_flag */ 8 xaULONG imagex,imagey; /* Image Buffer Size */ 9 xaULONG imaged; /* Image depth */ 10 XA_CHDR *chdr; /* Color Map Header */ 11 xaULONG map_flag; /* remap image? */ 12 xaULONG *map; /* map to use */ 13 xaULONG xs,ys; /* pos of changed area */ 14 xaULONG xe,ye; /* size of change area */ 15 xaULONG special; /* Special Info */ 16 xaULONG bytes_pixel; /* bytes per pixel */ 17 xaULONG image_type; /* type of image */ 18 xaULONG tmp1; /* future expansion */ 19 xaULONG tmp2; /* future expansion */ 20 xaULONG tmp3; /* future expansion */ 21 xaULONG tmp4; /* future expansion */ 22 void *extra; /* Decompression specific info */ 23 } XA_DEC2_INFO; 24 25 #define XA_DEC_SPEC_RGB 0x0001 26 #define XA_DEC_SPEC_CF4 0x0002 27 #define XA_DEC_SPEC_DITH 0x0004 28 29 #define XA_IMTYPE_RGB 0x0001 30 #define XA_IMTYPE_GRAY 0x0002 31 #define XA_IMTYPE_CLR8 0x0003 32 #define XA_IMTYPE_CLR16 0x0004 33 #define XA_IMTYPE_CLR32 0x0005 34 #define XA_IMTYPE_332 0x0006 35 #define XA_IMTYPE_332DITH 0x0007 36 #define XA_IMTYPE_CF4 0x0008 37 #define XA_IMTYPE_CF4DITH 0x0009 38 39 40