2001-04-06 23:20:46 +00:00
|
|
|
#ifndef __CODEC_CFG_H
|
|
|
|
#define __CODEC_CFG_H
|
|
|
|
|
|
|
|
#define CODECS_MAX_FOURCC 16
|
|
|
|
#define CODECS_MAX_OUTFMT 16
|
|
|
|
|
2001-04-07 21:27:57 +00:00
|
|
|
// Global flags:
|
2001-04-10 20:09:23 +00:00
|
|
|
#define CODECS_FLAG_SEEKABLE (1<<0)
|
2001-04-06 23:20:46 +00:00
|
|
|
|
2001-04-07 21:27:57 +00:00
|
|
|
// Outfmt flags:
|
2001-04-06 23:56:42 +00:00
|
|
|
#define CODECS_FLAG_FLIP (1<<0)
|
|
|
|
#define CODECS_FLAG_NOFLIP (1<<1)
|
|
|
|
#define CODECS_FLAG_YUVHACK (1<<2)
|
|
|
|
|
2001-04-08 23:42:25 +00:00
|
|
|
#define CODECS_STATUS_NOT_WORKING 0
|
|
|
|
#define CODECS_STATUS_UNTESTED -1
|
|
|
|
#define CODECS_STATUS_PROBLEMS 1
|
|
|
|
#define CODECS_STATUS_WORKING 2
|
|
|
|
|
2001-07-29 02:08:27 +00:00
|
|
|
// Codec family/driver:
|
|
|
|
#define AFM_MPEG 1
|
|
|
|
#define AFM_PCM 2
|
|
|
|
#define AFM_AC3 3
|
|
|
|
#define AFM_ACM 4
|
|
|
|
#define AFM_ALAW 5
|
|
|
|
#define AFM_GSM 6
|
|
|
|
#define AFM_DSHOW 7
|
|
|
|
#define AFM_DVDPCM 8
|
2001-08-15 11:50:55 +00:00
|
|
|
#define AFM_HWAC3 9
|
2001-07-29 02:08:27 +00:00
|
|
|
|
|
|
|
#define VFM_MPEG 1
|
|
|
|
#define VFM_VFW 2
|
|
|
|
#define VFM_ODIVX 3
|
|
|
|
#define VFM_DSHOW 4
|
|
|
|
#define VFM_FFMPEG 5
|
|
|
|
#define VFM_VFWEX 6
|
|
|
|
#define VFM_DIVX4 7
|
2001-08-11 23:11:16 +00:00
|
|
|
#define VFM_RAW 8
|
2001-04-06 23:56:42 +00:00
|
|
|
|
2001-04-06 23:20:46 +00:00
|
|
|
typedef struct {
|
2001-04-07 00:51:38 +00:00
|
|
|
unsigned long f1;
|
|
|
|
unsigned short f2;
|
|
|
|
unsigned short f3;
|
|
|
|
unsigned char f4[8];
|
2001-04-06 23:20:46 +00:00
|
|
|
} GUID;
|
|
|
|
|
|
|
|
typedef struct {
|
2001-04-08 23:42:25 +00:00
|
|
|
unsigned int fourcc[CODECS_MAX_FOURCC];
|
|
|
|
unsigned int fourccmap[CODECS_MAX_FOURCC];
|
|
|
|
unsigned int outfmt[CODECS_MAX_OUTFMT];
|
|
|
|
unsigned char outflags[CODECS_MAX_OUTFMT];
|
2001-04-06 23:20:46 +00:00
|
|
|
char *name;
|
|
|
|
char *info;
|
|
|
|
char *comment;
|
|
|
|
char *dll;
|
|
|
|
GUID guid;
|
2001-04-08 23:42:25 +00:00
|
|
|
short driver;
|
|
|
|
short flags;
|
|
|
|
short status;
|
2001-04-11 20:55:14 +00:00
|
|
|
short cpuflags;
|
2001-04-06 23:20:46 +00:00
|
|
|
} codecs_t;
|
|
|
|
|
2001-04-10 20:09:23 +00:00
|
|
|
codecs_t** parse_codec_cfg(char *cfgfile);
|
2001-04-10 23:18:01 +00:00
|
|
|
codecs_t* find_video_codec(unsigned int fourcc, unsigned int *fourccmap, codecs_t *start);
|
|
|
|
codecs_t* find_audio_codec(unsigned int fourcc, unsigned int *fourccmap, codecs_t *start);
|
|
|
|
codecs_t* find_codec(unsigned int fourcc,unsigned int *fourccmap,codecs_t *start,int audioflag);
|
2001-04-06 23:20:46 +00:00
|
|
|
|
|
|
|
#endif
|