summaryrefslogtreecommitdiffstats
path: root/ac3-iec958.h
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-15 11:50:55 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-08-15 11:50:55 +0000
commit7c9c86fb97c49974274ea2404c5461fe42db5472 (patch)
treefe0535a64aee23c1413683f1a997b625c79d7b9f /ac3-iec958.h
parent26543fef95be404da8ee8b1ef242acb6eea9cc22 (diff)
downloadmpv-7c9c86fb97c49974274ea2404c5461fe42db5472.tar.bz2
mpv-7c9c86fb97c49974274ea2404c5461fe42db5472.tar.xz
ac3/spdif patch by German Gomez Garcia <german@piraos.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1529 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'ac3-iec958.h')
-rw-r--r--ac3-iec958.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/ac3-iec958.h b/ac3-iec958.h
new file mode 100644
index 0000000000..ccd2385dc1
--- /dev/null
+++ b/ac3-iec958.h
@@ -0,0 +1,13 @@
+#ifndef _AC3_IEC958_H
+#define _AC3_IEC958_H
+
+#define IEC61937_DATA_TYPE_AC3 1
+
+struct hwac3info {
+ int bitrate, framesize, samplerate, bsmod;
+};
+
+void ac3_iec958_build_burst(int length, int data_type, int big_endian, unsigned char * data, unsigned char * out);
+int ac3_iec958_parse_syncinfo(unsigned char *buf, int size, struct hwac3info *ai, int *skipped);
+
+#endif