annotate codec-cfg.h @ 297:9b00ddddc0b2

imported codec-cfg, small fixes
author arpi_esp
date Fri, 06 Apr 2001 23:20:46 +0000
parents
children 3343fb3e4f49
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
297
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
1 #ifndef __CODEC_CFG_H
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
2 #define __CODEC_CFG_H
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
3
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
4 //#include <inttypes.h>
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
5
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
6 #ifndef IMGFMT_YV12
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
7 #define IMGFMT_YV12 0x32315659
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
8 #define IMGFMT_YUY2 (('2'<<24)|('Y'<<16)|('U'<<8)|'Y')
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
9 #define IMGFMT_RGB_MASK 0xFFFFFF00
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
10 #define IMGFMT_RGB (('R'<<24)|('G'<<16)|('B'<<8))
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
11 #define IMGFMT_BGR_MASK 0xFFFFFF00
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
12 #define IMGFMT_BGR (('B'<<24)|('G'<<16)|('R'<<8))
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
13 #endif
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
14
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
15 #define CODECS_MAX_FOURCC 16
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
16 #define CODECS_MAX_OUTFMT 16
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
17
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
18 #define CODECS_FLAG_AUDIO (1<<0)
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
19
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
20 #warning nem kellene ket typedef GUID-nak...
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
21 typedef struct {
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
22 long f1;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
23 short f2;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
24 short f3;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
25 char f4[8];
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
26 } GUID;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
27
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
28 typedef struct {
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
29 char *name;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
30 char *info;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
31 char *comment;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
32 unsigned int fourcc[CODECS_MAX_FOURCC];
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
33 unsigned int fourccmap[CODECS_MAX_FOURCC];
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
34 short driver;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
35 short flags;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
36 char *dll;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
37 GUID guid;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
38 unsigned int outfmt[CODECS_MAX_OUTFMT];
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
39 unsigned char outflags[CODECS_MAX_OUTFMT];
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
40 } codecs_t;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
41
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
42 codecs_t *parse_codec_cfg(char *cfgfile);
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
43
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
44 #endif