FFmpeg
dca.h
Go to the documentation of this file.
1 /*
2  * DCA compatible decoder
3  * Copyright (C) 2004 Gildas Bazin
4  * Copyright (C) 2004 Benjamin Zores
5  * Copyright (C) 2006 Benjamin Larsson
6  * Copyright (C) 2007 Konstantin Shishkov
7  * Copyright (C) 2016 foo86
8  *
9  * This file is part of FFmpeg.
10  *
11  * FFmpeg is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Lesser General Public
13  * License as published by the Free Software Foundation; either
14  * version 2.1 of the License, or (at your option) any later version.
15  *
16  * FFmpeg is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * Lesser General Public License for more details.
20  *
21  * You should have received a copy of the GNU Lesser General Public
22  * License along with FFmpeg; if not, write to the Free Software
23  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24  */
25 
26 #ifndef AVCODEC_DCA_H
27 #define AVCODEC_DCA_H
28 
29 #include <stdint.h>
30 
31 #include "libavutil/common.h"
32 #include "libavutil/intreadwrite.h"
33 
34 #include "get_bits.h"
35 
36 #define DCA_CORE_FRAME_HEADER_SIZE 18
37 
48 };
49 
50 typedef struct DCACoreFrameHeader {
51  uint8_t normal_frame; ///< Frame type
52  uint8_t deficit_samples; ///< Deficit sample count
53  uint8_t crc_present; ///< CRC present flag
54  uint8_t npcmblocks; ///< Number of PCM sample blocks
55  uint16_t frame_size; ///< Primary frame byte size
56  uint8_t audio_mode; ///< Audio channel arrangement
57  uint8_t sr_code; ///< Core audio sampling frequency
58  uint8_t br_code; ///< Transmission bit rate
59  uint8_t drc_present; ///< Embedded dynamic range flag
60  uint8_t ts_present; ///< Embedded time stamp flag
61  uint8_t aux_present; ///< Auxiliary data flag
62  uint8_t hdcd_master; ///< HDCD mastering flag
63  uint8_t ext_audio_type; ///< Extension audio descriptor flag
64  uint8_t ext_audio_present; ///< Extended coding flag
65  uint8_t sync_ssf; ///< Audio sync word insertion flag
66  uint8_t lfe_present; ///< Low frequency effects flag
67  uint8_t predictor_history; ///< Predictor history flag switch
68  uint8_t filter_perfect; ///< Multirate interpolator switch
69  uint8_t encoder_rev; ///< Encoder software revision
70  uint8_t copy_hist; ///< Copy history
71  uint8_t pcmr_code; ///< Source PCM resolution
72  uint8_t sumdiff_front; ///< Front sum/difference flag
73  uint8_t sumdiff_surround; ///< Surround sum/difference flag
74  uint8_t dn_code; ///< Dialog normalization / unspecified
76 
77 enum DCASpeaker {
86 
88 };
89 
91  DCA_SPEAKER_MASK_C = 0x00000001,
92  DCA_SPEAKER_MASK_L = 0x00000002,
93  DCA_SPEAKER_MASK_R = 0x00000004,
94  DCA_SPEAKER_MASK_Ls = 0x00000008,
95  DCA_SPEAKER_MASK_Rs = 0x00000010,
96  DCA_SPEAKER_MASK_LFE1 = 0x00000020,
97  DCA_SPEAKER_MASK_Cs = 0x00000040,
98  DCA_SPEAKER_MASK_Lsr = 0x00000080,
99  DCA_SPEAKER_MASK_Rsr = 0x00000100,
100  DCA_SPEAKER_MASK_Lss = 0x00000200,
101  DCA_SPEAKER_MASK_Rss = 0x00000400,
102  DCA_SPEAKER_MASK_Lc = 0x00000800,
103  DCA_SPEAKER_MASK_Rc = 0x00001000,
104  DCA_SPEAKER_MASK_Lh = 0x00002000,
105  DCA_SPEAKER_MASK_Ch = 0x00004000,
106  DCA_SPEAKER_MASK_Rh = 0x00008000,
107  DCA_SPEAKER_MASK_LFE2 = 0x00010000,
108  DCA_SPEAKER_MASK_Lw = 0x00020000,
109  DCA_SPEAKER_MASK_Rw = 0x00040000,
110  DCA_SPEAKER_MASK_Oh = 0x00080000,
111  DCA_SPEAKER_MASK_Lhs = 0x00100000,
112  DCA_SPEAKER_MASK_Rhs = 0x00200000,
113  DCA_SPEAKER_MASK_Chr = 0x00400000,
114  DCA_SPEAKER_MASK_Lhr = 0x00800000,
115  DCA_SPEAKER_MASK_Rhr = 0x01000000,
116  DCA_SPEAKER_MASK_Cl = 0x02000000,
117  DCA_SPEAKER_MASK_Ll = 0x04000000,
118  DCA_SPEAKER_MASK_Rl = 0x08000000,
119 };
120 
121 #define DCA_SPEAKER_LAYOUT_MONO (DCA_SPEAKER_MASK_C)
122 #define DCA_SPEAKER_LAYOUT_STEREO (DCA_SPEAKER_MASK_L | DCA_SPEAKER_MASK_R)
123 #define DCA_SPEAKER_LAYOUT_2POINT1 (DCA_SPEAKER_LAYOUT_STEREO | DCA_SPEAKER_MASK_LFE1)
124 #define DCA_SPEAKER_LAYOUT_3_0 (DCA_SPEAKER_LAYOUT_STEREO | DCA_SPEAKER_MASK_C)
125 #define DCA_SPEAKER_LAYOUT_2_1 (DCA_SPEAKER_LAYOUT_STEREO | DCA_SPEAKER_MASK_Cs)
126 #define DCA_SPEAKER_LAYOUT_3_1 (DCA_SPEAKER_LAYOUT_3_0 | DCA_SPEAKER_MASK_Cs)
127 #define DCA_SPEAKER_LAYOUT_2_2 (DCA_SPEAKER_LAYOUT_STEREO | DCA_SPEAKER_MASK_Ls | DCA_SPEAKER_MASK_Rs)
128 #define DCA_SPEAKER_LAYOUT_5POINT0 (DCA_SPEAKER_LAYOUT_3_0 | DCA_SPEAKER_MASK_Ls | DCA_SPEAKER_MASK_Rs)
129 #define DCA_SPEAKER_LAYOUT_5POINT1 (DCA_SPEAKER_LAYOUT_5POINT0 | DCA_SPEAKER_MASK_LFE1)
130 #define DCA_SPEAKER_LAYOUT_7POINT0_WIDE (DCA_SPEAKER_LAYOUT_5POINT0 | DCA_SPEAKER_MASK_Lw | DCA_SPEAKER_MASK_Rw)
131 #define DCA_SPEAKER_LAYOUT_7POINT1_WIDE (DCA_SPEAKER_LAYOUT_7POINT0_WIDE | DCA_SPEAKER_MASK_LFE1)
132 
133 #define DCA_HAS_STEREO(mask) \
134  ((mask & DCA_SPEAKER_LAYOUT_STEREO) == DCA_SPEAKER_LAYOUT_STEREO)
135 
153 };
154 
155 /**
156  * Return number of individual channels in DCASpeakerPair mask
157  */
158 static inline int ff_dca_count_chs_for_mask(unsigned int mask)
159 {
160  return av_popcount((mask & 0xffff) | ((mask & 0xae66) << 16));
161 }
162 
166 };
167 
169  DCA_CSS_CORE = 0x001,
170  DCA_CSS_XXCH = 0x002,
171  DCA_CSS_X96 = 0x004,
172  DCA_CSS_XCH = 0x008,
173  DCA_CSS_MASK = 0x00f,
174  DCA_EXSS_CORE = 0x010,
175  DCA_EXSS_XBR = 0x020,
176  DCA_EXSS_XXCH = 0x040,
177  DCA_EXSS_X96 = 0x080,
178  DCA_EXSS_LBR = 0x100,
179  DCA_EXSS_XLL = 0x200,
180  DCA_EXSS_RSV1 = 0x400,
181  DCA_EXSS_RSV2 = 0x800,
182  DCA_EXSS_MASK = 0xff0,
183 };
184 
193 
195 };
196 
197 extern const uint32_t ff_dca_sample_rates[16];
198 extern const uint32_t ff_dca_sampling_freqs[16];
199 extern const uint8_t ff_dca_freq_ranges[16];
200 extern const uint8_t ff_dca_bits_per_sample[8];
201 
202 
203 /**
204  * Convert bitstream to one representation based on sync marker
205  */
206 int avpriv_dca_convert_bitstream(const uint8_t *src, int src_size, uint8_t *dst,
207  int max_size);
208 
209 /**
210  * Parse and validate core frame header
211  * @param[out] h Pointer to struct where header info is written.
212  * @param[in] buf Pointer to the data buffer
213  * @param[in] size Size of the data buffer
214  * @return 0 on success, negative AVERROR code on failure
215  */
216 int avpriv_dca_parse_core_frame_header(DCACoreFrameHeader *h, const uint8_t *buf, int size);
217 
218 /**
219  * Parse and validate core frame header
220  * @param[out] h Pointer to struct where header info is written.
221  * @param[in] gbc BitContext containing the first 120 bits of the frame.
222  * @return 0 on success, negative DCA_PARSE_ERROR_ code on failure
223  */
225 
226 #endif /* AVCODEC_DCA_H */
DCA_SPEAKER_LFE2
@ DCA_SPEAKER_LFE2
Definition: dca.h:82
DCA_SPEAKER_Lss
@ DCA_SPEAKER_Lss
Definition: dca.h:80
DCACoreFrameHeader::copy_hist
uint8_t copy_hist
Copy history.
Definition: dca.h:70
DCA_SPEAKER_C
@ DCA_SPEAKER_C
Definition: dca.h:78
DCA_SPEAKER_MASK_Lc
@ DCA_SPEAKER_MASK_Lc
Definition: dca.h:102
DCA_SPEAKER_PAIR_Oh
@ DCA_SPEAKER_PAIR_Oh
Definition: dca.h:145
DCA_SPEAKER_Rc
@ DCA_SPEAKER_Rc
Definition: dca.h:81
DCA_CSS_XCH
@ DCA_CSS_XCH
Definition: dca.h:172
DCA_SPEAKER_MASK_Rs
@ DCA_SPEAKER_MASK_Rs
Definition: dca.h:95
DCA_SPEAKER_Lh
@ DCA_SPEAKER_Lh
Definition: dca.h:81
DCA_SPEAKER_PAIR_LcRc
@ DCA_SPEAKER_PAIR_LcRc
Definition: dca.h:146
DCA_SPEAKER_PAIR_Ch
@ DCA_SPEAKER_PAIR_Ch
Definition: dca.h:144
DCA_SPEAKER_PAIR_LhRh
@ DCA_SPEAKER_PAIR_LhRh
Definition: dca.h:142
DCACoreFrameHeader::encoder_rev
uint8_t encoder_rev
Encoder software revision.
Definition: dca.h:69
DCA_SPEAKER_MASK_Lss
@ DCA_SPEAKER_MASK_Lss
Definition: dca.h:100
DCA_SPEAKER_RSV3
@ DCA_SPEAKER_RSV3
Definition: dca.h:85
DCACoreFrameHeader::deficit_samples
uint8_t deficit_samples
Deficit sample count.
Definition: dca.h:52
DCA_EXSS_XXCH
@ DCA_EXSS_XXCH
Definition: dca.h:176
DCA_SPEAKER_MASK_Lh
@ DCA_SPEAKER_MASK_Lh
Definition: dca.h:104
DCASpeakerPair
DCASpeakerPair
Definition: dca.h:136
DCA_DMIX_TYPE_1_0
@ DCA_DMIX_TYPE_1_0
Definition: dca.h:186
DCA_SPEAKER_PAIR_LFE2
@ DCA_SPEAKER_PAIR_LFE2
Definition: dca.h:149
DCACoreFrameHeader::npcmblocks
uint8_t npcmblocks
Number of PCM sample blocks.
Definition: dca.h:54
DCACoreFrameHeader::sumdiff_front
uint8_t sumdiff_front
Front sum/difference flag.
Definition: dca.h:72
DCA_SPEAKER_MASK_Chr
@ DCA_SPEAKER_MASK_Chr
Definition: dca.h:113
DCA_SPEAKER_Rsr
@ DCA_SPEAKER_Rsr
Definition: dca.h:80
DCA_SPEAKER_Rl
@ DCA_SPEAKER_Rl
Definition: dca.h:84
av_popcount
#define av_popcount
Definition: common.h:149
DCA_SPEAKER_Cl
@ DCA_SPEAKER_Cl
Definition: dca.h:84
DCACoreFrameHeader::normal_frame
uint8_t normal_frame
Frame type.
Definition: dca.h:51
DCA_SPEAKER_MASK_LFE2
@ DCA_SPEAKER_MASK_LFE2
Definition: dca.h:107
DCA_SPEAKER_Rhr
@ DCA_SPEAKER_Rhr
Definition: dca.h:84
DCACoreFrameHeader::dn_code
uint8_t dn_code
Dialog normalization / unspecified.
Definition: dca.h:74
DCACoreFrameHeader::br_code
uint8_t br_code
Transmission bit rate.
Definition: dca.h:58
DCACoreFrameHeader::crc_present
uint8_t crc_present
CRC present flag.
Definition: dca.h:53
DCA_EXSS_XLL
@ DCA_EXSS_XLL
Definition: dca.h:179
DCA_PARSE_ERROR_FRAME_SIZE
@ DCA_PARSE_ERROR_FRAME_SIZE
Definition: dca.h:42
GetBitContext
Definition: get_bits.h:62
DCA_SPEAKER_MASK_Rl
@ DCA_SPEAKER_MASK_Rl
Definition: dca.h:118
DCACoreFrameHeader::hdcd_master
uint8_t hdcd_master
HDCD mastering flag.
Definition: dca.h:62
DCA_SPEAKER_MASK_C
@ DCA_SPEAKER_MASK_C
Definition: dca.h:91
avpriv_dca_parse_core_frame_header
int avpriv_dca_parse_core_frame_header(DCACoreFrameHeader *h, const uint8_t *buf, int size)
Parse and validate core frame header.
Definition: dca.c:144
DCA_SPEAKER_MASK_Lsr
@ DCA_SPEAKER_MASK_Lsr
Definition: dca.h:98
DCA_SPEAKER_Lw
@ DCA_SPEAKER_Lw
Definition: dca.h:82
DCA_SPEAKER_Rh
@ DCA_SPEAKER_Rh
Definition: dca.h:81
DCA_SPEAKER_LFE1
@ DCA_SPEAKER_LFE1
Definition: dca.h:79
DCA_SPEAKER_MASK_Cs
@ DCA_SPEAKER_MASK_Cs
Definition: dca.h:97
DCAExtensionMask
DCAExtensionMask
Definition: dca.h:168
DCA_DMIX_TYPE_LoRo
@ DCA_DMIX_TYPE_LoRo
Definition: dca.h:187
DCA_DMIX_TYPE_2_2
@ DCA_DMIX_TYPE_2_2
Definition: dca.h:191
mask
static const uint16_t mask[17]
Definition: lzw.c:38
DCA_SPEAKER_MASK_Rhr
@ DCA_SPEAKER_MASK_Rhr
Definition: dca.h:115
DCA_SPEAKER_Cs
@ DCA_SPEAKER_Cs
Definition: dca.h:79
DCA_SPEAKER_Rss
@ DCA_SPEAKER_Rss
Definition: dca.h:80
DCACoreFrameHeader::ext_audio_type
uint8_t ext_audio_type
Extension audio descriptor flag.
Definition: dca.h:63
intreadwrite.h
DCA_SPEAKER_MASK_R
@ DCA_SPEAKER_MASK_R
Definition: dca.h:93
DCA_SPEAKER_MASK_L
@ DCA_SPEAKER_MASK_L
Definition: dca.h:92
DCA_SPEAKER_Ls
@ DCA_SPEAKER_Ls
Definition: dca.h:78
DCA_SPEAKER_Lhr
@ DCA_SPEAKER_Lhr
Definition: dca.h:83
DCACoreFrameHeader::pcmr_code
uint8_t pcmr_code
Source PCM resolution.
Definition: dca.h:71
DCA_REPR_TYPE_LhRh
@ DCA_REPR_TYPE_LhRh
Definition: dca.h:165
DCA_PARSE_ERROR_PCM_RES
@ DCA_PARSE_ERROR_PCM_RES
Definition: dca.h:47
DCA_EXSS_RSV2
@ DCA_EXSS_RSV2
Definition: dca.h:181
get_bits.h
DCACoreFrameHeader::sync_ssf
uint8_t sync_ssf
Audio sync word insertion flag.
Definition: dca.h:65
ff_dca_sample_rates
const uint32_t ff_dca_sample_rates[16]
Definition: dca_sample_rate_tab.h:29
DCA_SPEAKER_Rhs
@ DCA_SPEAKER_Rhs
Definition: dca.h:83
DCA_EXSS_CORE
@ DCA_EXSS_CORE
Definition: dca.h:174
DCASpeakerMask
DCASpeakerMask
Definition: dca.h:90
DCA_EXSS_XBR
@ DCA_EXSS_XBR
Definition: dca.h:175
DCA_DMIX_TYPE_3_0
@ DCA_DMIX_TYPE_3_0
Definition: dca.h:189
DCA_CSS_X96
@ DCA_CSS_X96
Definition: dca.h:171
DCACoreFrameHeader::filter_perfect
uint8_t filter_perfect
Multirate interpolator switch.
Definition: dca.h:68
DCA_SPEAKER_MASK_Rc
@ DCA_SPEAKER_MASK_Rc
Definition: dca.h:103
DCA_SPEAKER_Rs
@ DCA_SPEAKER_Rs
Definition: dca.h:79
ff_dca_freq_ranges
const uint8_t ff_dca_freq_ranges[16]
Definition: dca.c:41
DCARepresentationType
DCARepresentationType
Definition: dca.h:163
DCA_EXSS_X96
@ DCA_EXSS_X96
Definition: dca.h:177
DCA_SPEAKER_MASK_Ll
@ DCA_SPEAKER_MASK_Ll
Definition: dca.h:117
DCA_DMIX_TYPE_2_1
@ DCA_DMIX_TYPE_2_1
Definition: dca.h:190
DCA_SPEAKER_RSV1
@ DCA_SPEAKER_RSV1
Definition: dca.h:85
DCACoreFrameHeader::aux_present
uint8_t aux_present
Auxiliary data flag.
Definition: dca.h:61
ff_dca_parse_core_frame_header
int ff_dca_parse_core_frame_header(DCACoreFrameHeader *h, GetBitContext *gb)
Parse and validate core frame header.
Definition: dca.c:86
DCA_SPEAKER_PAIR_LwRw
@ DCA_SPEAKER_PAIR_LwRw
Definition: dca.h:147
DCAParseError
DCAParseError
Definition: dca.h:38
DCASpeaker
DCASpeaker
Definition: dca.h:77
DCA_CSS_CORE
@ DCA_CSS_CORE
Definition: dca.h:169
DCA_EXSS_RSV1
@ DCA_EXSS_RSV1
Definition: dca.h:180
DCA_SPEAKER_PAIR_LsrRsr
@ DCA_SPEAKER_PAIR_LsrRsr
Definition: dca.h:143
DCACoreFrameHeader
Definition: dca.h:50
DCA_PARSE_ERROR_SYNC_WORD
@ DCA_PARSE_ERROR_SYNC_WORD
Definition: dca.h:39
DCA_SPEAKER_MASK_Lw
@ DCA_SPEAKER_MASK_Lw
Definition: dca.h:108
DCA_SPEAKER_MASK_Cl
@ DCA_SPEAKER_MASK_Cl
Definition: dca.h:116
ff_dca_sampling_freqs
const uint32_t ff_dca_sampling_freqs[16]
Definition: dca.c:36
DCACoreFrameHeader::predictor_history
uint8_t predictor_history
Predictor history flag switch.
Definition: dca.h:67
DCACoreFrameHeader::sr_code
uint8_t sr_code
Core audio sampling frequency.
Definition: dca.h:57
size
int size
Definition: twinvq_data.h:10344
DCA_SPEAKER_MASK_Rw
@ DCA_SPEAKER_MASK_Rw
Definition: dca.h:109
DCA_SPEAKER_Chr
@ DCA_SPEAKER_Chr
Definition: dca.h:83
DCA_SPEAKER_MASK_Rsr
@ DCA_SPEAKER_MASK_Rsr
Definition: dca.h:99
DCACoreFrameHeader::ext_audio_present
uint8_t ext_audio_present
Extended coding flag.
Definition: dca.h:64
DCA_SPEAKER_Lhs
@ DCA_SPEAKER_Lhs
Definition: dca.h:83
DCA_SPEAKER_MASK_Rss
@ DCA_SPEAKER_MASK_Rss
Definition: dca.h:101
DCA_SPEAKER_R
@ DCA_SPEAKER_R
Definition: dca.h:78
DCA_EXSS_MASK
@ DCA_EXSS_MASK
Definition: dca.h:182
DCADownMixType
DCADownMixType
Definition: dca.h:185
DCA_PARSE_ERROR_DEFICIT_SAMPLES
@ DCA_PARSE_ERROR_DEFICIT_SAMPLES
Definition: dca.h:40
DCA_SPEAKER_PAIR_C
@ DCA_SPEAKER_PAIR_C
Definition: dca.h:137
DCA_SPEAKER_PAIR_LFE1
@ DCA_SPEAKER_PAIR_LFE1
Definition: dca.h:140
DCA_SPEAKER_MASK_Oh
@ DCA_SPEAKER_MASK_Oh
Definition: dca.h:110
DCA_SPEAKER_MASK_Rh
@ DCA_SPEAKER_MASK_Rh
Definition: dca.h:106
DCACoreFrameHeader::drc_present
uint8_t drc_present
Embedded dynamic range flag.
Definition: dca.h:59
common.h
DCA_SPEAKER_MASK_LFE1
@ DCA_SPEAKER_MASK_LFE1
Definition: dca.h:96
DCA_SPEAKER_PAIR_LsRs
@ DCA_SPEAKER_PAIR_LsRs
Definition: dca.h:139
DCA_SPEAKER_RSV2
@ DCA_SPEAKER_RSV2
Definition: dca.h:85
DCA_DMIX_TYPE_LtRt
@ DCA_DMIX_TYPE_LtRt
Definition: dca.h:188
ff_dca_bits_per_sample
const uint8_t ff_dca_bits_per_sample[8]
Definition: dca.c:45
DCACoreFrameHeader::ts_present
uint8_t ts_present
Embedded time stamp flag.
Definition: dca.h:60
DCA_DMIX_TYPE_COUNT
@ DCA_DMIX_TYPE_COUNT
Definition: dca.h:194
DCA_CSS_MASK
@ DCA_CSS_MASK
Definition: dca.h:173
DCA_SPEAKER_RSV4
@ DCA_SPEAKER_RSV4
Definition: dca.h:85
DCA_SPEAKER_Ll
@ DCA_SPEAKER_Ll
Definition: dca.h:84
DCA_SPEAKER_Rw
@ DCA_SPEAKER_Rw
Definition: dca.h:82
DCA_PARSE_ERROR_PCM_BLOCKS
@ DCA_PARSE_ERROR_PCM_BLOCKS
Definition: dca.h:41
DCA_SPEAKER_PAIR_LssRss
@ DCA_SPEAKER_PAIR_LssRss
Definition: dca.h:148
DCA_REPR_TYPE_LtRt
@ DCA_REPR_TYPE_LtRt
Definition: dca.h:164
DCA_SPEAKER_PAIR_LR
@ DCA_SPEAKER_PAIR_LR
Definition: dca.h:138
DCA_PARSE_ERROR_LFE_FLAG
@ DCA_PARSE_ERROR_LFE_FLAG
Definition: dca.h:46
DCA_SPEAKER_PAIR_LhrRhr
@ DCA_SPEAKER_PAIR_LhrRhr
Definition: dca.h:152
avpriv_dca_convert_bitstream
int avpriv_dca_convert_bitstream(const uint8_t *src, int src_size, uint8_t *dst, int max_size)
Convert bitstream to one representation based on sync marker.
Definition: dca.c:49
DCACoreFrameHeader::lfe_present
uint8_t lfe_present
Low frequency effects flag.
Definition: dca.h:66
DCA_SPEAKER_MASK_Lhs
@ DCA_SPEAKER_MASK_Lhs
Definition: dca.h:111
DCACoreFrameHeader::sumdiff_surround
uint8_t sumdiff_surround
Surround sum/difference flag.
Definition: dca.h:73
DCA_PARSE_ERROR_SAMPLE_RATE
@ DCA_PARSE_ERROR_SAMPLE_RATE
Definition: dca.h:44
DCA_SPEAKER_PAIR_LhsRhs
@ DCA_SPEAKER_PAIR_LhsRhs
Definition: dca.h:150
DCA_SPEAKER_MASK_Ch
@ DCA_SPEAKER_MASK_Ch
Definition: dca.h:105
DCA_PARSE_ERROR_RESERVED_BIT
@ DCA_PARSE_ERROR_RESERVED_BIT
Definition: dca.h:45
DCA_SPEAKER_MASK_Ls
@ DCA_SPEAKER_MASK_Ls
Definition: dca.h:94
DCA_SPEAKER_Lc
@ DCA_SPEAKER_Lc
Definition: dca.h:80
DCA_SPEAKER_MASK_Lhr
@ DCA_SPEAKER_MASK_Lhr
Definition: dca.h:114
src
INIT_CLIP pixel * src
Definition: h264pred_template.c:418
DCACoreFrameHeader::frame_size
uint16_t frame_size
Primary frame byte size.
Definition: dca.h:55
DCA_SPEAKER_COUNT
@ DCA_SPEAKER_COUNT
Definition: dca.h:87
DCA_SPEAKER_Lsr
@ DCA_SPEAKER_Lsr
Definition: dca.h:79
DCA_SPEAKER_L
@ DCA_SPEAKER_L
Definition: dca.h:78
DCA_CSS_XXCH
@ DCA_CSS_XXCH
Definition: dca.h:170
h
h
Definition: vp9dsp_template.c:2038
DCA_SPEAKER_Ch
@ DCA_SPEAKER_Ch
Definition: dca.h:81
DCA_SPEAKER_PAIR_Chr
@ DCA_SPEAKER_PAIR_Chr
Definition: dca.h:151
DCA_DMIX_TYPE_3_1
@ DCA_DMIX_TYPE_3_1
Definition: dca.h:192
DCACoreFrameHeader::audio_mode
uint8_t audio_mode
Audio channel arrangement.
Definition: dca.h:56
ff_dca_count_chs_for_mask
static int ff_dca_count_chs_for_mask(unsigned int mask)
Return number of individual channels in DCASpeakerPair mask.
Definition: dca.h:158
DCA_SPEAKER_Oh
@ DCA_SPEAKER_Oh
Definition: dca.h:82
DCA_SPEAKER_PAIR_Cs
@ DCA_SPEAKER_PAIR_Cs
Definition: dca.h:141
DCA_EXSS_LBR
@ DCA_EXSS_LBR
Definition: dca.h:178
DCA_PARSE_ERROR_AMODE
@ DCA_PARSE_ERROR_AMODE
Definition: dca.h:43
DCA_SPEAKER_MASK_Rhs
@ DCA_SPEAKER_MASK_Rhs
Definition: dca.h:112