FFmpeg
4.0
|
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "libavutil/ffmath.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "dca.h"
#include "dcaadpcm.h"
#include "dcamath.h"
#include "dca_core.h"
#include "dcadata.h"
#include "dcaenc.h"
#include "fft.h"
#include "internal.h"
#include "mathops.h"
#include "put_bits.h"
Go to the source code of this file.
Data Structures | |
struct | CompressionOptions |
struct | DCAEncContext |
Macros | |
#define | FFT_FLOAT 0 |
#define | FFT_FIXED_32 1 |
#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 const int | snr_fudge = 128 |
static const AVOption | options [] |
static const AVClass | dcaenc_class |
static const AVCodecDefault | defaults [] |
AVCodec | ff_dca_encoder |
#define MAX_CHANNELS 6 |
Definition at line 44 of file dcaenc.c.
Referenced by encode_init(), init_quantization_noise(), and subband_bufer_alloc().
#define DCA_MAX_FRAME_SIZE 16384 |
Definition at line 45 of file dcaenc.c.
Referenced by encode_init().
#define DCA_LFE_SAMPLES 8 |
Definition at line 47 of file dcaenc.c.
Referenced by find_peaks(), lfe_downsample(), and put_subframe().
#define DCAENC_SUBBANDS 32 |
Definition at line 49 of file dcaenc.c.
Referenced by encode_init(), put_primary_audio_header(), put_subframe(), and subband_bufer_alloc().
#define SUBFRAMES 1 |
Definition at line 50 of file dcaenc.c.
Referenced by acb_search(), comp_lpc_coeff(), encode_frame(), ff_g723_1_lsp_interpolate(), formant_postfilter(), g723_1_decode_frame(), g723_1_encode_frame(), generate_noise(), pack_bitstream(), perceptual_filter(), put_primary_audio_header(), and unpack_bitstream().
#define SUBSUBFRAMES 2 |
Definition at line 51 of file dcaenc.c.
Referenced by calc_masking(), and put_subframe().
#define SUBBAND_SAMPLES (SUBFRAMES * SUBSUBFRAMES * 8) |
Definition at line 52 of file dcaenc.c.
Referenced by accumulate_huff_bit_consumption(), adpcm_analysis(), encode_init(), find_peaks(), put_frame_header(), quantize_adpcm_subband(), quantize_pcm(), subband_bufer_alloc(), and subband_transform().
#define AUBANDS 25 |
Definition at line 53 of file dcaenc.c.
Referenced by adjust_jnd(), and encode_init().
Definition at line 55 of file dcaenc.c.
Referenced by calc_power(), and subband_transform().
#define USED_1ABITS 1 |
Definition at line 593 of file dcaenc.c.
Referenced by assign_bits(), and init_quantization_noise().
#define USED_26ABITS 4 |
Definition at line 594 of file dcaenc.c.
Referenced by assign_bits(), and init_quantization_noise().
#define DCAENC_FLAGS AV_OPT_FLAG_ENCODING_PARAM | AV_OPT_FLAG_AUDIO_PARAM |
|
static |
Definition at line 113 of file dcaenc.c.
Referenced by encode_init().
|
static |
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 |
|
static |
|
static |
Definition at line 315 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 365 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 395 of file dcaenc.c.
Referenced by calc_power(), and find_peak().
|
static |
Definition at line 407 of file dcaenc.c.
Referenced by adjust_jnd(), and calc_power().
|
static |
Definition at line 417 of file dcaenc.c.
Referenced by adjust_jnd().
|
static |
Definition at line 434 of file dcaenc.c.
Referenced by calc_masking().
|
static |
Definition at line 467 of file dcaenc.c.
Referenced by calc_masking().
|
static |
Definition at line 482 of file dcaenc.c.
Referenced by calc_masking().
|
static |
Definition at line 497 of file dcaenc.c.
Referenced by calc_masking().
|
static |
Definition at line 507 of file dcaenc.c.
Referenced by encode_frame().
|
inlinestatic |
Definition at line 542 of file dcaenc.c.
Referenced by adpcm_analysis(), and find_peaks().
|
static |
Definition at line 554 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 568 of file dcaenc.c.
Referenced by encode_frame().
|
inlinestatic |
Definition at line 596 of file dcaenc.c.
Referenced by fill_in_adpcm_bufer(), and quantize_adpcm_subband().
|
static |
Definition at line 608 of file dcaenc.c.
Referenced by calc_lfe_scales(), init_quantization_noise(), and quantize_adpcm_subband().
|
inlinestatic |
Definition at line 641 of file dcaenc.c.
Referenced by quantize_adpcm().
|
static |
Definition at line 658 of file dcaenc.c.
Referenced by init_quantization_noise().
|
static |
Definition at line 668 of file dcaenc.c.
Referenced by init_quantization_noise().
|
static |
Definition at line 685 of file dcaenc.c.
Referenced by init_quantization_noise().
|
static |
Definition at line 694 of file dcaenc.c.
Referenced by init_quantization_noise().
Definition at line 735 of file dcaenc.c.
Referenced by init_quantization_noise().
|
static |
Definition at line 763 of file dcaenc.c.
Referenced by assign_bits().
|
static |
Definition at line 842 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 884 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 896 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 932 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 938 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 1021 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 1068 of file dcaenc.c.
Referenced by put_subframe().
|
static |
Definition at line 1102 of file dcaenc.c.
Referenced by encode_frame().
|
static |
|
static |
Definition at line 592 of file dcaenc.c.
Referenced by assign_bits().
|
static |
|
static |
AVCodec ff_dca_encoder |