FFmpeg  3.3.9
Data Structures | Macros | Functions
dca_core.h File Reference
#include "libavutil/common.h"
#include "libavutil/float_dsp.h"
#include "libavutil/fixed_dsp.h"
#include "libavutil/mem.h"
#include "avcodec.h"
#include "internal.h"
#include "get_bits.h"
#include "dca.h"
#include "dca_exss.h"
#include "dcadsp.h"
#include "dcadct.h"
#include "dcahuff.h"
#include "fft.h"
#include "synth_filter.h"

Go to the source code of this file.

Data Structures

struct  DCADSPData
 
struct  DCACoreDecoder
 

Macros

#define DCA_CHANNELS   7
 
#define DCA_SUBBANDS   32
 
#define DCA_SUBBANDS_X96   64
 
#define DCA_SUBFRAMES   16
 
#define DCA_SUBBAND_SAMPLES   8
 
#define DCA_PCMBLOCK_SAMPLES   32
 
#define DCA_ADPCM_COEFFS   4
 
#define DCA_LFE_HISTORY   8
 
#define DCA_ABITS_MAX   26
 
#define DCA_CORE_CHANNELS_MAX   6
 
#define DCA_DMIX_CHANNELS_MAX   4
 
#define DCA_XXCH_CHANNELS_MAX   2
 
#define DCA_EXSS_CHANNELS_MAX   8
 
#define DCA_EXSS_CHSETS_MAX   4
 
#define DCA_FILTER_MODE_X96   0x01
 
#define DCA_FILTER_MODE_FIXED   0x02
 

Functions

static int ff_dca_core_map_spkr (DCACoreDecoder *core, int spkr)
 
int ff_dca_core_parse (DCACoreDecoder *s, uint8_t *data, int size)
 
int ff_dca_core_parse_exss (DCACoreDecoder *s, uint8_t *data, DCAExssAsset *asset)
 
int ff_dca_core_filter_fixed (DCACoreDecoder *s, int x96_synth)
 
int ff_dca_core_filter_frame (DCACoreDecoder *s, AVFrame *frame)
 
av_cold void ff_dca_core_flush (DCACoreDecoder *s)
 
av_cold int ff_dca_core_init (DCACoreDecoder *s)
 
av_cold void ff_dca_core_close (DCACoreDecoder *s)
 

Macro Definition Documentation

◆ DCA_CHANNELS

#define DCA_CHANNELS   7

◆ DCA_SUBBANDS

#define DCA_SUBBANDS   32

◆ DCA_SUBBANDS_X96

#define DCA_SUBBANDS_X96   64

◆ DCA_SUBFRAMES

#define DCA_SUBFRAMES   16

Definition at line 43 of file dca_core.h.

◆ DCA_SUBBAND_SAMPLES

#define DCA_SUBBAND_SAMPLES   8

◆ DCA_PCMBLOCK_SAMPLES

#define DCA_PCMBLOCK_SAMPLES   32

Definition at line 45 of file dca_core.h.

Referenced by ff_dca_core_filter_fixed(), filter_frame_float(), and parse_frame_header().

◆ DCA_ADPCM_COEFFS

#define DCA_ADPCM_COEFFS   4

◆ DCA_LFE_HISTORY

#define DCA_LFE_HISTORY   8

◆ DCA_ABITS_MAX

#define DCA_ABITS_MAX   26

Definition at line 48 of file dca_core.h.

Referenced by extract_audio(), parse_subframe_header(), and parse_xbr_subframe().

◆ DCA_CORE_CHANNELS_MAX

#define DCA_CORE_CHANNELS_MAX   6

Definition at line 50 of file dca_core.h.

◆ DCA_DMIX_CHANNELS_MAX

#define DCA_DMIX_CHANNELS_MAX   4

Definition at line 51 of file dca_core.h.

◆ DCA_XXCH_CHANNELS_MAX

#define DCA_XXCH_CHANNELS_MAX   2

Definition at line 52 of file dca_core.h.

Referenced by filter_frame_fixed(), filter_frame_float(), and parse_coding_header().

◆ DCA_EXSS_CHANNELS_MAX

#define DCA_EXSS_CHANNELS_MAX   8

Definition at line 53 of file dca_core.h.

Referenced by parse_xbr_frame().

◆ DCA_EXSS_CHSETS_MAX

#define DCA_EXSS_CHSETS_MAX   4

Definition at line 54 of file dca_core.h.

Referenced by parse_x96_frame_exss(), and parse_xbr_frame().

◆ DCA_FILTER_MODE_X96

#define DCA_FILTER_MODE_X96   0x01

Definition at line 56 of file dca_core.h.

◆ DCA_FILTER_MODE_FIXED

#define DCA_FILTER_MODE_FIXED   0x02

Definition at line 57 of file dca_core.h.

Referenced by dcadec_decode_frame(), and ff_dca_core_filter_fixed().

Function Documentation

◆ ff_dca_core_map_spkr()

static int ff_dca_core_map_spkr ( DCACoreDecoder core,
int  spkr 
)
inlinestatic

Definition at line 187 of file dca_core.h.

Referenced by combine_residual_frame(), and force_lossy_output().

◆ ff_dca_core_parse()

int ff_dca_core_parse ( DCACoreDecoder s,
uint8_t data,
int  size 
)

Definition at line 1895 of file dca_core.c.

Referenced by dcadec_decode_frame(), and ff_dca_core_map_spkr().

◆ ff_dca_core_parse_exss()

int ff_dca_core_parse_exss ( DCACoreDecoder s,
uint8_t data,
DCAExssAsset asset 
)

Definition at line 1928 of file dca_core.c.

Referenced by dcadec_decode_frame(), and ff_dca_core_map_spkr().

◆ ff_dca_core_filter_fixed()

int ff_dca_core_filter_fixed ( DCACoreDecoder s,
int  x96_synth 
)

Definition at line 2055 of file dca_core.c.

Referenced by dcadec_decode_frame(), ff_dca_core_map_spkr(), and filter_frame_fixed().

◆ ff_dca_core_filter_frame()

int ff_dca_core_filter_frame ( DCACoreDecoder s,
AVFrame frame 
)

Definition at line 2441 of file dca_core.c.

Referenced by dcadec_decode_frame(), and ff_dca_core_map_spkr().

◆ ff_dca_core_flush()

av_cold void ff_dca_core_flush ( DCACoreDecoder s)

Definition at line 2495 of file dca_core.c.

Referenced by dcadec_flush(), and ff_dca_core_map_spkr().

◆ ff_dca_core_init()

av_cold int ff_dca_core_init ( DCACoreDecoder s)

Definition at line 2508 of file dca_core.c.

Referenced by dcadec_init(), and ff_dca_core_map_spkr().

◆ ff_dca_core_close()

av_cold void ff_dca_core_close ( DCACoreDecoder s)

Definition at line 2526 of file dca_core.c.

Referenced by dcadec_close(), and ff_dca_core_map_spkr().