FFmpeg
|
#include <math.h>
#include <stdint.h>
#include <string.h>
#include "libavutil/channel_layout.h"
#include "libavutil/float_dsp.h"
#include "libavutil/mathematics.h"
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"
#include "lsp.h"
#include "acelp_vectors.h"
#include "acelp_pitch_delay.h"
#include "acelp_filters.h"
#include "celp_filters.h"
#include "sipr.h"
#include "siprdata.h"
Go to the source code of this file.
Data Structures | |
struct | SiprModeParam |
Macros | |
#define | BITSTREAM_READER_LE |
#define | MAX_SUBFRAME_COUNT 5 |
Functions | |
static void | dequant (float *out, const int *idx, const float *const cbs[]) |
static void | lsf_decode_fp (float *lsfnew, float *lsf_history, const SiprParameters *parm) |
static void | pitch_sharpening (int pitch_lag_int, float beta, float *fixed_vector) |
Apply pitch lag to the fixed vector (AMR section 6.1.2). More... | |
static void | decode_parameters (SiprParameters *parms, GetBitContext *pgb, const SiprModeParam *p) |
Extract decoding parameters from the input bitstream. More... | |
static void | sipr_decode_lp (float *lsfnew, const float *lsfold, float *Az, int num_subfr) |
static void | eval_ir (const float *Az, int pitch_lag, float *freq, float pitch_sharp_factor) |
Evaluate the adaptive impulse response. More... | |
static void | convolute_with_sparse (float *out, const AMRFixed *pulses, const float *shape, int length) |
Evaluate the convolution of a vector with a sparse vector. More... | |
static void | postfilter_5k0 (SiprContext *ctx, const float *lpc, float *samples) |
Apply postfilter, very similar to AMR one. More... | |
static void | decode_fixed_sparse (AMRFixed *fixed_sparse, const int16_t *pulses, SiprMode mode, int low_gain) |
static void | decode_frame (SiprContext *ctx, SiprParameters *params, float *out_data) |
static av_cold int | sipr_decoder_init (AVCodecContext *avctx) |
static int | sipr_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) |
Variables | |
static const SiprModeParam | modes [MODE_COUNT] |
const float | ff_pow_0_5 [] |
const AVCodec | ff_sipr_decoder |
|
static |
Definition at line 142 of file sipr.c.
Referenced by lsf_decode_fp().
|
static |
Definition at line 153 of file sipr.c.
Referenced by decode_frame().
|
static |
|
static |
Extract decoding parameters from the input bitstream.
parms | parameters structure |
pgb | pointer to initialized GetBitContext structure |
Definition at line 193 of file sipr.c.
Referenced by sipr_decode_frame().
|
static |
Definition at line 216 of file sipr.c.
Referenced by decode_frame().
|
static |
Evaluate the adaptive impulse response.
Definition at line 237 of file sipr.c.
Referenced by decode_frame().
|
static |
Evaluate the convolution of a vector with a sparse vector.
Definition at line 259 of file sipr.c.
Referenced by decode_frame().
|
static |
Apply postfilter, very similar to AMR one.
Definition at line 273 of file sipr.c.
Referenced by decode_frame().
|
static |
Definition at line 308 of file sipr.c.
Referenced by decode_frame().
|
static |
Definition at line 364 of file sipr.c.
Referenced by sipr_decoder_init().
|
static |
|
static |
|
static |
Definition at line 69 of file sipr.c.
Referenced by decode_frame(), decode_mb_mode(), libsrt_epoll_create(), sipr_decode_frame(), and sipr_decoder_init().
const float ff_pow_0_5[] |
Definition at line 135 of file sipr.c.
Referenced by postfilter(), and postfilter_5k0().
const AVCodec ff_sipr_decoder |