annotate codec-cfg.h @ 316:589a93489054

status added
author szabii
date Sun, 08 Apr 2001 23:42:25 +0000
parents 828ec81e0d64
children 6472ab2051c7
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
303
828ec81e0d64 codecs.conf support
arpi_esp
parents: 300
diff changeset
18 // Global flags:
297
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
19 #define CODECS_FLAG_AUDIO (1<<0)
303
828ec81e0d64 codecs.conf support
arpi_esp
parents: 300
diff changeset
20 #define CODECS_FLAG_SEEKABLE (1<<1)
297
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
21
303
828ec81e0d64 codecs.conf support
arpi_esp
parents: 300
diff changeset
22 // Outfmt flags:
299
3343fb3e4f49 outflags[] reading fixed
arpi_esp
parents: 297
diff changeset
23 #define CODECS_FLAG_FLIP (1<<0)
3343fb3e4f49 outflags[] reading fixed
arpi_esp
parents: 297
diff changeset
24 #define CODECS_FLAG_NOFLIP (1<<1)
3343fb3e4f49 outflags[] reading fixed
arpi_esp
parents: 297
diff changeset
25 #define CODECS_FLAG_YUVHACK (1<<2)
3343fb3e4f49 outflags[] reading fixed
arpi_esp
parents: 297
diff changeset
26
316
589a93489054 status added
szabii
parents: 303
diff changeset
27 #define CODECS_STATUS_NOT_WORKING 0
589a93489054 status added
szabii
parents: 303
diff changeset
28 #define CODECS_STATUS_UNTESTED -1
589a93489054 status added
szabii
parents: 303
diff changeset
29 #define CODECS_STATUS_PROBLEMS 1
589a93489054 status added
szabii
parents: 303
diff changeset
30 #define CODECS_STATUS_WORKING 2
589a93489054 status added
szabii
parents: 303
diff changeset
31
299
3343fb3e4f49 outflags[] reading fixed
arpi_esp
parents: 297
diff changeset
32
303
828ec81e0d64 codecs.conf support
arpi_esp
parents: 300
diff changeset
33 //#warning nem kellene ket typedef GUID-nak...
297
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
34 typedef struct {
300
df3f7a25584c audio format support, realloc() cleanup
arpi_esp
parents: 299
diff changeset
35 unsigned long f1;
df3f7a25584c audio format support, realloc() cleanup
arpi_esp
parents: 299
diff changeset
36 unsigned short f2;
df3f7a25584c audio format support, realloc() cleanup
arpi_esp
parents: 299
diff changeset
37 unsigned short f3;
df3f7a25584c audio format support, realloc() cleanup
arpi_esp
parents: 299
diff changeset
38 unsigned char f4[8];
297
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
39 } GUID;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
40
316
589a93489054 status added
szabii
parents: 303
diff changeset
41 /* I just rearranged, to use less memory... */
297
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
42 typedef struct {
316
589a93489054 status added
szabii
parents: 303
diff changeset
43 unsigned int fourcc[CODECS_MAX_FOURCC];
589a93489054 status added
szabii
parents: 303
diff changeset
44 unsigned int fourccmap[CODECS_MAX_FOURCC];
589a93489054 status added
szabii
parents: 303
diff changeset
45 unsigned int outfmt[CODECS_MAX_OUTFMT];
589a93489054 status added
szabii
parents: 303
diff changeset
46 unsigned char outflags[CODECS_MAX_OUTFMT];
297
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
47 char *name;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
48 char *info;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
49 char *comment;
316
589a93489054 status added
szabii
parents: 303
diff changeset
50 char *dll;
589a93489054 status added
szabii
parents: 303
diff changeset
51 GUID guid;
297
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
52 short driver;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
53 short flags;
316
589a93489054 status added
szabii
parents: 303
diff changeset
54 short status;
297
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
55 } codecs_t;
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
56
303
828ec81e0d64 codecs.conf support
arpi_esp
parents: 300
diff changeset
57 codecs_t* parse_codec_cfg(char *cfgfile);
828ec81e0d64 codecs.conf support
arpi_esp
parents: 300
diff changeset
58 codecs_t* find_codec(unsigned int fourcc,unsigned int *fourccmap,int audioflag);
297
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
59
9b00ddddc0b2 imported codec-cfg, small fixes
arpi_esp
parents:
diff changeset
60 #endif