FFmpeg
|
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/ffmath.h"
#include "libavutil/mem_internal.h"
#include "libavutil/opt.h"
#include "libavutil/thread.h"
#include "libavutil/tx.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "dca.h"
#include "dcaadpcm.h"
#include "dcamath.h"
#include "dca_core.h"
#include "dcadata.h"
#include "dcaenc.h"
#include "encode.h"
#include "put_bits.h"
Go to the source code of this file.
Data Structures | |
struct | CompressionOptions |
struct | DCAEncContext |
Macros | |
#define | MAX_CHANNELS 6 |
#define | DCA_MAX_FRAME_SIZE 16384 |
#define | DCA_HEADER_SIZE 13 |
#define | DCA_LFE_SAMPLES 8 |
#define | DCAENC_SUBBANDS 32 |
#define | SUBFRAMES 1 |
#define | SUBSUBFRAMES 2 |
#define | SUBBAND_SAMPLES (SUBFRAMES * SUBSUBFRAMES * 8) |
#define | AUBANDS 25 |
#define | COS_T(x) (c->cos_table[(x) & 2047]) |
#define | USED_1ABITS 1 |
#define | USED_26ABITS 4 |
#define | DCAENC_FLAGS AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_AUDIO_PARAM |
Typedefs | |
typedef void(* | walk_band_t) (DCAEncContext *c, int band1, int band2, int f, int32_t spectrum1, int32_t spectrum2, int channel, int32_t *arg) |
Variables | |
static uint16_t | bitalloc_12_table [DCA_BITALLOC_12_COUNT][12+1][2] |
static uint16_t | bitalloc_table [DCA_NUM_BITALLOC_CODES][2] |
static const uint16_t(*[DCA_CODE_BOOKS][8] | bitalloc_tables )[2] |
static const int | snr_fudge = 128 |
static const AVOption | options [] |
static const AVClass | dcaenc_class |
static const FFCodecDefault | defaults [] |
const FFCodec | ff_dca_encoder |
#define SUBBAND_SAMPLES (SUBFRAMES * SUBSUBFRAMES * 8) |
#define DCAENC_FLAGS AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_AUDIO_PARAM |
Definition at line 113 of file dcaenc.c.
Referenced by encode_init().
Definition at line 123 of file dcaenc.c.
Referenced by encode_init().
|
static |
Definition at line 132 of file dcaenc.c.
Referenced by encode_init().
|
static |
Definition at line 153 of file dcaenc.c.
Referenced by encode_close().
|
static |
Definition at line 167 of file dcaenc.c.
Referenced by dcaenc_init_static_tables().
|
static |
Definition at line 184 of file dcaenc.c.
Referenced by encode_init().
|
static |
|
static |
|
static |
Definition at line 364 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 414 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 444 of file dcaenc.c.
Referenced by set_best_abits_code().
|
static |
Definition at line 452 of file dcaenc.c.
Referenced by put_subframe().
|
static |
Definition at line 460 of file dcaenc.c.
Referenced by accumulate_huff_bit_consumption().
|
static |
Definition at line 469 of file dcaenc.c.
Referenced by put_subframe_samples().
|
static |
Definition at line 477 of file dcaenc.c.
Referenced by calc_power(), and find_peak().
|
static |
Definition at line 489 of file dcaenc.c.
Referenced by adjust_jnd(), and calc_power().
|
static |
Definition at line 499 of file dcaenc.c.
Referenced by adjust_jnd().
|
static |
Definition at line 516 of file dcaenc.c.
Referenced by calc_masking().
|
static |
Definition at line 549 of file dcaenc.c.
Referenced by calc_masking().
|
static |
Definition at line 564 of file dcaenc.c.
Referenced by calc_masking().
|
static |
Definition at line 579 of file dcaenc.c.
Referenced by calc_masking().
|
static |
Definition at line 589 of file dcaenc.c.
Referenced by encode_frame().
|
inlinestatic |
Definition at line 624 of file dcaenc.c.
Referenced by adpcm_analysis(), and find_peaks().
|
static |
Definition at line 636 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 650 of file dcaenc.c.
Referenced by encode_frame().
|
inlinestatic |
Definition at line 678 of file dcaenc.c.
Referenced by fill_in_adpcm_bufer(), and quantize_adpcm_subband().
|
static |
Definition at line 690 of file dcaenc.c.
Referenced by calc_lfe_scales(), init_quantization_noise(), and quantize_adpcm_subband().
|
inlinestatic |
Definition at line 723 of file dcaenc.c.
Referenced by quantize_adpcm().
|
static |
Definition at line 740 of file dcaenc.c.
Referenced by init_quantization_noise().
|
static |
Definition at line 750 of file dcaenc.c.
Referenced by init_quantization_noise().
|
static |
Definition at line 767 of file dcaenc.c.
Referenced by init_quantization_noise().
|
static |
Definition at line 776 of file dcaenc.c.
Referenced by init_quantization_noise().
Definition at line 817 of file dcaenc.c.
Referenced by init_quantization_noise().
|
static |
Definition at line 845 of file dcaenc.c.
Referenced by assign_bits().
|
static |
Definition at line 924 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 966 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 978 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 1014 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 1020 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 1103 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 1150 of file dcaenc.c.
Referenced by put_subframe().
|
static |
Definition at line 1184 of file dcaenc.c.
Referenced by encode_frame().
|
static |
|
static |
Definition at line 162 of file dcaenc.c.
Referenced by dca_vlc_calc_alloc_bits(), dca_vlc_enc_alloc(), and dcaenc_init_static_tables().
|
static |
Definition at line 164 of file dcaenc.c.
Referenced by dcaenc_init_static_tables().
|
static |
Definition at line 165 of file dcaenc.c.
Referenced by dca_vlc_calc_quant_bits(), dca_vlc_enc_quant(), and dcaenc_init_static_tables().
|
static |
Definition at line 674 of file dcaenc.c.
Referenced by assign_bits().
|
static |
|
static |
const FFCodec ff_dca_encoder |