#include "libavutil/avassert.h"#include "libavutil/dict.h"#include "libavutil/log.h"#include "libavutil/mathematics.h"#include "libavutil/opt.h"#include "avformat.h"#include "internal.h"#include "avio_internal.h"#include "pcm.h"#include "riff.h"#include "avio.h"#include "metadata.h"Go to the source code of this file.
Data Structures | |
| struct | WAVContext |
Defines | |
| #define | OFFSET(x) offsetof(WAVContext, x) |
| #define | ENC AV_OPT_FLAG_ENCODING_PARAM |
| #define | MAX_SIZE 4096 |
Functions | |
| static void | bwf_write_bext_string (AVFormatContext *s, const char *key, int maxlen) |
| static void | bwf_write_bext_chunk (AVFormatContext *s) |
| 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 | next_tag (AVIOContext *pb, uint32_t *tag) |
| static int64_t | find_tag (AVIOContext *pb, uint32_t tag1) |
| static int | wav_probe (AVProbeData *p) |
| static int | wav_parse_fmt_tag (AVFormatContext *s, int64_t size, AVStream **st) |
| static int | wav_parse_bext_string (AVFormatContext *s, const char *key, int length) |
| static int | wav_parse_bext_tag (AVFormatContext *s, int64_t size) |
| static int | wav_read_header (AVFormatContext *s, AVFormatParameters *ap) |
| static int64_t | find_guid (AVIOContext *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 | |
| static const AVOption | options [] |
| static const AVClass | wav_muxer_class |
| AVOutputFormat | ff_wav_muxer |
| static const AVMetadataConv | wav_metadata_conv [] |
| static const uint8_t | guid_data [16] |
| AVInputFormat | ff_wav_demuxer |
| static const uint8_t | guid_riff [16] |
| static const uint8_t | guid_wave [16] |
| static const uint8_t | guid_fmt [16] |
| AVInputFormat | ff_w64_demuxer |
| #define OFFSET | ( | x | ) | offsetof(WAVContext, x) |
| static void bwf_write_bext_chunk | ( | AVFormatContext * | s | ) | [static] |
Definition at line 65 of file wav.c.
Referenced by wav_write_header().
| static void bwf_write_bext_string | ( | AVFormatContext * | s, | |
| const char * | key, | |||
| int | maxlen | |||
| ) | [inline, static] |
Definition at line 51 of file wav.c.
Referenced by bwf_write_bext_chunk().
| static int64_t find_guid | ( | AVIOContext * | pb, | |
| const uint8_t | guid1[16] | |||
| ) | [static] |
Find chunk with w64 GUID by skipping over other chunks.
Definition at line 512 of file wav.c.
Referenced by w64_read_header(), and wav_read_packet().
| static int64_t find_tag | ( | AVIOContext * | pb, | |
| uint32_t | tag1 | |||
| ) | [static] |
Definition at line 234 of file wav.c.
Referenced by wav_read_packet().
| static int64_t next_tag | ( | AVIOContext * | pb, | |
| uint32_t * | tag | |||
| ) | [static] |
Definition at line 227 of file wav.c.
Referenced by find_tag(), and wav_read_header().
| static int w64_probe | ( | AVProbeData * | p | ) | [static] |
| static int w64_read_header | ( | AVFormatContext * | s, | |
| AVFormatParameters * | ap | |||
| ) | [static] |
| static int wav_parse_bext_string | ( | AVFormatContext * | s, | |
| const char * | key, | |||
| int | length | |||
| ) | [inline, static] |
Definition at line 290 of file wav.c.
Referenced by wav_parse_bext_tag().
| static int wav_parse_bext_tag | ( | AVFormatContext * | s, | |
| int64_t | size | |||
| ) | [static] |
Definition at line 308 of file wav.c.
Referenced by wav_read_header().
| static int wav_parse_fmt_tag | ( | AVFormatContext * | s, | |
| int64_t | size, | |||
| AVStream ** | st | |||
| ) | [static] |
Definition at line 270 of file wav.c.
Referenced by wav_read_header().
| static int wav_probe | ( | AVProbeData * | p | ) | [static] |
| static int wav_read_header | ( | AVFormatContext * | s, | |
| AVFormatParameters * | ap | |||
| ) | [static] |
| static int wav_read_packet | ( | AVFormatContext * | s, | |
| AVPacket * | pkt | |||
| ) | [static] |
| static int wav_read_seek | ( | AVFormatContext * | s, | |
| int | stream_index, | |||
| int64_t | timestamp, | |||
| int | flags | |||
| ) | [static] |
| static int wav_write_header | ( | AVFormatContext * | s | ) | [static] |
| static int wav_write_packet | ( | AVFormatContext * | s, | |
| AVPacket * | pkt | |||
| ) | [static] |
| static int wav_write_trailer | ( | AVFormatContext * | s | ) | [static] |
{
.name = "w64",
.long_name = NULL_IF_CONFIG_SMALL("Sony Wave64 format"),
.priv_data_size = sizeof(WAVContext),
.read_probe = w64_probe,
.read_header = w64_read_header,
.read_packet = wav_read_packet,
.read_seek = wav_read_seek,
.flags = AVFMT_GENERIC_INDEX,
.codec_tag = (const AVCodecTag* const []){ff_codec_wav_tags, 0},
}
{
.name = "wav",
.long_name = NULL_IF_CONFIG_SMALL("WAV format"),
.priv_data_size = sizeof(WAVContext),
.read_probe = wav_probe,
.read_header = wav_read_header,
.read_packet = wav_read_packet,
.read_seek = wav_read_seek,
.flags= AVFMT_GENERIC_INDEX,
.codec_tag= (const AVCodecTag* const []){ff_codec_wav_tags, 0},
}
{
.name = "wav",
.long_name = NULL_IF_CONFIG_SMALL("WAV format"),
.mime_type = "audio/x-wav",
.extensions = "wav",
.priv_data_size = sizeof(WAVContext),
.audio_codec = CODEC_ID_PCM_S16LE,
.video_codec = CODEC_ID_NONE,
.write_header = wav_write_header,
.write_packet = wav_write_packet,
.write_trailer = wav_write_trailer,
.codec_tag= (const AVCodecTag* const []){ff_codec_wav_tags, 0},
.priv_class = &wav_muxer_class,
}
const uint8_t guid_data[16] [static] |
{ 'd', 'a', 't', 'a',
0xF3, 0xAC, 0xD3, 0x11, 0x8C, 0xD1, 0x00, 0xC0, 0x4F, 0x8E, 0xDB, 0x8A }
Definition at line 529 of file wav.c.
Referenced by w64_read_header(), and wav_read_packet().
const uint8_t guid_fmt[16] [static] |
{ 'f', 'm', 't', ' ',
0xF3, 0xAC, 0xD3, 0x11, 0x8C, 0xD1, 0x00, 0xC0, 0x4F, 0x8E, 0xDB, 0x8A }
Definition at line 610 of file wav.c.
Referenced by w64_read_header().
const uint8_t guid_riff[16] [static] |
{ 'r', 'i', 'f', 'f',
0x2E, 0x91, 0xCF, 0x11, 0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00 }
Definition at line 604 of file wav.c.
Referenced by w64_probe(), and w64_read_header().
const uint8_t guid_wave[16] [static] |
{ 'w', 'a', 'v', 'e',
0xF3, 0xAC, 0xD3, 0x11, 0x8C, 0xD1, 0x00, 0xC0, 0x4F, 0x8E, 0xDB, 0x8A }
Definition at line 607 of file wav.c.
Referenced by w64_probe(), and w64_read_header().
const AVMetadataConv wav_metadata_conv[] [static] |
const AVClass wav_muxer_class [static] |
{
.class_name = "WAV muxer",
.item_name = av_default_item_name,
.option = options,
.version = LIBAVUTIL_VERSION_INT,
}