FFmpeg
Data Structures | Macros | Functions | Variables
g729dec.c File Reference
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  G729DemuxerContext
 

Macros

#define OFFSET(x)   offsetof(G729DemuxerContext, x)
 

Functions

static int g729_read_header (AVFormatContext *s)
 
static int g729_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const AVOption g729_options []
 
static const AVClass g729_demuxer_class
 
const FFInputFormat ff_g729_demuxer
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET (   x)    offsetof(G729DemuxerContext, x)

Definition at line 84 of file g729dec.c.

Function Documentation

◆ g729_read_header()

static int g729_read_header ( AVFormatContext s)
static

Definition at line 35 of file g729dec.c.

◆ g729_read_packet()

static int g729_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 70 of file g729dec.c.

Variable Documentation

◆ g729_options

const AVOption g729_options[]
static
Initial value:
= {
{ "bit_rate", "", OFFSET(bit_rate), AV_OPT_TYPE_INT, { .i64 = 8000 }, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ NULL },
}

Definition at line 85 of file g729dec.c.

◆ g729_demuxer_class

const AVClass g729_demuxer_class
static
Initial value:
= {
.class_name = "g729 demuxer",
.item_name = av_default_item_name,
.option = g729_options,
}

Definition at line 90 of file g729dec.c.

◆ ff_g729_demuxer

const FFInputFormat ff_g729_demuxer
Initial value:
= {
.p.name = "g729",
.p.long_name = NULL_IF_CONFIG_SMALL("G.729 raw format demuxer"),
.p.flags = AVFMT_GENERIC_INDEX,
.p.extensions = "g729",
.p.priv_class = &g729_demuxer_class,
.priv_data_size = sizeof(G729DemuxerContext),
}

Definition at line 97 of file g729dec.c.

g729_read_packet
static int g729_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: g729dec.c:70
g729_demuxer_class
static const AVClass g729_demuxer_class
Definition: g729dec.c:90
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:480
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:42
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:540
NULL
#define NULL
Definition: coverity.c:32
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:237
OFFSET
#define OFFSET(x)
Definition: g729dec.c:84
g729_options
static const AVOption g729_options[]
Definition: g729dec.c:85
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:94
G729DemuxerContext
Definition: g729dec.c:29
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition: opt.h:259
AV_OPT_FLAG_DECODING_PARAM
#define AV_OPT_FLAG_DECODING_PARAM
A generic parameter which can be set by the user for demuxing or decoding.
Definition: opt.h:356
g729_read_header
static int g729_read_header(AVFormatContext *s)
Definition: g729dec.c:35