Mercurial > mplayer.hg
annotate codec-cfg.h @ 13754:1e2495e9462e
Marillat's homepage has been down for ages.
author | diego |
---|---|
date | Mon, 25 Oct 2004 00:37:28 +0000 |
parents | ba6b9cc1b3d0 |
children | b014091b4417 |
rev | line source |
---|---|
297 | 1 #ifndef __CODEC_CFG_H |
2 #define __CODEC_CFG_H | |
3 | |
10467 | 4 #define CODEC_CFG_MIN 20030724 |
6200
e604be87613d
codecs.conf versioning - patch by Joey Parrish <joey@yunamusic.com>
arpi
parents:
6103
diff
changeset
|
5 |
4216 | 6 #define CODECS_MAX_FOURCC 32 |
4675 | 7 #define CODECS_MAX_OUTFMT 16 |
8 #define CODECS_MAX_INFMT 16 | |
297 | 9 |
303 | 10 // Global flags: |
328 | 11 #define CODECS_FLAG_SEEKABLE (1<<0) |
6565 | 12 #define CODECS_FLAG_ALIGN16 (1<<1) |
5325
9c326f199060
tagging selected codec to avoid trying the same codec several times
arpi
parents:
5263
diff
changeset
|
13 #define CODECS_FLAG_SELECTED (1<<15) /* for internal use */ |
297 | 14 |
303 | 15 // Outfmt flags: |
299 | 16 #define CODECS_FLAG_FLIP (1<<0) |
17 #define CODECS_FLAG_NOFLIP (1<<1) | |
18 #define CODECS_FLAG_YUVHACK (1<<2) | |
5249 | 19 #define CODECS_FLAG_QUERY (1<<3) |
6103 | 20 #define CODECS_FLAG_STATIC (1<<4) |
299 | 21 |
5177 | 22 #define CODECS_STATUS__MIN 0 |
23 #define CODECS_STATUS_NOT_WORKING -1 | |
24 #define CODECS_STATUS_PROBLEMS 0 | |
25 #define CODECS_STATUS_WORKING 1 | |
26 #define CODECS_STATUS_UNTESTED 2 | |
27 #define CODECS_STATUS__MAX 2 | |
316 | 28 |
299 | 29 |
12358
133e0ebde74d
Make it compile on mingw again. Now it is finally possible to include windows.h in mplayer.c
faust3
parents:
10467
diff
changeset
|
30 #if !defined(GUID_TYPE) && !defined(GUID_DEFINED) |
13591 | 31 #define GUID_TYPE 1 |
32 #define GUID_DEFINED 1 | |
297 | 33 typedef struct { |
300 | 34 unsigned long f1; |
35 unsigned short f2; | |
36 unsigned short f3; | |
37 unsigned char f4[8]; | |
297 | 38 } GUID; |
1836 | 39 #endif |
40 | |
297 | 41 |
2310 | 42 typedef struct codecs_st { |
316 | 43 unsigned int fourcc[CODECS_MAX_FOURCC]; |
44 unsigned int fourccmap[CODECS_MAX_FOURCC]; | |
45 unsigned int outfmt[CODECS_MAX_OUTFMT]; | |
46 unsigned char outflags[CODECS_MAX_OUTFMT]; | |
4675 | 47 unsigned int infmt[CODECS_MAX_INFMT]; |
48 unsigned char inflags[CODECS_MAX_INFMT]; | |
297 | 49 char *name; |
50 char *info; | |
51 char *comment; | |
316 | 52 char *dll; |
7180
28677d779205
-afm/-vfm migration from ID (int) to NAME (string) - simplifies code and makes dlopen()'ing possible
arpi
parents:
6935
diff
changeset
|
53 char* drv; |
316 | 54 GUID guid; |
7180
28677d779205
-afm/-vfm migration from ID (int) to NAME (string) - simplifies code and makes dlopen()'ing possible
arpi
parents:
6935
diff
changeset
|
55 // short driver; |
297 | 56 short flags; |
316 | 57 short status; |
361 | 58 short cpuflags; |
297 | 59 } codecs_t; |
60 | |
3798
d1e3ad5bcd8f
fixed few segfaults, make parse_codec_cfg() return int
iive
parents:
3787
diff
changeset
|
61 int parse_codec_cfg(char *cfgfile); |
332 | 62 codecs_t* find_video_codec(unsigned int fourcc, unsigned int *fourccmap, codecs_t *start); |
63 codecs_t* find_audio_codec(unsigned int fourcc, unsigned int *fourccmap, codecs_t *start); | |
64 codecs_t* find_codec(unsigned int fourcc,unsigned int *fourccmap,codecs_t *start,int audioflag); | |
7505 | 65 void select_codec(char* codecname,int audioflag); |
1983 | 66 void list_codecs(int audioflag); |
5326 | 67 void codecs_reset_selection(int audioflag); |
297 | 68 |
69 #endif |