summaryrefslogtreecommitdiffstats
path: root/codec-cfg.h
diff options
context:
space:
mode:
authorarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-06 23:20:46 +0000
committerarpi_esp <arpi_esp@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-04-06 23:20:46 +0000
commitb5332bd54df0a2b1af990dc71ffe08690fb98343 (patch)
tree3abf5c9e031d074bc776fc12ad591618d48f6040 /codec-cfg.h
parent7b6e0023b8e4eee0b106939161b0230918c9c427 (diff)
downloadmpv-b5332bd54df0a2b1af990dc71ffe08690fb98343.tar.bz2
mpv-b5332bd54df0a2b1af990dc71ffe08690fb98343.tar.xz
imported codec-cfg, small fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@298 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'codec-cfg.h')
-rw-r--r--codec-cfg.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/codec-cfg.h b/codec-cfg.h
new file mode 100644
index 0000000000..90261cc5c5
--- /dev/null
+++ b/codec-cfg.h
@@ -0,0 +1,44 @@
+#ifndef __CODEC_CFG_H
+#define __CODEC_CFG_H
+
+//#include <inttypes.h>
+
+#ifndef IMGFMT_YV12
+#define IMGFMT_YV12 0x32315659
+#define IMGFMT_YUY2 (('2'<<24)|('Y'<<16)|('U'<<8)|'Y')
+#define IMGFMT_RGB_MASK 0xFFFFFF00
+#define IMGFMT_RGB (('R'<<24)|('G'<<16)|('B'<<8))
+#define IMGFMT_BGR_MASK 0xFFFFFF00
+#define IMGFMT_BGR (('B'<<24)|('G'<<16)|('R'<<8))
+#endif
+
+#define CODECS_MAX_FOURCC 16
+#define CODECS_MAX_OUTFMT 16
+
+#define CODECS_FLAG_AUDIO (1<<0)
+
+#warning nem kellene ket typedef GUID-nak...
+typedef struct {
+ long f1;
+ short f2;
+ short f3;
+ char f4[8];
+} GUID;
+
+typedef struct {
+ char *name;
+ char *info;
+ char *comment;
+ unsigned int fourcc[CODECS_MAX_FOURCC];
+ unsigned int fourccmap[CODECS_MAX_FOURCC];
+ short driver;
+ short flags;
+ char *dll;
+ GUID guid;
+ unsigned int outfmt[CODECS_MAX_OUTFMT];
+ unsigned char outflags[CODECS_MAX_OUTFMT];
+} codecs_t;
+
+codecs_t *parse_codec_cfg(char *cfgfile);
+
+#endif