FFmpeg
Data Structures | Macros | Enumerations | Functions | Variables
sipr.h File Reference
#include "avcodec.h"
#include "acelp_pitch_delay.h"
#include "libavutil/mem_internal.h"

Go to the source code of this file.

Data Structures

struct  SiprParameters
 
struct  SiprContext
 

Macros

#define LP_FILTER_ORDER_16k   16
 
#define L_SUBFR_16k   80
 
#define PITCH_MIN   30
 
#define PITCH_MAX   281
 
#define LSFQ_DIFF_MIN   (0.0125 * M_PI)
 
#define LP_FILTER_ORDER   10
 
#define L_INTERPOL   (LP_FILTER_ORDER + 1)
 Number of past samples needed for excitation interpolation. More...
 
#define SUBFR_SIZE   48
 Subframe size for all modes except 16k. More...
 
#define SUBFRAME_COUNT_16k   2
 

Enumerations

enum  SiprMode {
  MODE_16k, MODE_8k5, MODE_6k5, MODE_5k0,
  MODE_COUNT
}
 

Functions

void ff_sipr_init_16k (SiprContext *ctx)
 
void ff_sipr_decode_frame_16k (SiprContext *ctx, SiprParameters *params, float *out_data)
 

Variables

const float ff_pow_0_5 [16]
 

Macro Definition Documentation

◆ LP_FILTER_ORDER_16k

#define LP_FILTER_ORDER_16k   16

Definition at line 31 of file sipr.h.

◆ L_SUBFR_16k

#define L_SUBFR_16k   80

Definition at line 32 of file sipr.h.

◆ PITCH_MIN

#define PITCH_MIN   30

Definition at line 33 of file sipr.h.

◆ PITCH_MAX

#define PITCH_MAX   281

Definition at line 34 of file sipr.h.

◆ LSFQ_DIFF_MIN

#define LSFQ_DIFF_MIN   (0.0125 * M_PI)

Definition at line 36 of file sipr.h.

◆ LP_FILTER_ORDER

#define LP_FILTER_ORDER   10

Definition at line 38 of file sipr.h.

◆ L_INTERPOL

#define L_INTERPOL   (LP_FILTER_ORDER + 1)

Number of past samples needed for excitation interpolation.

Definition at line 41 of file sipr.h.

◆ SUBFR_SIZE

#define SUBFR_SIZE   48

Subframe size for all modes except 16k.

Definition at line 44 of file sipr.h.

◆ SUBFRAME_COUNT_16k

#define SUBFRAME_COUNT_16k   2

Definition at line 46 of file sipr.h.

Enumeration Type Documentation

◆ SiprMode

enum SiprMode
Enumerator
MODE_16k 
MODE_8k5 
MODE_6k5 
MODE_5k0 
MODE_COUNT 

Definition at line 48 of file sipr.h.

Function Documentation

◆ ff_sipr_init_16k()

void ff_sipr_init_16k ( SiprContext ctx)

Definition at line 271 of file sipr16k.c.

Referenced by sipr_decoder_init().

◆ ff_sipr_decode_frame_16k()

void ff_sipr_decode_frame_16k ( SiprContext ctx,
SiprParameters params,
float *  out_data 
)

Definition at line 176 of file sipr16k.c.

Referenced by sipr_decoder_init().

Variable Documentation

◆ ff_pow_0_5

const float ff_pow_0_5[16]

Definition at line 135 of file sipr.c.

Referenced by postfilter(), and postfilter_5k0().