libavformat/amr.c File Reference

#include "avformat.h"
#include "internal.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 66 of file amr.c.

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

Definition at line 79 of file amr.c.

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

Definition at line 120 of file amr.c.

static int amr_write_header ( AVFormatContext s  )  [static]

Definition at line 35 of file amr.c.

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

Definition at line 58 of file amr.c.


Variable Documentation

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

Definition at line 31 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 32 of file amr.c.

Referenced by amr_read_header(), and amr_write_header().

Initial value:
 {
    .name           = "amr",
    .long_name      = NULL_IF_CONFIG_SMALL("3GPP AMR file format"),
    .read_probe     = amr_probe,
    .read_header    = amr_read_header,
    .read_packet    = amr_read_packet,
    .flags = AVFMT_GENERIC_INDEX,
}

Definition at line 177 of file amr.c.

Initial value:
 {
    .name              = "amr",
    .long_name         = NULL_IF_CONFIG_SMALL("3GPP AMR file format"),
    .mime_type         = "audio/amr",
    .extensions        = "amr",
    .audio_codec       = CODEC_ID_AMR_NB,
    .video_codec       = CODEC_ID_NONE,
    .write_header      = amr_write_header,
    .write_packet      = amr_write_packet,
}

Definition at line 188 of file amr.c.