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 []
 

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.

sample_rate
sample_rate
Definition: ffmpeg_filter.c:170
OFFSET
#define OFFSET(x)
Definition: g726.c:59
NULL
#define NULL
Definition: coverity.c:32
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:279
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:225