FFmpeg  4.0
Data Structures | Functions
dcaadpcm.h File Reference
#include "dcamath.h"
#include "dcadata.h"
#include "dcaenc.h"

Go to the source code of this file.

Data Structures

struct  DCAADPCMEncContext
 

Functions

static int64_t ff_dcaadpcm_predict (int pred_vq_index, const int32_t *input)
 
int ff_dcaadpcm_subband_analysis (const DCAADPCMEncContext *s, const int32_t *input, int len, int *diff)
 
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)
 

Function Documentation

◆ ff_dcaadpcm_predict()

static int64_t ff_dcaadpcm_predict ( int  pred_vq_index,
const int32_t input 
)
inlinestatic

Definition at line 33 of file dcaadpcm.h.

Referenced by calc_prediction_gain(), ff_dcaadpcm_do_real(), and inverse_adpcm().

◆ ff_dcaadpcm_subband_analysis()

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

Definition at line 125 of file dcaadpcm.c.

Referenced by adpcm_analysis(), and ff_dcaadpcm_predict().

◆ ff_dcaadpcm_do_real()

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 ff_dcaadpcm_predict(), and quantize_adpcm_subband().

◆ ff_dcaadpcm_init()

av_cold int ff_dcaadpcm_init ( DCAADPCMEncContext s)

Definition at line 212 of file dcaadpcm.c.

Referenced by encode_init(), and ff_dcaadpcm_predict().

◆ ff_dcaadpcm_free()

av_cold void ff_dcaadpcm_free ( DCAADPCMEncContext s)

Definition at line 225 of file dcaadpcm.c.

Referenced by encode_close(), and ff_dcaadpcm_predict().