yading@10
|
1 /*
|
yading@10
|
2 * DCA compatible decoder
|
yading@10
|
3 * Copyright (C) 2004 Gildas Bazin
|
yading@10
|
4 * Copyright (C) 2004 Benjamin Zores
|
yading@10
|
5 * Copyright (C) 2006 Benjamin Larsson
|
yading@10
|
6 * Copyright (C) 2007 Konstantin Shishkov
|
yading@10
|
7 *
|
yading@10
|
8 * This file is part of FFmpeg.
|
yading@10
|
9 *
|
yading@10
|
10 * FFmpeg is free software; you can redistribute it and/or
|
yading@10
|
11 * modify it under the terms of the GNU Lesser General Public
|
yading@10
|
12 * License as published by the Free Software Foundation; either
|
yading@10
|
13 * version 2.1 of the License, or (at your option) any later version.
|
yading@10
|
14 *
|
yading@10
|
15 * FFmpeg is distributed in the hope that it will be useful,
|
yading@10
|
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
yading@10
|
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
yading@10
|
18 * Lesser General Public License for more details.
|
yading@10
|
19 *
|
yading@10
|
20 * You should have received a copy of the GNU Lesser General Public
|
yading@10
|
21 * License along with FFmpeg; if not, write to the Free Software
|
yading@10
|
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
yading@10
|
23 */
|
yading@10
|
24
|
yading@10
|
25 #ifndef AVCODEC_DCA_H
|
yading@10
|
26 #define AVCODEC_DCA_H
|
yading@10
|
27
|
yading@10
|
28 #include <stdint.h>
|
yading@10
|
29 #include "libavutil/internal.h"
|
yading@10
|
30
|
yading@10
|
31 /** DCA syncwords, also used for bitstream type detection */
|
yading@10
|
32 #define DCA_MARKER_RAW_BE 0x7FFE8001
|
yading@10
|
33 #define DCA_MARKER_RAW_LE 0xFE7F0180
|
yading@10
|
34 #define DCA_MARKER_14B_BE 0x1FFFE800
|
yading@10
|
35 #define DCA_MARKER_14B_LE 0xFF1F00E8
|
yading@10
|
36
|
yading@10
|
37 /** DCA-HD specific block starts with this marker. */
|
yading@10
|
38 #define DCA_HD_MARKER 0x64582025
|
yading@10
|
39
|
yading@10
|
40 extern av_export const uint32_t avpriv_dca_sample_rates[16];
|
yading@10
|
41
|
yading@10
|
42 /**
|
yading@10
|
43 * Convert bitstream to one representation based on sync marker
|
yading@10
|
44 */
|
yading@10
|
45 int ff_dca_convert_bitstream(const uint8_t *src, int src_size, uint8_t *dst,
|
yading@10
|
46 int max_size);
|
yading@10
|
47
|
yading@10
|
48 #endif /* AVCODEC_DCA_H */
|