FFmpeg
Data Structures | Functions | Variables
amr.c File Reference
#include "libavutil/channel_layout.h"
#include "avformat.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  AMRContext
 

Functions

static int amr_probe (const AVProbeData *p)
 
static int amr_read_header (AVFormatContext *s)
 
static int amr_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const char AMR_header [] = "#!AMR\n"
 
static const char AMRWB_header [] = "#!AMR-WB\n"
 
static const uint8_t amrnb_packed_size [16]
 
static const uint8_t amrwb_packed_size [16]
 

Function Documentation

◆ amr_probe()

static int amr_probe ( const AVProbeData p)
static

Definition at line 74 of file amr.c.

◆ amr_read_header()

static int amr_read_header ( AVFormatContext s)
static

Definition at line 87 of file amr.c.

◆ amr_read_packet()

static int amr_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 122 of file amr.c.

Variable Documentation

◆ AMR_header

const char AMR_header[] = "#!AMR\n"
static

Definition at line 38 of file amr.c.

Referenced by amr_probe(), and amr_read_header().

◆ AMRWB_header

const char AMRWB_header[] = "#!AMR-WB\n"
static

Definition at line 39 of file amr.c.

Referenced by amr_read_header().

◆ amrnb_packed_size

const uint8_t amrnb_packed_size[16]
static
Initial value:
= {
13, 14, 16, 18, 20, 21, 27, 32, 6, 1, 1, 1, 1, 1, 1, 1
}

Definition at line 41 of file amr.c.

Referenced by amr_read_packet().

◆ amrwb_packed_size

const uint8_t amrwb_packed_size[16]
static
Initial value:
= {
18, 24, 33, 37, 41, 47, 51, 59, 61, 6, 1, 1, 1, 1, 1, 1
}

Definition at line 44 of file amr.c.

Referenced by amr_read_packet().