297
|
1 #ifndef __CODEC_CFG_H
|
|
2 #define __CODEC_CFG_H
|
|
3
|
|
4 #define CODECS_MAX_FOURCC 16
|
|
5 #define CODECS_MAX_OUTFMT 16
|
|
6
|
303
|
7 // Global flags:
|
328
|
8 #define CODECS_FLAG_SEEKABLE (1<<0)
|
297
|
9
|
303
|
10 // Outfmt flags:
|
299
|
11 #define CODECS_FLAG_FLIP (1<<0)
|
|
12 #define CODECS_FLAG_NOFLIP (1<<1)
|
|
13 #define CODECS_FLAG_YUVHACK (1<<2)
|
|
14
|
316
|
15 #define CODECS_STATUS_NOT_WORKING 0
|
|
16 #define CODECS_STATUS_UNTESTED -1
|
|
17 #define CODECS_STATUS_PROBLEMS 1
|
|
18 #define CODECS_STATUS_WORKING 2
|
|
19
|
299
|
20
|
297
|
21 typedef struct {
|
300
|
22 unsigned long f1;
|
|
23 unsigned short f2;
|
|
24 unsigned short f3;
|
|
25 unsigned char f4[8];
|
297
|
26 } GUID;
|
|
27
|
|
28 typedef struct {
|
316
|
29 unsigned int fourcc[CODECS_MAX_FOURCC];
|
|
30 unsigned int fourccmap[CODECS_MAX_FOURCC];
|
|
31 unsigned int outfmt[CODECS_MAX_OUTFMT];
|
|
32 unsigned char outflags[CODECS_MAX_OUTFMT];
|
297
|
33 char *name;
|
|
34 char *info;
|
|
35 char *comment;
|
316
|
36 char *dll;
|
|
37 GUID guid;
|
297
|
38 short driver;
|
|
39 short flags;
|
316
|
40 short status;
|
361
|
41 short cpuflags;
|
297
|
42 } codecs_t;
|
|
43
|
328
|
44 codecs_t** parse_codec_cfg(char *cfgfile);
|
332
|
45 codecs_t* find_video_codec(unsigned int fourcc, unsigned int *fourccmap, codecs_t *start);
|
|
46 codecs_t* find_audio_codec(unsigned int fourcc, unsigned int *fourccmap, codecs_t *start);
|
|
47 codecs_t* find_codec(unsigned int fourcc,unsigned int *fourccmap,codecs_t *start,int audioflag);
|
297
|
48
|
|
49 #endif
|