2003-02-16 12:11:31 +00:00
|
|
|
/*
|
2003-02-16 17:04:39 +00:00
|
|
|
mkvmerge -- utility for splicing together matroska files
|
|
|
|
from component media subtypes
|
2003-02-16 12:11:31 +00:00
|
|
|
|
2003-02-16 17:04:39 +00:00
|
|
|
ac3_common.h
|
2003-02-16 12:11:31 +00:00
|
|
|
|
|
|
|
Written by Moritz Bunkus <moritz@bunkus.org>
|
|
|
|
|
|
|
|
Distributed under the GPL
|
|
|
|
see the file COPYING for details
|
|
|
|
or visit http://www.gnu.org/copyleft/gpl.html
|
|
|
|
*/
|
2003-02-16 17:04:39 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
\file
|
2003-06-15 13:58:25 +00:00
|
|
|
\version \$Id$
|
2003-02-16 17:04:39 +00:00
|
|
|
\brief definitions and helper functions for AC3 data
|
2003-05-18 20:57:08 +00:00
|
|
|
\author Moritz Bunkus <moritz@bunkus.org>
|
2003-02-16 17:04:39 +00:00
|
|
|
*/
|
|
|
|
|
2003-02-16 12:11:31 +00:00
|
|
|
#ifndef __AC3COMMON_H
|
|
|
|
#define __AC3COMMON_H
|
|
|
|
|
|
|
|
#define A52_CHANNEL 0
|
|
|
|
#define A52_MONO 1
|
|
|
|
#define A52_STEREO 2
|
|
|
|
#define A52_3F 3
|
|
|
|
#define A52_2F1R 4
|
|
|
|
#define A52_3F1R 5
|
|
|
|
#define A52_2F2R 6
|
|
|
|
#define A52_3F2R 7
|
|
|
|
#define A52_CHANNEL1 8
|
|
|
|
#define A52_CHANNEL2 9
|
|
|
|
#define A52_DOLBY 10
|
|
|
|
#define A52_CHANNEL_MASK 15
|
|
|
|
|
|
|
|
#define A52_LFE 16
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int sample_rate;
|
|
|
|
int bit_rate;
|
|
|
|
int channels;
|
|
|
|
int flags;
|
|
|
|
int bytes;
|
|
|
|
} ac3_header_t;
|
|
|
|
|
|
|
|
int find_ac3_header(unsigned char *buf, int size, ac3_header_t *ac3_header);
|
|
|
|
|
2003-02-16 17:04:39 +00:00
|
|
|
#endif // __AC3COMMON_H
|
2003-02-16 12:11:31 +00:00
|
|
|
|