Functions | Variables

libavformat/amr.c File Reference

#include "avformat.h"

Go to the source code of this file.

Functions

static int amr_write_header (AVFormatContext *s)
static int amr_write_packet (AVFormatContext *s, AVPacket *pkt)
static int amr_probe (AVProbeData *p)
static int amr_read_header (AVFormatContext *s, AVFormatParameters *ap)
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"
AVInputFormat ff_amr_demuxer
AVOutputFormat ff_amr_muxer

Function Documentation

static int amr_probe ( AVProbeData p  )  [static]

Definition at line 65 of file amr.c.

static int amr_read_header ( AVFormatContext s,
AVFormatParameters ap 
) [static]

Definition at line 78 of file amr.c.

static int amr_read_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 119 of file amr.c.

static int amr_write_header ( AVFormatContext s  )  [static]

Definition at line 34 of file amr.c.

static int amr_write_packet ( AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 57 of file amr.c.


Variable Documentation

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

Definition at line 30 of file amr.c.

Referenced by amr_probe(), amr_read_header(), and amr_write_header().

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

Definition at line 31 of file amr.c.

Referenced by amr_read_header(), and amr_write_header().

Initial value:
 {
    "amr",
    NULL_IF_CONFIG_SMALL("3GPP AMR file format"),
    0, 
    amr_probe,
    amr_read_header,
    amr_read_packet,
    NULL,
    .flags = AVFMT_GENERIC_INDEX,
}

Definition at line 176 of file amr.c.

Initial value:
 {
    "amr",
    NULL_IF_CONFIG_SMALL("3GPP AMR file format"),
    "audio/amr",
    "amr",
    0,
    CODEC_ID_AMR_NB,
    CODEC_ID_NONE,
    amr_write_header,
    amr_write_packet,
}

Definition at line 189 of file amr.c.