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 "codec_internal.h"
#include "decode.h"
#include "get_bits.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, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt) |
Variables | |
static const SiprModeParam | modes [MODE_COUNT] |
const float | ff_pow_0_5 [] |
const FFCodec | ff_sipr_decoder |
Definition at line 143 of file sipr.c.
Referenced by lsf_decode_fp().
|
static |
Definition at line 154 of file sipr.c.
Referenced by decode_frame().
|
static |
Extract decoding parameters from the input bitstream.
parms | parameters structure |
pgb | pointer to initialized GetBitContext structure |
Definition at line 194 of file sipr.c.
Referenced by sipr_decode_frame().
|
static |
Definition at line 217 of file sipr.c.
Referenced by decode_frame().
|
static |
Evaluate the adaptive impulse response.
Definition at line 238 of file sipr.c.
Referenced by decode_frame().
|
static |
Evaluate the convolution of a vector with a sparse vector.
Definition at line 260 of file sipr.c.
Referenced by decode_frame().
|
static |
Apply postfilter, very similar to AMR one.
Definition at line 274 of file sipr.c.
Referenced by decode_frame().
|
static |
Definition at line 309 of file sipr.c.
Referenced by decode_frame().
|
static |
Definition at line 365 of file sipr.c.
Referenced by sipr_decoder_init().
|
static |
|
static |
|
static |
Definition at line 70 of file sipr.c.
Referenced by decode_frame(), decode_mb_mode(), derive_chroma_intra_pred_mode(), ff_vvc_ref_filter_flag_derive(), libsrt_epoll_create(), sipr_decode_frame(), and sipr_decoder_init().
const float ff_pow_0_5[] |
Definition at line 136 of file sipr.c.
Referenced by postfilter(), and postfilter_5k0().
const FFCodec ff_sipr_decoder |