All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
gsmdec.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "avformat.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  GSMDemuxerContext


#define GSM_BLOCK_SIZE   33
#define GSM_BLOCK_SAMPLES   160
#define GSM_SAMPLE_RATE   8000


static int gsm_probe (AVProbeData *p)
static int gsm_read_packet (AVFormatContext *s, AVPacket *pkt)
static int gsm_read_header (AVFormatContext *s)


static const AVOption options []
static const AVClass gsm_class
AVInputFormat ff_gsm_demuxer

Macro Definition Documentation

#define GSM_BLOCK_SIZE   33

Definition at line 28 of file gsmdec.c.

Referenced by gsm_init(), gsm_read_header(), and gsm_read_packet().

#define GSM_BLOCK_SAMPLES   160

Definition at line 29 of file gsmdec.c.

Referenced by gsm_read_header().

#define GSM_SAMPLE_RATE   8000

Definition at line 30 of file gsmdec.c.

Referenced by gsm_read_header().

Function Documentation

static int gsm_probe ( AVProbeData p)

Definition at line 37 of file gsmdec.c.

static int gsm_read_packet ( AVFormatContext s,
AVPacket pkt 

Definition at line 54 of file gsmdec.c.

static int gsm_read_header ( AVFormatContext s)

Definition at line 74 of file gsmdec.c.

Variable Documentation

const AVOption options[]
Initial value:
= {
{ "sample_rate", "", 0x42,
{ NULL },
#define NULL
Definition: coverity.c:32
Definition: gsmdec.c:28
Definition: gsmdec.c:30
a generic parameter which can be set by the user for demuxing or decoding
Definition: opt.h:277

Definition at line 93 of file gsmdec.c.

const AVClass gsm_class
Initial value:
= {
.class_name = "gsm demuxer",
.item_name = av_default_item_name,
.option = options,
Definition: version.h:85
static const AVOption options[]
Definition: gsmdec.c:93
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:191

Definition at line 100 of file gsmdec.c.

AVInputFormat ff_gsm_demuxer
Initial value:
= {
.name = "gsm",
.long_name = NULL_IF_CONFIG_SMALL("raw GSM"),
.priv_data_size = sizeof(GSMDemuxerContext),
.extensions = "gsm",
.raw_codec_id = AV_CODEC_ID_GSM,
.priv_class = &gsm_class,
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static const AVClass gsm_class
Definition: gsmdec.c:100
static int read_probe(AVProbeData *pd)
Definition: jvdec.c:55
static int gsm_probe(AVProbeData *p)
Definition: gsmdec.c:37
static int gsm_read_header(AVFormatContext *s)
Definition: gsmdec.c:74
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:530
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
Use generic index building code.
Definition: avformat.h:470
static int gsm_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: gsmdec.c:54
#define flags(name, subs,...)
Definition: cbs_av1.c:596
as in Berlin toast format
Definition: avcodec.h:576

Definition at line 107 of file gsmdec.c.