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

Go to the source code of this file.

Data Structures

struct  G726Context
 

Macros

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

Functions

static int g726_read_header (AVFormatContext *s)
 
static int g726_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const AVOption options []
 
static const AVClass g726_demuxer_class
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 59 of file g726.c.

Function Documentation

◆ g726_read_header()

static int g726_read_header ( AVFormatContext s)
static

Definition at line 32 of file g726.c.

◆ g726_read_packet()

static int g726_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 50 of file g726.c.

Variable Documentation

◆ options

const AVOption options[]
static
Initial value:
= {
{ "code_size", "Bits per G.726 code",
OFFSET(code_size), AV_OPT_TYPE_INT, {.i64 = 4}, 2, 5, AV_OPT_FLAG_DECODING_PARAM },
{ "sample_rate", "",
{ NULL },
}

Definition at line 60 of file g726.c.

◆ g726_demuxer_class

const AVClass g726_demuxer_class
static
Initial value:
= {
.class_name = "G.726 demuxer",
.item_name = av_default_item_name,
.option = options,
}

Definition at line 68 of file g726.c.

sample_rate
sample_rate
Definition: ffmpeg_filter.c:153
OFFSET
#define OFFSET(x)
Definition: g726.c:59
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
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
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
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:224
options
static const AVOption options[]
Definition: g726.c:60