FFmpeg
Data Structures | Macros | Functions | Variables
g726.c File Reference
#include "config_components.h"
#include "avformat.h"
#include "demux.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 62 of file g726.c.

Function Documentation

◆ g726_read_header()

static int g726_read_header ( AVFormatContext s)
static

Definition at line 35 of file g726.c.

◆ g726_read_packet()

static int g726_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 53 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", "",
OFFSET(sample_rate), AV_OPT_TYPE_INT, {.i64 = 8000}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ NULL },
}

Definition at line 63 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 71 of file g726.c.

OFFSET
#define OFFSET(x)
Definition: g726.c:62
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:237
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
options
static const AVOption options[]
Definition: g726.c:63