FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
ilbc.c File Reference
#include "avformat.h"
#include "internal.h"

Go to the source code of this file.

Functions

static int ilbc_write_header (AVFormatContext *s)
 
static int ilbc_write_packet (AVFormatContext *s, AVPacket *pkt)
 
static int ilbc_probe (AVProbeData *p)
 
static int ilbc_read_header (AVFormatContext *s)
 
static int ilbc_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const char mode20_header [] = "#!iLBC20\n"
 
static const char mode30_header [] = "#!iLBC30\n"
 
AVInputFormat ff_ilbc_demuxer
 
AVOutputFormat ff_ilbc_muxer
 

Function Documentation

static int ilbc_write_header ( AVFormatContext s)
static

Definition at line 28 of file ilbc.c.

static int ilbc_write_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 56 of file ilbc.c.

static int ilbc_probe ( AVProbeData p)
static

Definition at line 62 of file ilbc.c.

static int ilbc_read_header ( AVFormatContext s)
static

Definition at line 71 of file ilbc.c.

static int ilbc_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 102 of file ilbc.c.

Variable Documentation

const char mode20_header[] = "#!iLBC20\n"
static

Definition at line 25 of file ilbc.c.

Referenced by ilbc_probe(), ilbc_read_header(), and ilbc_write_header().

const char mode30_header[] = "#!iLBC30\n"
static

Definition at line 26 of file ilbc.c.

Referenced by ilbc_read_header(), and ilbc_write_header().

AVInputFormat ff_ilbc_demuxer
Initial value:
= {
.name = "ilbc",
.long_name = NULL_IF_CONFIG_SMALL("iLBC storage"),
.read_probe = ilbc_probe,
.read_header = ilbc_read_header,
.read_packet = ilbc_read_packet,
}
static int ilbc_read_header(AVFormatContext *s)
Definition: ilbc.c:71
static int ilbc_probe(AVProbeData *p)
Definition: ilbc.c:62
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:180
static int ilbc_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: ilbc.c:102
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:487

Definition at line 122 of file ilbc.c.

AVOutputFormat ff_ilbc_muxer
Initial value:
= {
.name = "ilbc",
.long_name = NULL_IF_CONFIG_SMALL("iLBC storage"),
.mime_type = "audio/iLBC",
.extensions = "lbc",
.audio_codec = AV_CODEC_ID_ILBC,
.write_header = ilbc_write_header,
.write_packet = ilbc_write_packet,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:180
static int ilbc_write_header(AVFormatContext *s)
Definition: ilbc.c:28
static int ilbc_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: ilbc.c:56
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:486

Definition at line 131 of file ilbc.c.