FFmpeg
Data Structures | Macros | Functions | Variables
g729dec.c File Reference
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "avformat.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 AVInputFormat ff_g729_demuxer
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 83 of file g729dec.c.

Function Documentation

◆ g729_read_header()

static int g729_read_header ( AVFormatContext s)
static

Definition at line 34 of file g729dec.c.

◆ g729_read_packet()

static int g729_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 69 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 84 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 89 of file g729dec.c.

◆ ff_g729_demuxer

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

Definition at line 96 of file g729dec.c.

g729_read_packet
static int g729_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: g729dec.c:69
g729_demuxer_class
static const AVClass g729_demuxer_class
Definition: g729dec.c:89
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:476
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:527
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:235
OFFSET
#define OFFSET(x)
Definition: g729dec.c:83
g729_options
static const AVOption g729_options[]
Definition: g729dec.c:84
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:117
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:278
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
G729DemuxerContext
Definition: g729dec.c:28
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:224
g729_read_header
static int g729_read_header(AVFormatContext *s)
Definition: g729dec.c:34
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:561