libavformat/wav.c File Reference

#include "avformat.h"
#include "raw.h"
#include "riff.h"

Go to the source code of this file.

Data Structures

struct  WAVContext

Defines

#define MAX_SIZE   4096

Functions

static int wav_write_header (AVFormatContext *s)
static int wav_write_packet (AVFormatContext *s, AVPacket *pkt)
static int wav_write_trailer (AVFormatContext *s)
static int64_t find_tag (ByteIOContext *pb, uint32_t tag1)
static int wav_probe (AVProbeData *p)
static int wav_read_header (AVFormatContext *s, AVFormatParameters *ap)
static int64_t find_guid (ByteIOContext *pb, const uint8_t guid1[16])
 Find chunk with w64 GUID by skipping over other chunks.
static int wav_read_packet (AVFormatContext *s, AVPacket *pkt)
static int wav_read_seek (AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
static int w64_probe (AVProbeData *p)
static int w64_read_header (AVFormatContext *s, AVFormatParameters *ap)

Variables

AVOutputFormat wav_muxer
static const uint8_t guid_data [16]
AVInputFormat wav_demuxer
static const uint8_t guid_riff [16]
static const uint8_t guid_wave [16]
static const uint8_t guid_fmt [16]
AVInputFormat w64_demuxer


Define Documentation

#define MAX_SIZE   4096

Definition at line 260 of file wav.c.


Function Documentation

static int64_t find_guid ( ByteIOContext pb,
const uint8_t  guid1[16] 
) [static]

Find chunk with w64 GUID by skipping over other chunks.

Returns:
the size of the found chunk

Definition at line 240 of file wav.c.

Referenced by w64_read_header(), and wav_read_packet().

static int64_t find_tag ( ByteIOContext pb,
uint32_t  tag1 
) [static]

Definition at line 142 of file wav.c.

Referenced by wav_read_header(), and wav_read_packet().

static int w64_probe ( AVProbeData p  )  [static]

Definition at line 342 of file wav.c.

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

Definition at line 353 of file wav.c.

static int wav_probe ( AVProbeData p  )  [static]

Definition at line 159 of file wav.c.

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

Definition at line 180 of file wav.c.

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

Definition at line 262 of file wav.c.

static int wav_read_seek ( AVFormatContext s,
int  stream_index,
int64_t  timestamp,
int  flags 
) [static]

Definition at line 298 of file wav.c.

static int wav_write_header ( AVFormatContext s  )  [static]

Definition at line 39 of file wav.c.

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

Definition at line 78 of file wav.c.

static int wav_write_trailer ( AVFormatContext s  )  [static]

Definition at line 92 of file wav.c.


Variable Documentation

const uint8_t guid_data[16] [static]

Initial value:

 { 'd', 'a', 't', 'a',
    0xF3, 0xAC, 0xD3, 0x11, 0x8C, 0xD1, 0x00, 0xC0, 0x4F, 0x8E, 0xDB, 0x8A }

Definition at line 257 of file wav.c.

Referenced by w64_read_header(), and wav_read_packet().

const uint8_t guid_fmt[16] [static]

Initial value:

 { 'f', 'm', 't', ' ',
    0xF3, 0xAC, 0xD3, 0x11, 0x8C, 0xD1, 0x00, 0xC0, 0x4F, 0x8E, 0xDB, 0x8A }

Definition at line 339 of file wav.c.

Referenced by w64_read_header().

const uint8_t guid_riff[16] [static]

Initial value:

 { 'r', 'i', 'f', 'f',
    0x2E, 0x91, 0xCF, 0x11, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 }

Definition at line 333 of file wav.c.

Referenced by w64_probe(), and w64_read_header().

const uint8_t guid_wave[16] [static]

Initial value:

 { 'w', 'a', 'v', 'e',
    0xF3, 0xAC, 0xD3, 0x11, 0x8C, 0xD1, 0x00, 0xC0, 0x4F, 0x8E, 0xDB, 0x8A }

Definition at line 336 of file wav.c.

Referenced by w64_probe(), and w64_read_header().

Initial value:

 {
    "w64",
    NULL_IF_CONFIG_SMALL("Sony Wave64 format"),
    sizeof(WAVContext),
    w64_probe,
    w64_read_header,
    wav_read_packet,
    NULL,
    wav_read_seek,
    .flags = AVFMT_GENERIC_INDEX,
    .codec_tag = (const AVCodecTag* const []){ff_codec_wav_tags, 0},
}

Definition at line 403 of file wav.c.

Initial value:

 {
    "wav",
    NULL_IF_CONFIG_SMALL("WAV format"),
    sizeof(WAVContext),
    wav_probe,
    wav_read_header,
    wav_read_packet,
    NULL,
    wav_read_seek,
    .flags= AVFMT_GENERIC_INDEX,
    .codec_tag= (const AVCodecTag* const []){ff_codec_wav_tags, 0},
}

Definition at line 317 of file wav.c.

Initial value:

 {
    "wav",
    NULL_IF_CONFIG_SMALL("WAV format"),
    "audio/x-wav",
    "wav",
    sizeof(WAVContext),
    CODEC_ID_PCM_S16LE,
    CODEC_ID_NONE,
    wav_write_header,
    wav_write_packet,
    wav_write_trailer,
    .codec_tag= (const AVCodecTag* const []){ff_codec_wav_tags, 0},
}

Definition at line 124 of file wav.c.


Generated on Tue Apr 20 17:39:54 2010 for FFmpeg by  doxygen 1.5.6