297
|
1 #ifndef __CODEC_CFG_H
|
|
2 #define __CODEC_CFG_H
|
|
3
|
|
4 //#include <inttypes.h>
|
|
5
|
|
6 #ifndef IMGFMT_YV12
|
|
7 #define IMGFMT_YV12 0x32315659
|
|
8 #define IMGFMT_YUY2 (('2'<<24)|('Y'<<16)|('U'<<8)|'Y')
|
|
9 #define IMGFMT_RGB_MASK 0xFFFFFF00
|
|
10 #define IMGFMT_RGB (('R'<<24)|('G'<<16)|('B'<<8))
|
|
11 #define IMGFMT_BGR_MASK 0xFFFFFF00
|
|
12 #define IMGFMT_BGR (('B'<<24)|('G'<<16)|('R'<<8))
|
|
13 #endif
|
|
14
|
|
15 #define CODECS_MAX_FOURCC 16
|
|
16 #define CODECS_MAX_OUTFMT 16
|
|
17
|
|
18 #define CODECS_FLAG_AUDIO (1<<0)
|
|
19
|
|
20 #warning nem kellene ket typedef GUID-nak...
|
|
21 typedef struct {
|
|
22 long f1;
|
|
23 short f2;
|
|
24 short f3;
|
|
25 char f4[8];
|
|
26 } GUID;
|
|
27
|
|
28 typedef struct {
|
|
29 char *name;
|
|
30 char *info;
|
|
31 char *comment;
|
|
32 unsigned int fourcc[CODECS_MAX_FOURCC];
|
|
33 unsigned int fourccmap[CODECS_MAX_FOURCC];
|
|
34 short driver;
|
|
35 short flags;
|
|
36 char *dll;
|
|
37 GUID guid;
|
|
38 unsigned int outfmt[CODECS_MAX_OUTFMT];
|
|
39 unsigned char outflags[CODECS_MAX_OUTFMT];
|
|
40 } codecs_t;
|
|
41
|
|
42 codecs_t *parse_codec_cfg(char *cfgfile);
|
|
43
|
|
44 #endif
|