FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
riffenc.c File Reference
#include "libavutil/dict.h"
#include "libavutil/log.h"
#include "libavutil/mathematics.h"
#include "libavcodec/avcodec.h"
#include "libavcodec/bytestream.h"
#include "avformat.h"
#include "avio_internal.h"
#include "riff.h"

Go to the source code of this file.

Functions

int64_t ff_start_tag (AVIOContext *pb, const char *tag)
 
void ff_end_tag (AVIOContext *pb, int64_t start)
 
int ff_put_wav_header (AVFormatContext *s, AVIOContext *pb, AVCodecParameters *par, int flags)
 Write WAVEFORMAT header structure. More...
 
void ff_put_bmp_header (AVIOContext *pb, AVCodecParameters *par, int for_asf, int ignore_extradata)
 
void ff_parse_specific_params (AVStream *st, int *au_rate, int *au_ssize, int *au_scale)
 
void ff_riff_write_info_tag (AVIOContext *pb, const char *tag, const char *str)
 Write a single RIFF info tag. More...
 
static int riff_has_valid_tags (AVFormatContext *s)
 
void ff_riff_write_info (AVFormatContext *s)
 Write all recognized RIFF tags from s->metadata. More...
 
void ff_put_guid (AVIOContext *s, const ff_asf_guid *g)
 
const ff_asf_guidff_get_codec_guid (enum AVCodecID id, const AVCodecGuid *av_guid)
 

Variables

static const char riff_tags [][5]
 

Function Documentation

int64_t ff_start_tag ( AVIOContext pb,
const char *  tag 
)
void ff_end_tag ( AVIOContext pb,
int64_t  start 
)
int ff_put_wav_header ( AVFormatContext s,
AVIOContext pb,
AVCodecParameters par,
int  flags 
)

Write WAVEFORMAT header structure.

Parameters
flagsa combination of FF_PUT_WAV_HEADER_* constants
Returns
the size or -1 on error

Definition at line 54 of file riffenc.c.

Referenced by asf_write_header1(), avi_write_header(), mkv_write_codecprivate(), mov_write_ms_tag(), mov_write_wfex_tag(), and write_stream_codec_info().

void ff_put_bmp_header ( AVIOContext pb,
AVCodecParameters par,
int  for_asf,
int  ignore_extradata 
)

Definition at line 209 of file riffenc.c.

Referenced by asf_write_header1(), avi_write_header(), and mkv_write_codecprivate().

void ff_parse_specific_params ( AVStream st,
int au_rate,
int au_ssize,
int au_scale 
)
void ff_riff_write_info_tag ( AVIOContext pb,
const char *  tag,
const char *  str 
)

Write a single RIFF info tag.

Definition at line 295 of file riffenc.c.

Referenced by avi_write_header(), and ff_riff_write_info().

static int riff_has_valid_tags ( AVFormatContext s)
static

Definition at line 316 of file riffenc.c.

Referenced by ff_riff_write_info().

void ff_riff_write_info ( AVFormatContext s)

Write all recognized RIFF tags from s->metadata.

Definition at line 327 of file riffenc.c.

void ff_put_guid ( AVIOContext s,
const ff_asf_guid g 
)
const ff_asf_guid* ff_get_codec_guid ( enum AVCodecID  id,
const AVCodecGuid av_guid 
)

Definition at line 355 of file riffenc.c.

Referenced by ff_put_wav_header(), and write_stream_codec_info().

Variable Documentation

const char riff_tags[][5]
static
Initial value:
= {
"IARL", "IART", "IAS1", "IAS2", "IAS3", "IAS4", "IAS5", "IAS6", "IAS7",
"IAS8", "IAS9", "ICMS", "ICMT", "ICOP", "ICRD", "ICRP", "IDIM", "IDPI",
"IENG", "IGNR", "IKEY", "ILGT", "ILNG", "IMED", "INAM", "IPLT", "IPRD",
"IPRT", "ITRK", "ISBJ", "ISFT", "ISHP", "ISMP", "ISRC", "ISRF", "ITCH",
{ 0 }
}

Definition at line 308 of file riffenc.c.

Referenced by ff_riff_write_info(), and riff_has_valid_tags().