FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Typedefs | Functions
dcaadpcm.c File Reference
#include "dcaadpcm.h"
#include "dcaenc.h"
#include "dca_core.h"
#include "mathops.h"

Go to the source code of this file.

Typedefs

typedef int32_t premultiplied_coeffs [10]
 

Functions

static int64_t calc_corr (const int32_t *x, int len, int j, int k)
 
static int64_t apply_filter (const int16_t a[DCA_ADPCM_COEFFS], const int64_t corr[15], const int32_t aa[10])
 
static int64_t find_best_filter (const DCAADPCMEncContext *s, const int32_t *in, int len)
 
static int64_t calc_prediction_gain (int pred_vq, const int32_t *in, int32_t *out, int len)
 
int ff_dcaadpcm_subband_analysis (const DCAADPCMEncContext *s, const int32_t *in, int len, int *diff)
 
static void precalc (premultiplied_coeffs *data)
 
int ff_dcaadpcm_do_real (int pred_vq_index, softfloat quant, int32_t scale_factor, int32_t step_size, const int32_t *prev_hist, const int32_t *in, int32_t *next_hist, int32_t *out, int len, int32_t peak)
 
av_cold int ff_dcaadpcm_init (DCAADPCMEncContext *s)
 
av_cold void ff_dcaadpcm_free (DCAADPCMEncContext *s)
 

Typedef Documentation

typedef int32_t premultiplied_coeffs[10]

Definition at line 28 of file dcaadpcm.c.

Function Documentation

static int64_t calc_corr ( const int32_t x,
int  len,
int  j,
int  k 
)
inlinestatic

Definition at line 31 of file dcaadpcm.c.

Referenced by find_best_filter().

static int64_t apply_filter ( const int16_t  a[DCA_ADPCM_COEFFS],
const int64_t  corr[15],
const int32_t  aa[10] 
)
inlinestatic

Definition at line 40 of file dcaadpcm.c.

Referenced by find_best_filter().

static int64_t find_best_filter ( const DCAADPCMEncContext s,
const int32_t in,
int  len 
)
static

Definition at line 79 of file dcaadpcm.c.

Referenced by ff_dcaadpcm_subband_analysis().

static int64_t calc_prediction_gain ( int  pred_vq,
const int32_t in,
int32_t out,
int  len 
)
inlinestatic

Definition at line 104 of file dcaadpcm.c.

Referenced by ff_dcaadpcm_subband_analysis().

int ff_dcaadpcm_subband_analysis ( const DCAADPCMEncContext s,
const int32_t in,
int  len,
int diff 
)

Definition at line 125 of file dcaadpcm.c.

Referenced by adpcm_analysis().

static void precalc ( premultiplied_coeffs data)
static

Definition at line 164 of file dcaadpcm.c.

Referenced by ff_dcaadpcm_init().

int ff_dcaadpcm_do_real ( int  pred_vq_index,
softfloat  quant,
int32_t  scale_factor,
int32_t  step_size,
const int32_t prev_hist,
const int32_t in,
int32_t next_hist,
int32_t out,
int  len,
int32_t  peak 
)

Definition at line 183 of file dcaadpcm.c.

Referenced by quantize_adpcm_subband().

av_cold int ff_dcaadpcm_init ( DCAADPCMEncContext s)

Definition at line 212 of file dcaadpcm.c.

Referenced by encode_init().

av_cold void ff_dcaadpcm_free ( DCAADPCMEncContext s)

Definition at line 225 of file dcaadpcm.c.

Referenced by encode_close().