From de2595525b435ecf17fddf3a3a9627de8e9944fa Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 22 Oct 2001 16:54:13 +0000 Subject: needs to be hacked git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2373 b3059339-0415-0410-9bf9-f77b7e298cf2 --- xacodec.h | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 xacodec.h (limited to 'xacodec.h') diff --git a/xacodec.h b/xacodec.h new file mode 100644 index 0000000000..eaf543e170 --- /dev/null +++ b/xacodec.h @@ -0,0 +1,103 @@ +typedef struct +{ + unsigned int what; + unsigned int id; + int (*iq_func)(); /* init/query function */ + unsigned int (*dec_func)(); /* opt decode function */ +} XAVID_FUNC_HDR; + +#define XAVID_WHAT_NO_MORE 0x0000 +#define XAVID_AVI_QUERY 0x0001 +#define XAVID_QT_QUERY 0x0002 +#define XAVID_DEC_FUNC 0x0100 + +#define XAVID_API_REV 0x0003 + +typedef struct +{ + unsigned int api_rev; + char *desc; + char *rev; + char *copyright; + char *mod_author; + char *authors; + unsigned int num_funcs; + XAVID_FUNC_HDR *funcs; +} XAVID_MOD_HDR; + +/* XA CODEC .. */ +typedef struct +{ + void *anim_hdr; + unsigned long compression; + unsigned long x, y; + unsigned long depth; + void *extra; + unsigned long xapi_rev; + unsigned long (*decoder)(); + char *description; + unsigned long avi_ctab_flag; + unsigned long (*avi_read_ext)(); +} XA_CODEC_HDR; + +#define CODEC_SUPPORTED 1 +#define CODEC_UNKNOWN 0 +#define CODEC_UNSUPPORTED -1 + +/* fuckin colormap structures for xanim */ +typedef struct +{ + unsigned short red; + unsigned short green; + unsigned short blue; + unsigned short gray; +} ColorReg; + +typedef struct XA_ACTION_STRUCT +{ + int type; + int cmap_rev; + unsigned char *data; + struct XA_ACTION_STRUCT *next; + struct XA_CHDR_STRUCT *chdr; + ColorReg *h_cmap; + unsigned int *map; + struct XA_ACTION_STRUCT *next_same_chdr; +} XA_ACTION; + +typedef struct XA_CHDR_STRUCT +{ + unsigned int rev; + ColorReg *cmap; + unsigned int csize, coff; + unsigned int *map; + unsigned int msize, moff; + struct XA_CHDR_STRUCT *next; + XA_ACTION *acts; + struct XA_CHDR_STRUCT *new_chdr; +} XA_CHDR; + +typedef struct +{ + unsigned int cmd; + unsigned int skip_flag; + unsigned int imagex, imagey; /* image buffer size */ + unsigned int imaged; /* image depth */ + XA_CHDR *chdr; /* color map header */ + unsigned int map_flag; + unsigned int *map; + unsigned int xs, ys; + unsigned int xe, ye; + unsigned int special; + void *extra; +} XA_DEC_INFO; + +typedef struct +{ + unsigned int file_num; + unsigned int anim_type; + unsigned int imagex; + unsigned int imagey; + unsigned int imagec; + unsigned int imaged; +} XA_ANIM_HDR; -- cgit v1.2.3