libavformat/gsmdec.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/mathematics.h"
#include "libavutil/opt.h"
#include "avformat.h"
#include "internal.h"
Include dependency graph for libavformat/gsmdec.c:

Go to the source code of this file.

Data Structures

struct  GSMDemuxerContext
 

Macros

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

Functions

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

Variables

static const AVOption options []
 
class {
      class_name = "gsm demuxer"
 
      item_name = av_default_item_name
 
      option = options
 
      version = LIBAVUTIL_VERSION_INT
 
}; 
 
AVInputFormat ff_gsm_demuxer
 

Macro Definition Documentation

#define GSM_BLOCK_SAMPLES   160

Definition at line 29 of file libavformat/gsmdec.c.

Referenced by gsm_read_header().

#define GSM_BLOCK_SIZE   33

Definition at line 28 of file libavformat/gsmdec.c.

Referenced by gsm_read_header(), and gsm_read_packet().

#define GSM_SAMPLE_RATE   8000

Definition at line 30 of file libavformat/gsmdec.c.

Referenced by gsm_read_header().

Function Documentation

static int gsm_read_header ( AVFormatContext s)
static

Definition at line 57 of file libavformat/gsmdec.c.

static int gsm_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 37 of file libavformat/gsmdec.c.

Variable Documentation

const { ... }
class_name = "gsm demuxer"
private

Definition at line 84 of file libavformat/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 = &class,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static int gsm_read_header(AVFormatContext *s)
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:517
static int read_packet(AVFormatContext *ctx, AVPacket *pkt)
Definition: libcdio.c:114
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:353
static int gsm_read_packet(AVFormatContext *s, AVPacket *pkt)
static int flags
Definition: cpu.c:23
as in Berlin toast format

Definition at line 90 of file libavformat/gsmdec.c.

item_name = av_default_item_name
private

Definition at line 85 of file libavformat/gsmdec.c.

option = options
private

Definition at line 86 of file libavformat/gsmdec.c.

const AVOption options[]
static
Initial value:
= {
{ "sample_rate", "", offsetof(GSMDemuxerContext, sample_rate),
{ NULL },
}
#define GSM_BLOCK_SIZE
#define GSM_SAMPLE_RATE
NULL
Definition: eval.c:55
sample_rate
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
Definition: opt.h:282

Definition at line 76 of file libavformat/gsmdec.c.

version = LIBAVUTIL_VERSION_INT
private

Definition at line 87 of file libavformat/gsmdec.c.