#include "libavutil/mathematics.h"
#include "libavcodec/avcodec.h"
#include "avformat.h"
#include "avio_internal.h"
#include "riff.h"
#include "libavcodec/bytestream.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 | ff_get_wav_header (AVIOContext *pb, AVCodecContext *codec, int size) |
enum CodecID | ff_wav_codec_get_id (unsigned int tag, int bps) |
int | ff_get_bmp_header (AVIOContext *pb, AVStream *st) |
Read BITMAPINFOHEADER structure and set AVStream codec width, height and bits_per_encoded_sample fields. | |
void | ff_parse_specific_params (AVCodecContext *stream, int *au_rate, int *au_ssize, int *au_scale) |
int | ff_read_riff_info (AVFormatContext *s, int64_t size) |
Variables | |
const AVCodecTag | ff_codec_bmp_tags [] |
const AVCodecTag | ff_codec_wav_tags [] |
const AVMetadataConv | ff_riff_info_conv [] |
const char | ff_riff_tags [][5] |
void ff_end_tag | ( | AVIOContext * | pb, | |
int64_t | start | |||
) |
Definition at line 376 of file riff.c.
Referenced by avi_write_header(), avi_write_idx1(), avi_write_packet(), avi_write_trailer(), bwf_write_bext_chunk(), wav_write_header(), and wav_write_trailer().
int ff_get_bmp_header | ( | AVIOContext * | pb, | |
AVStream * | st | |||
) |
Read BITMAPINFOHEADER structure and set AVStream codec width, height and bits_per_encoded_sample fields.
Does not read extradata.
Definition at line 600 of file riff.c.
Referenced by avi_read_header(), and parse_videoinfoheader2().
int ff_get_wav_header | ( | AVIOContext * | pb, | |
AVCodecContext * | codec, | |||
int | size | |||
) |
Definition at line 525 of file riff.c.
Referenced by asf_read_stream_properties(), avi_read_header(), dxa_read_header(), matroska_read_header(), mov_read_wfex(), parse_media_type(), w64_read_header(), wav_parse_fmt_tag(), and xwma_read_header().
void ff_parse_specific_params | ( | AVCodecContext * | stream, | |
int * | au_rate, | |||
int * | au_ssize, | |||
int * | au_scale | |||
) |
Definition at line 618 of file riff.c.
Referenced by avi_write_counters(), avi_write_header(), and nut_write_header().
void ff_put_bmp_header | ( | AVIOContext * | pb, | |
AVCodecContext * | enc, | |||
const AVCodecTag * | tags, | |||
int | for_asf | |||
) |
Definition at line 493 of file riff.c.
Referenced by asf_write_header1(), avi_write_header(), and mkv_write_codecprivate().
int ff_put_wav_header | ( | AVIOContext * | pb, | |
AVCodecContext * | enc | |||
) |
Definition at line 388 of file riff.c.
Referenced by asf_write_header1(), avi_write_header(), mkv_write_codecprivate(), mov_write_ms_tag(), and wav_write_header().
int ff_read_riff_info | ( | AVFormatContext * | s, | |
int64_t | size | |||
) |
Definition at line 640 of file riff.c.
Referenced by avi_read_header(), and wav_read_header().
int64_t ff_start_tag | ( | AVIOContext * | pb, | |
const char * | tag | |||
) |
Definition at line 369 of file riff.c.
Referenced by avi_start_new_riff(), avi_write_header(), avi_write_idx1(), bwf_write_bext_chunk(), mmf_write_header(), and wav_write_header().
enum CodecID ff_wav_codec_get_id | ( | unsigned int | tag, | |
int | bps | |||
) |
Definition at line 580 of file riff.c.
Referenced by avisynth_read_header(), ff_get_wav_header(), get_codec_data(), parse_media_type(), and xmv_read_header().
const AVCodecTag ff_codec_bmp_tags[] |
Definition at line 31 of file riff.c.
Referenced by asf_read_stream_properties(), asf_write_header1(), avformat_get_riff_video_tags(), avi_read_header(), avi_write_header(), avisynth_read_header(), decode_stream_header(), ff_mov_read_stsd_entries(), get_codec_data(), matroska_read_header(), mkv_write_codecprivate(), mkv_write_tracks(), mov_get_codec_tag(), nut_read_header(), ogm_dshow_header(), ogm_header(), parse_media_type(), and read_header().
const AVCodecTag ff_codec_wav_tags[] |
Definition at line 289 of file riff.c.
Referenced by avformat_get_riff_audio_tags(), decode_stream_header(), ff_mov_read_stsd_entries(), mkv_write_codecprivate(), mov_get_codec_tag(), nut_read_header(), ogm_dshow_header(), and ogm_header().
const AVMetadataConv ff_riff_info_conv[] |
{ { "IART", "artist" }, { "ICMT", "comment" }, { "ICOP", "copyright" }, { "ICRD", "date" }, { "IGNR", "genre" }, { "ILNG", "language" }, { "INAM", "title" }, { "IPRD", "album" }, { "IPRT", "track" }, { "ISFT", "encoder" }, { "ITCH", "encoded_by"}, { 0 }, }
Definition at line 346 of file riff.c.
Referenced by avi_read_header(), and wav_read_header().
const char ff_riff_tags[][5] |