Libav
Functions | Variables
gsmdec.c File Reference

GSM decoder. More...

#include "libavutil/channel_layout.h"
#include "avcodec.h"
#include "get_bits.h"
#include "internal.h"
#include "msgsmdec.h"
#include "gsmdec_template.c"

Go to the source code of this file.

Functions

static av_cold int gsm_init (AVCodecContext *avctx)
 
static int gsm_decode_frame (AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
 
static void gsm_flush (AVCodecContext *avctx)
 

Variables

AVCodec ff_gsm_decoder
 
AVCodec ff_gsm_ms_decoder
 

Detailed Description

GSM decoder.

Definition in file gsmdec.c.

Function Documentation

static av_cold int gsm_init ( AVCodecContext avctx)
static

Definition at line 35 of file gsmdec.c.

static int gsm_decode_frame ( AVCodecContext avctx,
void data,
int *  got_frame_ptr,
AVPacket avpkt 
)
static

Definition at line 65 of file gsmdec.c.

static void gsm_flush ( AVCodecContext avctx)
static

Definition at line 109 of file gsmdec.c.

Variable Documentation

AVCodec ff_gsm_decoder
Initial value:
= {
.name = "gsm",
.long_name = NULL_IF_CONFIG_SMALL("GSM"),
.priv_data_size = sizeof(GSMContext),
.capabilities = CODEC_CAP_DR1,
}
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
Definition: mimic.c:275
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:684
static void gsm_flush(AVCodecContext *avctx)
Definition: gsmdec.c:109
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:150
static av_cold int gsm_init(AVCodecContext *avctx)
Definition: gsmdec.c:35
static av_cold void flush(AVCodecContext *avctx)
Flush (reset) the frame ID after seeking.
Definition: alsdec.c:1797
static int gsm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: gsmdec.c:65
static av_cold int init(AVCodecParserContext *s)
Definition: h264_parser.c:499
as in Berlin toast format
Definition: avcodec.h:396

Definition at line 115 of file gsmdec.c.

AVCodec ff_gsm_ms_decoder
Initial value:
= {
.name = "gsm_ms",
.long_name = NULL_IF_CONFIG_SMALL("GSM Microsoft variant"),
.priv_data_size = sizeof(GSMContext),
.capabilities = CODEC_CAP_DR1,
}
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
Definition: mimic.c:275
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
Definition: avcodec.h:684
static void gsm_flush(AVCodecContext *avctx)
Definition: gsmdec.c:109
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:150
static av_cold int gsm_init(AVCodecContext *avctx)
Definition: gsmdec.c:35
static av_cold void flush(AVCodecContext *avctx)
Flush (reset) the frame ID after seeking.
Definition: alsdec.c:1797
static int gsm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt)
Definition: gsmdec.c:65
static av_cold int init(AVCodecParserContext *s)
Definition: h264_parser.c:499

Definition at line 127 of file gsmdec.c.