FFmpeg
|
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
#include "libavutil/common.h"
#include "avcodec.h"
#include "dca.h"
#include "dcadata.h"
#include "dcaenc.h"
#include "internal.h"
#include "mathops.h"
#include "put_bits.h"
Go to the source code of this file.
Data Structures | |
struct | DCAEncContext |
struct | cplx32 |
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 | USED_1ABITS 1 |
#define | USED_NABITS 2 |
#define | USED_26ABITS 4 |
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 int32_t | cos_table [2048] |
static int32_t | band_interpolation [2][512] |
static int32_t | band_spectrum [2][8] |
static int32_t | auf [9][AUBANDS][256] |
static int32_t | cb_to_add [256] |
static int32_t | cb_to_level [2048] |
static int32_t | lfe_fir_64i [512] |
static const int | snr_fudge = 128 |
static const AVCodecDefault | defaults [] |
AVCodec | ff_dca_encoder |
#define DCA_MAX_FRAME_SIZE 16384 |
Definition at line 36 of file dcaenc.c.
Referenced by encode_init().
#define DCA_LFE_SAMPLES 8 |
Definition at line 38 of file dcaenc.c.
Referenced by find_peaks(), lfe_downsample(), and put_subframe().
#define DCAENC_SUBBANDS 32 |
Definition at line 40 of file dcaenc.c.
Referenced by put_primary_audio_header(), and put_subframe().
#define SUBFRAMES 1 |
Definition at line 41 of file dcaenc.c.
Referenced by encode_frame(), formant_postfilter(), g723_1_decode_frame(), generate_noise(), lsp_interpolate(), put_primary_audio_header(), and unpack_bitstream().
#define SUBSUBFRAMES 2 |
Definition at line 42 of file dcaenc.c.
Referenced by calc_masking(), and put_subframe().
#define SUBBAND_SAMPLES (SUBFRAMES * SUBSUBFRAMES * 8) |
Definition at line 43 of file dcaenc.c.
Referenced by encode_init(), find_peaks(), put_frame_header(), quantize_all(), and subband_transform().
#define AUBANDS 25 |
Definition at line 44 of file dcaenc.c.
Referenced by adjust_jnd(), and encode_init().
#define USED_1ABITS 1 |
Definition at line 551 of file dcaenc.c.
Referenced by assign_bits(), and init_quantization_noise().
#define USED_NABITS 2 |
Definition at line 552 of file dcaenc.c.
Referenced by init_quantization_noise().
#define USED_26ABITS 4 |
Definition at line 553 of file dcaenc.c.
Referenced by assign_bits(), and init_quantization_noise().
|
static |
Definition at line 87 of file dcaenc.c.
Referenced by encode_init().
|
static |
Definition at line 97 of file dcaenc.c.
Referenced by encode_init().
|
static |
|
inlinestatic |
Definition at line 217 of file dcaenc.c.
Referenced by fft(), sin_t(), and subband_transform().
|
inlinestatic |
Definition at line 232 of file dcaenc.c.
Referenced by calc_one_scale(), fft(), init_quantization_noise(), lfe_downsample(), quantize_value(), and subband_transform().
|
static |
Definition at line 238 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 288 of file dcaenc.c.
Referenced by encode_frame().
Definition at line 323 of file dcaenc.c.
Referenced by adjust_jnd().
Definition at line 390 of file dcaenc.c.
Referenced by adjust_jnd(), and find_peaks().
Definition at line 404 of file dcaenc.c.
Referenced by adjust_jnd().
Definition at line 414 of file dcaenc.c.
Referenced by calc_masking().
|
static |
Definition at line 449 of file dcaenc.c.
Referenced by calc_masking().
|
static |
Definition at line 464 of file dcaenc.c.
Referenced by calc_masking().
|
static |
Definition at line 479 of file dcaenc.c.
Referenced by calc_masking().
|
static |
Definition at line 489 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 522 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 555 of file dcaenc.c.
Referenced by assign_bits().
|
static |
Definition at line 592 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 630 of file dcaenc.c.
Referenced by encode_frame().
Definition at line 639 of file dcaenc.c.
Referenced by calc_one_scale(), put_subframe(), and quantize_all().
Definition at line 648 of file dcaenc.c.
Referenced by calc_scales().
|
static |
Definition at line 680 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 694 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 704 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 787 of file dcaenc.c.
Referenced by encode_frame().
|
static |
Definition at line 833 of file dcaenc.c.
Referenced by put_subframe().
|
static |
Definition at line 855 of file dcaenc.c.
Referenced by encode_frame().
|
static |
|
static |
Definition at line 78 of file dcaenc.c.
Referenced by cos_t(), and encode_init().
|
static |
Definition at line 79 of file dcaenc.c.
Referenced by encode_init().
|
static |
Definition at line 80 of file dcaenc.c.
Referenced by encode_init().
Definition at line 81 of file dcaenc.c.
Referenced by adjust_jnd(), and encode_init().
|
static |
Definition at line 82 of file dcaenc.c.
Referenced by add_cb(), and encode_init().
|
static |
Definition at line 83 of file dcaenc.c.
Referenced by calc_one_scale(), encode_init(), and get_cb().
|
static |
Definition at line 84 of file dcaenc.c.
Referenced by encode_init(), and lfe_downsample().
|
static |
Definition at line 550 of file dcaenc.c.
Referenced by assign_bits().
|
static |
AVCodec ff_dca_encoder |