-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathac3_common.h
52 lines (42 loc) · 976 Bytes
/
ac3_common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
ogmmerge -- utility for splicing together ogg bitstreams
from component media subtypes
ac3common.cpp
AC3 header decoding functions
Written by Moritz Bunkus <[email protected]>
Based on Xiph.org's 'oggmerge' found in their CVS repository
See http://www.xiph.org
Distributed under the GPL
see the file COPYING for details
or visit http://www.gnu.org/copyleft/gpl.html
*/
#ifndef __AC3COMMON_H
#define __AC3COMMON_H
#ifdef __cplusplus
extern "C" {
#endif
#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);
#ifdef __cplusplus
}
#endif
#endif