annotate codec-cfg.h @ 299:3343fb3e4f49

outflags[] reading fixed
author arpi_esp
date Fri, 06 Apr 2001 23:56:42 +0000
parents 9b00ddddc0b2
children df3f7a25584c
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
299
3343fb3e4f49 outflags[] reading fixed
arpi_esp
parents: 297
diff changeset
20 #define CODECS_FLAG_FLIP (1<<0)
3343fb3e4f49 outflags[] reading fixed
arpi_esp
parents: 297
diff changeset
21 #define CODECS_FLAG_NOFLIP (1<<1)
3343fb3e4f49 outflags[] reading fixed
arpi_esp
parents: 297
diff changeset
22 #define CODECS_FLAG_YUVHACK (1<<2)
3343fb3e4f49 outflags[] reading fixed
arpi_esp
parents: 297
diff changeset
23
3343fb3e4f49 outflags[] reading fixed
arpi_esp
parents: 297
diff changeset
24
297
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
25 #warning nem kellene ket typedef GUID-nak...
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
26 typedef struct {
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
27 long f1;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
28 short f2;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
29 short f3;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
30 char f4[8];
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
31 } GUID;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
32
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
33 typedef struct {
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
34 char *name;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
35 char *info;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
36 char *comment;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
37 unsigned int fourcc[CODECS_MAX_FOURCC];
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
38 unsigned int fourccmap[CODECS_MAX_FOURCC];
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
39 short driver;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
40 short flags;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
41 char *dll;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
42 GUID guid;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
43 unsigned int outfmt[CODECS_MAX_OUTFMT];
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
44 unsigned char outflags[CODECS_MAX_OUTFMT];
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
45 } codecs_t;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
46
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
47 codecs_t *parse_codec_cfg(char *cfgfile);
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
48
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
49 #endif