Mercurial > mplayer.hg
annotate codec-cfg.h @ 19208:99d6ca895c46
Avoid large amounts of data on the stack (> 900k on 64 bit systems).
Patch by Tobias Diedrich (ranma at tdiedrich de) with minor modifications by me.
author | reimar |
---|---|
date | Fri, 28 Jul 2006 13:50:08 +0000 |
parents | ed69754aa58d |
children | 91c7509c7940 |
rev | line source |
---|---|
297 | 1 #ifndef __CODEC_CFG_H |
2 #define __CODEC_CFG_H | |
3 | |
18581 | 4 #define CODEC_CFG_MIN 20060501 |
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 | |
18980
ed69754aa58d
Marks several string parameters as const when they are not modified in the function, Patch by Stefan Huehner, stefan AT huehner-org
reynaldo
parents:
18581
diff
changeset
|
61 int parse_codec_cfg(const char *cfgfile); |
16321
efbfac98cab1
Allow forcing of demuxers and codecs by prepending '+'
reimar
parents:
16132
diff
changeset
|
62 codecs_t* find_video_codec(unsigned int fourcc, unsigned int *fourccmap, |
efbfac98cab1
Allow forcing of demuxers and codecs by prepending '+'
reimar
parents:
16132
diff
changeset
|
63 codecs_t *start, int force); |
efbfac98cab1
Allow forcing of demuxers and codecs by prepending '+'
reimar
parents:
16132
diff
changeset
|
64 codecs_t* find_audio_codec(unsigned int fourcc, unsigned int *fourccmap, |
efbfac98cab1
Allow forcing of demuxers and codecs by prepending '+'
reimar
parents:
16132
diff
changeset
|
65 codecs_t *start, int force); |
efbfac98cab1
Allow forcing of demuxers and codecs by prepending '+'
reimar
parents:
16132
diff
changeset
|
66 codecs_t* find_codec(unsigned int fourcc, unsigned int *fourccmap, |
efbfac98cab1
Allow forcing of demuxers and codecs by prepending '+'
reimar
parents:
16132
diff
changeset
|
67 codecs_t *start, int audioflag, int force); |
7505 | 68 void select_codec(char* codecname,int audioflag); |
1983 | 69 void list_codecs(int audioflag); |
5326 | 70 void codecs_reset_selection(int audioflag); |
17566
f580a7755ac5
Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents:
16321
diff
changeset
|
71 void codecs_uninit_free(void); |
297 | 72 |
73 #endif |