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 (AVIOContext *pb, AVCodecContext *enc)
 
void ff_put_bmp_header (AVIOContext *pb, AVCodecContext *enc, const AVCodecTag *tags, int for_asf, int ignore_extradata)
 
void ff_parse_specific_params (AVCodecContext *stream, 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.
 
static int riff_has_valid_tags (AVFormatContext *s)
 
void ff_riff_write_info (AVFormatContext *s)
 Write all recognized RIFF tags from s->metadata.
 

Variables

static const char riff_tags [][5]
 

Function Documentation

int64_t ff_start_tag ( AVIOContext pb,
const char *  tag 
)

Definition at line 31 of file riffenc.c.

Referenced by avi_start_new_riff(), avi_write_header(), avi_write_idx1(), and ff_riff_write_info().

void ff_end_tag ( AVIOContext pb,
int64_t  start 
)
int ff_put_wav_header ( AVIOContext pb,
AVCodecContext enc 
)
void ff_put_bmp_header ( AVIOContext pb,
AVCodecContext enc,
const AVCodecTag tags,
int  for_asf,
int  ignore_extradata 
)

Definition at line 203 of file riffenc.c.

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

void ff_parse_specific_params ( AVCodecContext stream,
int *  au_rate,
int *  au_ssize,
int *  au_scale 
)

Definition at line 231 of file riffenc.c.

Referenced by avi_write_counters(), avi_write_header(), and nut_write_header().

void ff_riff_write_info_tag ( AVIOContext pb,
const char *  tag,
const char *  str 
)

Write a single RIFF info tag.

Definition at line 263 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 283 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 294 of file riffenc.c.

Variable Documentation

const char riff_tags[][5]
static
Initial value:
= {
"IARL", "IART", "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 276 of file riffenc.c.

Referenced by ff_riff_write_info(), and riff_has_valid_tags().