FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
gsmdec_template.c File Reference

GSM decoder. More...

#include "get_bits.h"
#include "gsm.h"
#include "gsmdec_data.h"

Go to the source code of this file.

Functions

static void apcm_dequant_add (GetBitContext *gb, int16_t *dst, const int *frame_bits)
 
static int gsm_mult (int a, int b)
 
static void long_term_synth (int16_t *dst, int lag, int gain_idx)
 
static int decode_log_area (int coded, int factor, int offset)
 
static av_noinline int get_rrp (int filtered)
 
static int filter_value (int in, int rrp[8], int v[9])
 
static void short_term_synth (GSMContext *ctx, int16_t *dst, const int16_t *src)
 
static int postprocess (int16_t *data, int msr)
 
static int gsm_decode_block (AVCodecContext *avctx, int16_t *samples, GetBitContext *gb, int mode)
 

Variables

static const int requant_tab [4][8]
 

Detailed Description

GSM decoder.

Definition in file gsmdec_template.c.

Function Documentation

static void apcm_dequant_add ( GetBitContext gb,
int16_t *  dst,
const int *  frame_bits 
)
static

Definition at line 38 of file gsmdec_template.c.

Referenced by gsm_decode_block().

static int gsm_mult ( int  a,
int  b 
)
inlinestatic

Definition at line 49 of file gsmdec_template.c.

Referenced by decode_log_area(), filter_value(), long_term_synth(), and postprocess().

static void long_term_synth ( int16_t *  dst,
int  lag,
int  gain_idx 
)
static

Definition at line 54 of file gsmdec_template.c.

Referenced by gsm_decode_block().

static int decode_log_area ( int  coded,
int  factor,
int  offset 
)
inlinestatic

Definition at line 63 of file gsmdec_template.c.

Referenced by gsm_decode_block().

static av_noinline int get_rrp ( int  filtered)
static

Definition at line 70 of file gsmdec_template.c.

Referenced by short_term_synth().

static int filter_value ( int  in,
int  rrp[8],
int  v[9] 
)
static

Definition at line 79 of file gsmdec_template.c.

Referenced by short_term_synth(), vp3_h_loop_filter_c(), and vp3_v_loop_filter_c().

static void short_term_synth ( GSMContext ctx,
int16_t *  dst,
const int16_t *  src 
)
static

Definition at line 90 of file gsmdec_template.c.

Referenced by gsm_decode_block().

static int postprocess ( int16_t *  data,
int  msr 
)
static

Definition at line 119 of file gsmdec_template.c.

Referenced by gsm_decode_block().

static int gsm_decode_block ( AVCodecContext avctx,
int16_t *  samples,
GetBitContext gb,
int  mode 
)
static

Definition at line 129 of file gsmdec_template.c.

Referenced by ff_msgsm_decode_block(), and gsm_decode_frame().

Variable Documentation

const int requant_tab[4][8]
static
Initial value:
= {
{ 0 },
{ 0, 7 },
{ 0, 2, 5, 7 },
{ 0, 1, 2, 3, 4, 5, 6, 7 }
}

Definition at line 31 of file gsmdec_template.c.

Referenced by apcm_dequant_add().