Mercurial > mplayer.hg
annotate codec-cfg.h @ 5177:fc5f42c4d088
status numbers changed to fit our detection order
author | arpi |
---|---|
date | Mon, 18 Mar 2002 01:52:51 +0000 |
parents | ef8a43b74075 |
children | 59df6b778d78 |
rev | line source |
---|---|
297 | 1 #ifndef __CODEC_CFG_H |
2 #define __CODEC_CFG_H | |
3 | |
4216 | 4 #define CODECS_MAX_FOURCC 32 |
4675 | 5 #define CODECS_MAX_OUTFMT 16 |
6 #define CODECS_MAX_INFMT 16 | |
297 | 7 |
303 | 8 // Global flags: |
328 | 9 #define CODECS_FLAG_SEEKABLE (1<<0) |
297 | 10 |
303 | 11 // Outfmt flags: |
299 | 12 #define CODECS_FLAG_FLIP (1<<0) |
13 #define CODECS_FLAG_NOFLIP (1<<1) | |
14 #define CODECS_FLAG_YUVHACK (1<<2) | |
15 | |
5177 | 16 #define CODECS_STATUS__MIN 0 |
17 #define CODECS_STATUS_NOT_WORKING -1 | |
18 #define CODECS_STATUS_PROBLEMS 0 | |
19 #define CODECS_STATUS_WORKING 1 | |
20 #define CODECS_STATUS_UNTESTED 2 | |
21 #define CODECS_STATUS__MAX 2 | |
316 | 22 |
1410
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
23 // Codec family/driver: |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
24 #define AFM_MPEG 1 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
25 #define AFM_PCM 2 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
26 #define AFM_AC3 3 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
27 #define AFM_ACM 4 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
28 #define AFM_ALAW 5 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
29 #define AFM_GSM 6 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
30 #define AFM_DSHOW 7 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
31 #define AFM_DVDPCM 8 |
1528
a444bd456fcc
ac3/spdif patch by German Gomez Garcia <german@piraos.com>
arpi
parents:
1488
diff
changeset
|
32 #define AFM_HWAC3 9 |
1828 | 33 #define AFM_VORBIS 10 |
1929 | 34 #define AFM_FFMPEG 11 |
2415 | 35 #define AFM_MAD 12 |
3787 | 36 #define AFM_MSADPCM 13 |
3400 | 37 #define AFM_A52 14 |
38 #define AFM_G72X 15 | |
3787 | 39 #define AFM_IMAADPCM 16 |
4854
4a6dde59834c
fixed, strengthened, rewrote, and renamed a variety of the ADPCM decoders
melanson
parents:
4675
diff
changeset
|
40 #define AFM_DK4ADPCM 17 |
4a6dde59834c
fixed, strengthened, rewrote, and renamed a variety of the ADPCM decoders
melanson
parents:
4675
diff
changeset
|
41 #define AFM_DK3ADPCM 18 |
4450
3da8c5706371
added skeleton decoders for RoQ audio and video format decoders
melanson
parents:
4301
diff
changeset
|
42 #define AFM_ROQAUDIO 19 |
1410
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
43 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
44 #define VFM_MPEG 1 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
45 #define VFM_VFW 2 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
46 #define VFM_ODIVX 3 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
47 #define VFM_DSHOW 4 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
48 #define VFM_FFMPEG 5 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
49 #define VFM_VFWEX 6 |
eda16e490ae7
using AFM_/VFM_ macros instead of hardcoded constants (idea by al3x)
arpi
parents:
408
diff
changeset
|
50 #define VFM_DIVX4 7 |
1488 | 51 #define VFM_RAW 8 |
1948 | 52 #define VFM_RLE 9 |
2379 | 53 #define VFM_XANIM 10 |
2827
b4d46817f050
ms video1 (cram) codecs by Mike Melanson <melanson@pcisys.net>
arpi
parents:
2422
diff
changeset
|
54 #define VFM_MSVIDC 11 |
3172 | 55 #define VFM_FLI 12 |
3643
fb9fd7e2dd35
native opensourec Cinepak (CVID) codec by im Ferguson <timf@mail.csse.monash.edu.au>
arpi
parents:
3400
diff
changeset
|
56 #define VFM_CINEPAK 13 |
3687
7fb817c9060b
This commit adds initial support for Quicktime Animation (RLE) video. It
melanson
parents:
3667
diff
changeset
|
57 #define VFM_QTRLE 14 |
3804
53ed66a4f0bf
NuppelVideo decoder added, based on Panagiotis Issaris' patch
alex
parents:
3798
diff
changeset
|
58 #define VFM_NUV 15 |
3969 | 59 #define VFM_CYUV 16 |
4227 | 60 #define VFM_QTSMC 17 |
4301
8f43b10f387f
added skeleton for Duck Truemotion v1 decoder (doesn't do anything yet)
melanson
parents:
4227
diff
changeset
|
61 #define VFM_DUCKTM1 18 |
4450
3da8c5706371
added skeleton decoders for RoQ audio and video format decoders
melanson
parents:
4301
diff
changeset
|
62 #define VFM_ROQVIDEO 19 |
4615
b1fe5f58cd82
Added native codec support for QT RPZA data, courtesy of Roberto Togni
melanson
parents:
4450
diff
changeset
|
63 #define VFM_QTRPZA 20 |
4656 | 64 #define VFM_MPNG 21 |
5029 | 65 #define VFM_IJPG 22 |
299 | 66 |
1836 | 67 #ifndef GUID_TYPE |
68 #define GUID_TYPE | |
297 | 69 typedef struct { |
300 | 70 unsigned long f1; |
71 unsigned short f2; | |
72 unsigned short f3; | |
73 unsigned char f4[8]; | |
297 | 74 } GUID; |
1836 | 75 #endif |
76 | |
297 | 77 |
2310 | 78 typedef struct codecs_st { |
316 | 79 unsigned int fourcc[CODECS_MAX_FOURCC]; |
80 unsigned int fourccmap[CODECS_MAX_FOURCC]; | |
81 unsigned int outfmt[CODECS_MAX_OUTFMT]; | |
82 unsigned char outflags[CODECS_MAX_OUTFMT]; | |
4675 | 83 unsigned int infmt[CODECS_MAX_INFMT]; |
84 unsigned char inflags[CODECS_MAX_INFMT]; | |
297 | 85 char *name; |
86 char *info; | |
87 char *comment; | |
316 | 88 char *dll; |
89 GUID guid; | |
297 | 90 short driver; |
91 short flags; | |
316 | 92 short status; |
361 | 93 short cpuflags; |
3667
ec943f8ec439
add support for priotity <int> in codecs.conf, higher numbers are better
atmos4
parents:
3643
diff
changeset
|
94 short priority; |
297 | 95 } codecs_t; |
96 | |
3798
d1e3ad5bcd8f
fixed few segfaults, make parse_codec_cfg() return int
iive
parents:
3787
diff
changeset
|
97 int parse_codec_cfg(char *cfgfile); |
332 | 98 codecs_t* find_video_codec(unsigned int fourcc, unsigned int *fourccmap, codecs_t *start); |
99 codecs_t* find_audio_codec(unsigned int fourcc, unsigned int *fourccmap, codecs_t *start); | |
100 codecs_t* find_codec(unsigned int fourcc,unsigned int *fourccmap,codecs_t *start,int audioflag); | |
1983 | 101 void list_codecs(int audioflag); |
297 | 102 |
103 #endif |