mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 12:27:21 +00:00
51 lines
1008 B
C
51 lines
1008 B
C
/*
|
|
mkvmerge -- utility for splicing together matroska files
|
|
from component media subtypes
|
|
|
|
ac3_common.h
|
|
|
|
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
|
|
*/
|
|
|
|
/*!
|
|
\file
|
|
\version \$Id: ac3_common.h,v 1.2 2003/02/16 17:04:38 mosu Exp $
|
|
\brief definitions and helper functions for AC3 data
|
|
\author Moritz Bunkus <moritz @ bunkus.org>
|
|
*/
|
|
|
|
#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);
|
|
|
|
#endif // __AC3COMMON_H
|
|
|