Go to the documentation of this file.
   36 #define DCA_CORE_FRAME_HEADER_SIZE      18 
  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) 
  133 #define DCA_HAS_STEREO(mask) \ 
  134     ((mask & DCA_SPEAKER_LAYOUT_STEREO) == DCA_SPEAKER_LAYOUT_STEREO) 
  
@ DCA_PARSE_ERROR_FRAME_SIZE
int avpriv_dca_parse_core_frame_header(DCACoreFrameHeader *h, const uint8_t *buf, int size)
Parse and validate core frame header.
static const uint16_t mask[17]
@ DCA_PARSE_ERROR_PCM_RES
const uint32_t ff_dca_sample_rates[16]
const uint8_t ff_dca_freq_ranges[16]
int ff_dca_parse_core_frame_header(DCACoreFrameHeader *h, GetBitContext *gb)
Parse and validate core frame header.
@ DCA_SPEAKER_PAIR_LsrRsr
@ DCA_PARSE_ERROR_SYNC_WORD
const uint32_t ff_dca_sampling_freqs[16]
@ DCA_PARSE_ERROR_DEFICIT_SAMPLES
const uint8_t ff_dca_bits_per_sample[8]
@ DCA_PARSE_ERROR_PCM_BLOCKS
@ DCA_SPEAKER_PAIR_LssRss
@ DCA_PARSE_ERROR_LFE_FLAG
@ DCA_SPEAKER_PAIR_LhrRhr
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.
@ DCA_PARSE_ERROR_SAMPLE_RATE
@ DCA_SPEAKER_PAIR_LhsRhs
@ DCA_PARSE_ERROR_RESERVED_BIT
static int ff_dca_count_chs_for_mask(unsigned int mask)
Return number of individual channels in DCASpeakerPair mask.