Mercurial > mplayer.hg
comparison codec-cfg.h @ 7180:28677d779205
-afm/-vfm migration from ID (int) to NAME (string) - simplifies code and makes dlopen()'ing possible
author | arpi |
---|---|
date | Fri, 30 Aug 2002 21:44:20 +0000 |
parents | 6ca7eca66d5e |
children | 69a4d7e59f3f |
comparison
equal
deleted
inserted
replaced
7179:a258b9b7669e | 7180:28677d779205 |
---|---|
24 #define CODECS_STATUS_PROBLEMS 0 | 24 #define CODECS_STATUS_PROBLEMS 0 |
25 #define CODECS_STATUS_WORKING 1 | 25 #define CODECS_STATUS_WORKING 1 |
26 #define CODECS_STATUS_UNTESTED 2 | 26 #define CODECS_STATUS_UNTESTED 2 |
27 #define CODECS_STATUS__MAX 2 | 27 #define CODECS_STATUS__MAX 2 |
28 | 28 |
29 // Codec family/driver: | |
30 #define AFM_MPEG 1 | |
31 #define AFM_PCM 2 | |
32 #define AFM_AC3 3 | |
33 #define AFM_ACM 4 | |
34 #define AFM_ALAW 5 | |
35 #define AFM_GSM 6 | |
36 #define AFM_DSHOW 7 | |
37 #define AFM_DVDPCM 8 | |
38 #define AFM_HWAC3 9 | |
39 #define AFM_VORBIS 10 | |
40 #define AFM_FFMPEG 11 | |
41 #define AFM_MAD 12 | |
42 #define AFM_MSADPCM 13 | |
43 #define AFM_A52 14 | |
44 #define AFM_G72X 15 | |
45 #define AFM_IMAADPCM 16 | |
46 #define AFM_DK4ADPCM 17 | |
47 #define AFM_DK3ADPCM 18 | |
48 #define AFM_ROQAUDIO 19 | |
49 #define AFM_AAC 20 | |
50 #define AFM_REAL 21 | |
51 #define AFM_LIBDV 22 | |
52 | |
53 #define VFM_MPEG 1 | |
54 #define VFM_VFW 2 | |
55 #define VFM_ODIVX 3 | |
56 #define VFM_DSHOW 4 | |
57 #define VFM_FFMPEG 5 | |
58 #define VFM_VFWEX 6 | |
59 #define VFM_DIVX4 7 | |
60 #define VFM_RAW 8 | |
61 #define VFM_MSRLE 9 | |
62 #define VFM_XANIM 10 | |
63 #define VFM_MSVIDC 11 | |
64 #define VFM_FLI 12 | |
65 #define VFM_CINEPAK 13 | |
66 #define VFM_QTRLE 14 | |
67 #define VFM_NUV 15 | |
68 #define VFM_CYUV 16 | |
69 #define VFM_QTSMC 17 | |
70 #define VFM_DUCKTM1 18 | |
71 #define VFM_ROQVIDEO 19 | |
72 #define VFM_QTRPZA 20 | |
73 #define VFM_MPNG 21 | |
74 #define VFM_IJPG 22 | |
75 #define VFM_HUFFYUV 23 | |
76 #define VFM_ZLIB 24 | |
77 #define VFM_MPEGPES 25 | |
78 #define VFM_REAL 26 | |
79 #define VFM_SVQ1 27 | |
80 #define VFM_XVID 28 | |
81 #define VFM_LIBDV 29 | |
82 | 29 |
83 #ifndef GUID_TYPE | 30 #ifndef GUID_TYPE |
84 #define GUID_TYPE | 31 #define GUID_TYPE |
85 typedef struct { | 32 typedef struct { |
86 unsigned long f1; | 33 unsigned long f1; |
100 unsigned char inflags[CODECS_MAX_INFMT]; | 47 unsigned char inflags[CODECS_MAX_INFMT]; |
101 char *name; | 48 char *name; |
102 char *info; | 49 char *info; |
103 char *comment; | 50 char *comment; |
104 char *dll; | 51 char *dll; |
52 char* drv; | |
105 GUID guid; | 53 GUID guid; |
106 short driver; | 54 // short driver; |
107 short flags; | 55 short flags; |
108 short status; | 56 short status; |
109 short cpuflags; | 57 short cpuflags; |
110 short priority; | |
111 } codecs_t; | 58 } codecs_t; |
112 | 59 |
113 int parse_codec_cfg(char *cfgfile); | 60 int parse_codec_cfg(char *cfgfile); |
114 codecs_t* find_video_codec(unsigned int fourcc, unsigned int *fourccmap, codecs_t *start); | 61 codecs_t* find_video_codec(unsigned int fourcc, unsigned int *fourccmap, codecs_t *start); |
115 codecs_t* find_audio_codec(unsigned int fourcc, unsigned int *fourccmap, codecs_t *start); | 62 codecs_t* find_audio_codec(unsigned int fourcc, unsigned int *fourccmap, codecs_t *start); |