libavformat/au.c File Reference

#include "avformat.h"
#include "internal.h"
#include "avio_internal.h"
#include "pcm.h"
#include "riff.h"

Go to the source code of this file.

Defines

#define AU_UNKNOWN_SIZE   ((uint32_t)(~0))
#define BLOCK_SIZE   1024

Functions

static int put_au_header (AVIOContext *pb, AVCodecContext *enc)
static int au_write_header (AVFormatContext *s)
static int au_write_packet (AVFormatContext *s, AVPacket *pkt)
static int au_write_trailer (AVFormatContext *s)
static int au_probe (AVProbeData *p)
static int au_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int au_read_packet (AVFormatContext *s, AVPacket *pkt)

Variables

static const AVCodecTag codec_au_tags []
AVInputFormat ff_au_demuxer
AVOutputFormat ff_au_muxer

Define Documentation

#define AU_UNKNOWN_SIZE   ((uint32_t)(~0))

Definition at line 37 of file au.c.

Referenced by put_au_header().

#define BLOCK_SIZE   1024

Definition at line 167 of file au.c.

Referenced by au_read_packet().


Function Documentation

static int au_probe ( AVProbeData p  )  [static]

Definition at line 110 of file au.c.

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

Definition at line 121 of file au.c.

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

Definition at line 169 of file au.c.

static int au_write_header ( AVFormatContext s  )  [static]

Definition at line 67 of file au.c.

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

Definition at line 83 of file au.c.

static int au_write_trailer ( AVFormatContext s  )  [static]

Definition at line 90 of file au.c.

static int put_au_header ( AVIOContext pb,
AVCodecContext enc 
) [static]

Definition at line 54 of file au.c.

Referenced by au_write_header().


Variable Documentation

const AVCodecTag codec_au_tags[] [static]
Initial value:
 {
    { CODEC_ID_PCM_MULAW, 1 },
    { CODEC_ID_PCM_S8, 2 },
    { CODEC_ID_PCM_S16BE, 3 },
    { CODEC_ID_PCM_S24BE, 4 },
    { CODEC_ID_PCM_S32BE, 5 },
    { CODEC_ID_PCM_F32BE, 6 },
    { CODEC_ID_PCM_F64BE, 7 },
    { CODEC_ID_PCM_ALAW, 27 },
    { CODEC_ID_NONE, 0 },
}

Definition at line 40 of file au.c.

Initial value:
 {
    .name           = "au",
    .long_name      = NULL_IF_CONFIG_SMALL("SUN AU format"),
    .read_probe     = au_probe,
    .read_header    = au_read_header,
    .read_packet    = au_read_packet,
    .read_seek      = pcm_read_seek,
    .codec_tag= (const AVCodecTag* const []){codec_au_tags, 0},
}

Definition at line 188 of file au.c.

Initial value:
 {
    .name              = "au",
    .long_name         = NULL_IF_CONFIG_SMALL("SUN AU format"),
    .mime_type         = "audio/basic",
    .extensions        = "au",
    .audio_codec       = CODEC_ID_PCM_S16BE,
    .video_codec       = CODEC_ID_NONE,
    .write_header      = au_write_header,
    .write_packet      = au_write_packet,
    .write_trailer     = au_write_trailer,
    .codec_tag= (const AVCodecTag* const []){codec_au_tags, 0},
}

Definition at line 200 of file au.c.