Mercurial > mplayer.hg
comparison codec-cfg.h @ 303:828ec81e0d64
codecs.conf support
author | arpi_esp |
---|---|
date | Sat, 07 Apr 2001 21:27:57 +0000 |
parents | df3f7a25584c |
children | 589a93489054 |
comparison
equal
deleted
inserted
replaced
302:a1fe76547e8f | 303:828ec81e0d64 |
---|---|
13 #endif | 13 #endif |
14 | 14 |
15 #define CODECS_MAX_FOURCC 16 | 15 #define CODECS_MAX_FOURCC 16 |
16 #define CODECS_MAX_OUTFMT 16 | 16 #define CODECS_MAX_OUTFMT 16 |
17 | 17 |
18 // Global flags: | |
18 #define CODECS_FLAG_AUDIO (1<<0) | 19 #define CODECS_FLAG_AUDIO (1<<0) |
20 #define CODECS_FLAG_SEEKABLE (1<<1) | |
19 | 21 |
22 // Outfmt flags: | |
20 #define CODECS_FLAG_FLIP (1<<0) | 23 #define CODECS_FLAG_FLIP (1<<0) |
21 #define CODECS_FLAG_NOFLIP (1<<1) | 24 #define CODECS_FLAG_NOFLIP (1<<1) |
22 #define CODECS_FLAG_YUVHACK (1<<2) | 25 #define CODECS_FLAG_YUVHACK (1<<2) |
23 | 26 |
24 | 27 |
25 #warning nem kellene ket typedef GUID-nak... | 28 //#warning nem kellene ket typedef GUID-nak... |
26 typedef struct { | 29 typedef struct { |
27 unsigned long f1; | 30 unsigned long f1; |
28 unsigned short f2; | 31 unsigned short f2; |
29 unsigned short f3; | 32 unsigned short f3; |
30 unsigned char f4[8]; | 33 unsigned char f4[8]; |
42 GUID guid; | 45 GUID guid; |
43 unsigned int outfmt[CODECS_MAX_OUTFMT]; | 46 unsigned int outfmt[CODECS_MAX_OUTFMT]; |
44 unsigned char outflags[CODECS_MAX_OUTFMT]; | 47 unsigned char outflags[CODECS_MAX_OUTFMT]; |
45 } codecs_t; | 48 } codecs_t; |
46 | 49 |
47 codecs_t *parse_codec_cfg(char *cfgfile); | 50 codecs_t* parse_codec_cfg(char *cfgfile); |
51 codecs_t* find_codec(unsigned int fourcc,unsigned int *fourccmap,int audioflag); | |
48 | 52 |
49 #endif | 53 #endif |