FFmpeg
Loading...
Searching...
No Matches
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)
 

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)
Value:

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 },
}
#define NULL
Definition coverity.c:32
#define OFFSET(x)
#define AV_OPT_FLAG_DECODING_PARAM
A generic parameter which can be set by the user for demuxing or decoding.
Definition opt.h:355
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition opt.h:258

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,
}
const char * av_default_item_name(void *ptr)
Return the context name.
Definition log.c:241
#define LIBAVUTIL_VERSION_INT
Definition version.h:85
static const AVOption g729_options[]
Definition g729dec.c:85

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),
}
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition avformat.h:499
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:578
static const AVClass g729_demuxer_class
Definition g729dec.c:90
static int g729_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition g729dec.c:70
static int g729_read_header(AVFormatContext *s)
Definition g729dec.c:35
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88

Definition at line 97 of file g729dec.c.