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

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

Definition at line 71 of file g726.c.