Mercurial > mplayer.hg
annotate codec-cfg.h @ 2432:b02c2679e5a9
libmad fix (see comment)
author | alex |
---|---|
date | Tue, 23 Oct 2001 17:01:55 +0000 |
parents | a06f9c1df28e |
children | b4d46817f050 |
rev | line source |
---|---|
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 | |
1410
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
20 // Codec family/driver: |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
21 #define AFM_MPEG 1 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
22 #define AFM_PCM 2 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
23 #define AFM_AC3 3 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
24 #define AFM_ACM 4 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
25 #define AFM_ALAW 5 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
26 #define AFM_GSM 6 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
27 #define AFM_DSHOW 7 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
28 #define AFM_DVDPCM 8 |
1528
a444bd456fcc
ac3/spdif patch by German Gomez Garcia <german@piraos.com>
arpi
parents:
1488
diff
changeset
|
29 #define AFM_HWAC3 9 |
1828 | 30 #define AFM_VORBIS 10 |
1929 | 31 #define AFM_FFMPEG 11 |
2415 | 32 #define AFM_MAD 12 |
2422 | 33 #define AFM_IMA4 13 |
1410
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
34 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
35 #define VFM_MPEG 1 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
36 #define VFM_VFW 2 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
37 #define VFM_ODIVX 3 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
38 #define VFM_DSHOW 4 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
39 #define VFM_FFMPEG 5 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
40 #define VFM_VFWEX 6 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
41 #define VFM_DIVX4 7 |
1488 | 42 #define VFM_RAW 8 |
1948 | 43 #define VFM_RLE 9 |
2379 | 44 #define VFM_XANIM 10 |
299 | 45 |
1836 | 46 #ifndef GUID_TYPE |
47 #define GUID_TYPE | |
297 | 48 typedef struct { |
300 | 49 unsigned long f1; |
50 unsigned short f2; | |
51 unsigned short f3; | |
52 unsigned char f4[8]; | |
297 | 53 } GUID; |
1836 | 54 #endif |
55 | |
297 | 56 |
2310 | 57 typedef struct codecs_st { |
316 | 58 unsigned int fourcc[CODECS_MAX_FOURCC]; |
59 unsigned int fourccmap[CODECS_MAX_FOURCC]; | |
60 unsigned int outfmt[CODECS_MAX_OUTFMT]; | |
61 unsigned char outflags[CODECS_MAX_OUTFMT]; | |
297 | 62 char *name; |
63 char *info; | |
64 char *comment; | |
316 | 65 char *dll; |
66 GUID guid; | |
297 | 67 short driver; |
68 short flags; | |
316 | 69 short status; |
361 | 70 short cpuflags; |
297 | 71 } codecs_t; |
72 | |
328 | 73 codecs_t** parse_codec_cfg(char *cfgfile); |
332 | 74 codecs_t* find_video_codec(unsigned int fourcc, unsigned int *fourccmap, codecs_t *start); |
75 codecs_t* find_audio_codec(unsigned int fourcc, unsigned int *fourccmap, codecs_t *start); | |
76 codecs_t* find_codec(unsigned int fourcc,unsigned int *fourccmap,codecs_t *start,int audioflag); | |
1983 | 77 void list_codecs(int audioflag); |
297 | 78 |
79 #endif |