FFmpeg
|
#include <stdint.h>
#include "libavutil/common.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "get_bits.h"
Go to the source code of this file.
Data Structures | |
struct | DCACoreFrameHeader |
Functions | |
static int | ff_dca_count_chs_for_mask (unsigned int mask) |
Return number of individual channels in DCASpeakerPair mask. More... | |
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. More... | |
int | avpriv_dca_parse_core_frame_header (DCACoreFrameHeader *h, uint8_t *buf, int size) |
Parse and validate core frame header. More... | |
int | ff_dca_parse_core_frame_header (DCACoreFrameHeader *h, GetBitContext *gb) |
Variables | |
av_export const uint32_t | avpriv_dca_sample_rates [16] |
const uint32_t | ff_dca_sampling_freqs [16] |
const uint8_t | ff_dca_freq_ranges [16] |
const uint8_t | ff_dca_bits_per_sample [8] |
#define DCA_CORE_FRAME_HEADER_SIZE 18 |
Definition at line 37 of file dca.h.
Referenced by dca_parse_params(), and dts_probe().
#define DCA_SPEAKER_LAYOUT_MONO (DCA_SPEAKER_MASK_C) |
#define DCA_SPEAKER_LAYOUT_STEREO (DCA_SPEAKER_MASK_L | DCA_SPEAKER_MASK_R) |
Definition at line 124 of file dca.h.
Referenced by chs_parse_header(), dcadec_init(), ff_dca_core_filter_frame(), ff_dca_xll_filter_frame(), parse_decoder_init(), and parse_sub_headers().
#define DCA_SPEAKER_LAYOUT_2POINT1 (DCA_SPEAKER_LAYOUT_STEREO | DCA_SPEAKER_MASK_LFE1) |
#define DCA_SPEAKER_LAYOUT_3_0 (DCA_SPEAKER_LAYOUT_STEREO | DCA_SPEAKER_MASK_C) |
#define DCA_SPEAKER_LAYOUT_2_1 (DCA_SPEAKER_LAYOUT_STEREO | DCA_SPEAKER_MASK_Cs) |
#define DCA_SPEAKER_LAYOUT_3_1 (DCA_SPEAKER_LAYOUT_3_0 | DCA_SPEAKER_MASK_Cs) |
#define DCA_SPEAKER_LAYOUT_2_2 (DCA_SPEAKER_LAYOUT_STEREO | DCA_SPEAKER_MASK_Ls | DCA_SPEAKER_MASK_Rs) |
#define DCA_SPEAKER_LAYOUT_5POINT0 (DCA_SPEAKER_LAYOUT_3_0 | DCA_SPEAKER_MASK_Ls | DCA_SPEAKER_MASK_Rs) |
Definition at line 130 of file dca.h.
Referenced by dcadec_init(), and parse_sub_headers().
#define DCA_SPEAKER_LAYOUT_5POINT1 (DCA_SPEAKER_LAYOUT_5POINT0 | DCA_SPEAKER_MASK_LFE1) |
Definition at line 131 of file dca.h.
Referenced by dcadec_init(), and parse_sub_headers().
#define DCA_SPEAKER_LAYOUT_7POINT0_WIDE (DCA_SPEAKER_LAYOUT_5POINT0 | DCA_SPEAKER_MASK_Lw | DCA_SPEAKER_MASK_Rw) |
Definition at line 132 of file dca.h.
Referenced by ff_dca_set_channel_layout().
#define DCA_SPEAKER_LAYOUT_7POINT1_WIDE (DCA_SPEAKER_LAYOUT_7POINT0_WIDE | DCA_SPEAKER_MASK_LFE1) |
Definition at line 133 of file dca.h.
Referenced by ff_dca_set_channel_layout().
#define DCA_HAS_STEREO | ( | mask | ) | ((mask & DCA_SPEAKER_LAYOUT_STEREO) == DCA_SPEAKER_LAYOUT_STEREO) |
Definition at line 135 of file dca.h.
Referenced by ff_dca_downmix_to_stereo_fixed(), ff_dca_downmix_to_stereo_float(), and ff_dca_xll_filter_frame().
enum DCAParseError |
enum DCASpeaker |
enum DCASpeakerMask |
enum DCASpeakerPair |
enum DCAExtensionMask |
enum DCADownMixType |
Return number of individual channels in DCASpeakerPair mask.
Definition at line 160 of file dca.h.
Referenced by dtshd_read_header(), ff_dca_exss_parse(), parse_decoder_init(), and parse_descriptor().
Convert bitstream to one representation based on sync marker.
Definition at line 54 of file dca.c.
Referenced by dca_parse_params(), dcadec_decode_frame(), and dts_probe().
int avpriv_dca_parse_core_frame_header | ( | DCACoreFrameHeader * | h, |
uint8_t * | buf, | ||
int | size | ||
) |
Parse and validate core frame header.
Definition at line 149 of file dca.c.
Referenced by dca_parse_params(), and dts_probe().
int ff_dca_parse_core_frame_header | ( | DCACoreFrameHeader * | h, |
GetBitContext * | gb | ||
) |
Definition at line 91 of file dca.c.
Referenced by avpriv_dca_parse_core_frame_header(), and parse_frame_header().
av_export const uint32_t avpriv_dca_sample_rates[16] |
Definition at line 36 of file dca.c.
Referenced by dca_parse_params(), ff_dca_parse_core_frame_header(), parse_frame_header(), and spdif_header_dts().
const uint32_t ff_dca_sampling_freqs[16] |
Definition at line 41 of file dca.c.
Referenced by chs_parse_header(), dca_parse_params(), parse_decoder_init(), and parse_descriptor().
const uint8_t ff_dca_freq_ranges[16] |
Definition at line 46 of file dca.c.
Referenced by dca_parse_params(), and parse_decoder_init().
const uint8_t ff_dca_bits_per_sample[8] |
Definition at line 50 of file dca.c.
Referenced by ff_dca_parse_core_frame_header(), and parse_frame_header().