libavcodec/libgsm.c File Reference

Interface to libgsm for gsm encoding/decoding. More...

#include "avcodec.h"
#include <gsm/gsm.h>

Go to the source code of this file.

Defines

#define GSM_BLOCK_SIZE   33
#define GSM_MS_BLOCK_SIZE   65
#define GSM_FRAME_SIZE   160

Functions

static av_cold int libgsm_init (AVCodecContext *avctx)
static av_cold int libgsm_close (AVCodecContext *avctx)
static int libgsm_encode_frame (AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data)
static int libgsm_decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)

Variables

AVCodec ff_libgsm_encoder
AVCodec ff_libgsm_ms_encoder
AVCodec ff_libgsm_decoder
AVCodec ff_libgsm_ms_decoder


Detailed Description

Interface to libgsm for gsm encoding/decoding.

Definition in file libgsm.c.


Define Documentation

#define GSM_BLOCK_SIZE   33

Definition at line 34 of file libgsm.c.

#define GSM_FRAME_SIZE   160

Definition at line 36 of file libgsm.c.

#define GSM_MS_BLOCK_SIZE   65

Definition at line 35 of file libgsm.c.


Function Documentation

static av_cold int libgsm_close ( AVCodecContext avctx  )  [static]

Definition at line 91 of file libgsm.c.

static int libgsm_decode_frame ( AVCodecContext avctx,
void *  data,
int *  data_size,
AVPacket avpkt 
) [static]

Definition at line 139 of file libgsm.c.

static int libgsm_encode_frame ( AVCodecContext avctx,
unsigned char *  frame,
int  buf_size,
void *  data 
) [static]

Definition at line 98 of file libgsm.c.

static av_cold int libgsm_init ( AVCodecContext avctx  )  [static]

Definition at line 38 of file libgsm.c.


Variable Documentation

Initial value:

Definition at line 166 of file libgsm.c.

Initial value:

Definition at line 115 of file libgsm.c.

Initial value:

 {
    "libgsm_ms",
    AVMEDIA_TYPE_AUDIO,
    CODEC_ID_GSM_MS,
    0,
    libgsm_init,
    NULL,
    libgsm_close,
    libgsm_decode_frame,
    .long_name = NULL_IF_CONFIG_SMALL("libgsm GSM Microsoft variant"),
}

Definition at line 178 of file libgsm.c.

Initial value:

 {
    "libgsm_ms",
    AVMEDIA_TYPE_AUDIO,
    CODEC_ID_GSM_MS,
    0,
    libgsm_init,
    libgsm_encode_frame,
    libgsm_close,
    .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE},
    .long_name = NULL_IF_CONFIG_SMALL("libgsm GSM Microsoft variant"),
}

Definition at line 127 of file libgsm.c.


Generated on Fri Oct 26 02:38:17 2012 for FFmpeg by  doxygen 1.5.8