libavformat/gsmdec.c File Reference

#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

Defines

#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


Define Documentation

#define GSM_BLOCK_SAMPLES   160

Definition at line 28 of file gsmdec.c.

Referenced by gsm_read_header().

#define GSM_BLOCK_SIZE   33

Definition at line 27 of file gsmdec.c.

#define GSM_SAMPLE_RATE   8000

Definition at line 29 of file gsmdec.c.

Referenced by gsm_read_header().


Function Documentation

static int gsm_read_header ( AVFormatContext s  )  [static]

Definition at line 56 of file gsmdec.c.

static int gsm_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 36 of file gsmdec.c.


Variable Documentation

const { ... } [static]

class_name = "gsm demuxer"

Definition at line 82 of file gsmdec.c.

Initial value:

 {
    .name           = "gsm",
    .long_name      = NULL_IF_CONFIG_SMALL("raw GSM"),
    .priv_data_size = sizeof(GSMDemuxerContext),
    .read_header    = gsm_read_header,
    .read_packet    = gsm_read_packet,
    .flags          = AVFMT_GENERIC_INDEX,
    .extensions     = "gsm",
    .raw_codec_id   = AV_CODEC_ID_GSM,
    .priv_class     = &class,
}

Definition at line 88 of file gsmdec.c.

item_name = av_default_item_name

Definition at line 83 of file gsmdec.c.

Definition at line 84 of file gsmdec.c.

const AVOption options[] [static]

Initial value:

 {
    { "sample_rate", "", 0x42,
       AV_OPT_TYPE_INT, {.i64 = GSM_SAMPLE_RATE}, 1, INT_MAX / GSM_BLOCK_SIZE,
       AV_OPT_FLAG_DECODING_PARAM },
    { NULL },
}

Definition at line 74 of file gsmdec.c.

Definition at line 85 of file gsmdec.c.


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