2003-05-17 21:01:28 +00:00
|
|
|
/*
|
|
|
|
mkvmerge -- utility for splicing together matroska files
|
|
|
|
from component media subtypes
|
|
|
|
|
|
|
|
aac_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
|
2003-06-15 14:03:28 +00:00
|
|
|
\version $Id$
|
2003-05-17 21:01:28 +00:00
|
|
|
\brief definitions and helper functions for AAC data
|
2003-05-18 20:57:08 +00:00
|
|
|
\author Moritz Bunkus <moritz@bunkus.org>
|
2003-05-17 21:01:28 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __AACCOMMON_H
|
|
|
|
#define __AACCOMMON_H
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int sample_rate;
|
|
|
|
int bit_rate;
|
|
|
|
int channels;
|
|
|
|
int bytes;
|
|
|
|
int id; // 0 = MPEG-4, 1 = MPEG-2
|
|
|
|
int profile;
|
2003-05-19 20:51:12 +00:00
|
|
|
int header_bit_size, header_byte_size, data_byte_size;
|
2003-05-17 21:01:28 +00:00
|
|
|
} aac_header_t;
|
|
|
|
|
2003-05-18 19:56:31 +00:00
|
|
|
int parse_aac_adif_header(unsigned char *buf, int size,
|
|
|
|
aac_header_t *aac_header);
|
2003-06-19 19:32:50 +00:00
|
|
|
int find_aac_header(unsigned char *buf, int size, aac_header_t *aac_header,
|
|
|
|
bool emphasis_present);
|
2003-05-17 21:01:28 +00:00
|
|
|
|
|
|
|
#endif // __AACCOMMON_H
|