libavcodec/truespeech.c File Reference

TrueSpeech decoder. More...

#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "dsputil.h"
#include "get_bits.h"
#include "truespeech_data.h"

Go to the source code of this file.

Data Structures

struct  TSContext
 TrueSpeech decoder context. More...

Functions

static av_cold int truespeech_decode_init (AVCodecContext *avctx)
static void truespeech_read_frame (TSContext *dec, const uint8_t *input)
static void truespeech_correlate_filter (TSContext *dec)
static void truespeech_filters_merge (TSContext *dec)
static void truespeech_apply_twopoint_filter (TSContext *dec, int quart)
static void truespeech_place_pulses (TSContext *dec, int16_t *out, int quart)
static void truespeech_update_filters (TSContext *dec, int16_t *out, int quart)
static void truespeech_synth (TSContext *dec, int16_t *out, int quart)
static void truespeech_save_prevvec (TSContext *c)
static int truespeech_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)

Variables

AVCodec ff_truespeech_decoder


Detailed Description

TrueSpeech decoder.

Definition in file truespeech.c.


Function Documentation

static void truespeech_apply_twopoint_filter ( TSContext dec,
int  quart 
) [static]

Definition at line 168 of file truespeech.c.

Referenced by truespeech_decode_frame().

static void truespeech_correlate_filter ( TSContext dec  )  [static]

Definition at line 127 of file truespeech.c.

Referenced by truespeech_decode_frame().

static int truespeech_decode_frame ( AVCodecContext avctx,
void *  data,
int got_frame_ptr,
AVPacket avpkt 
) [static]

Definition at line 307 of file truespeech.c.

static av_cold int truespeech_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 60 of file truespeech.c.

static void truespeech_filters_merge ( TSContext dec  )  [static]

Definition at line 147 of file truespeech.c.

Referenced by truespeech_decode_frame().

static void truespeech_place_pulses ( TSContext dec,
int16_t out,
int  quart 
) [static]

Definition at line 194 of file truespeech.c.

Referenced by truespeech_decode_frame().

static void truespeech_read_frame ( TSContext dec,
const uint8_t input 
) [static]

Definition at line 79 of file truespeech.c.

Referenced by truespeech_decode_frame().

static void truespeech_save_prevvec ( TSContext c  )  [static]

Definition at line 299 of file truespeech.c.

Referenced by truespeech_decode_frame().

static void truespeech_synth ( TSContext dec,
int16_t out,
int  quart 
) [static]

Definition at line 248 of file truespeech.c.

Referenced by truespeech_decode_frame().

static void truespeech_update_filters ( TSContext dec,
int16_t out,
int  quart 
) [static]

Definition at line 237 of file truespeech.c.

Referenced by truespeech_decode_frame().


Variable Documentation

Initial value:

 {
    .name           = "truespeech",
    .type           = AVMEDIA_TYPE_AUDIO,
    .id             = AV_CODEC_ID_TRUESPEECH,
    .priv_data_size = sizeof(TSContext),
    .init           = truespeech_decode_init,
    .decode         = truespeech_decode_frame,
    .capabilities   = CODEC_CAP_DR1,
    .long_name      = NULL_IF_CONFIG_SMALL("DSP Group TrueSpeech"),
}

Definition at line 360 of file truespeech.c.


Generated on Fri Oct 26 02:50:08 2012 for FFmpeg by  doxygen 1.5.8