#ifndef WH_CODECINTF_H_15e630ad_ #define WH_CODECINTF_H_15e630ad_ /* This file is in the public domain. */ typedef enum { AFMT_SLIN16N = 1, } AFMT; typedef struct codec CODEC; typedef struct adesc ADESC; typedef struct vdesc VDESC; struct adesc { unsigned int samples; unsigned int channels; AFMT format; const unsigned char *data; } ; struct vdesc { unsigned int w; unsigned int h; const unsigned char (*data)[4]; } ; extern CODEC *codec_init_audio(const unsigned char type[4], void (*)(void *, const ADESC *), void *); extern CODEC *codec_init_video(const unsigned char type[4], void (*)(void *, const VDESC *), void *); extern void codec_prefix(CODEC *, const void *, int); extern void codec_data(CODEC *, const void *, int); extern void codec_done(CODEC *); extern void codec_did_seek(CODEC *); #endif