FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
riffdec.c File Reference
#include "libavutil/dict.h"
#include "libavutil/error.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

void ff_get_guid (AVIOContext *s, ff_asf_guid *g)
 
enum AVCodecID ff_codec_guid_get_id (const AVCodecGuid *guids, ff_asf_guid guid)
 
static void parse_waveformatex (AVIOContext *pb, AVCodecContext *c)
 
int ff_get_wav_header (AVIOContext *pb, AVCodecContext *codec, int size)
 
enum AVCodecID ff_wav_codec_get_id (unsigned int tag, int bps)
 
int ff_get_bmp_header (AVIOContext *pb, AVStream *st, unsigned *esize)
 Read BITMAPINFOHEADER structure and set AVStream codec width, height and bits_per_encoded_sample fields.
 
int ff_read_riff_info (AVFormatContext *s, int64_t size)
 

Variables

const AVCodecGuid ff_codec_wav_guids []
 

Function Documentation

void ff_get_guid ( AVIOContext s,
ff_asf_guid g 
)
enum AVCodecID ff_codec_guid_get_id ( const AVCodecGuid guids,
ff_asf_guid  guid 
)

Definition at line 47 of file riffdec.c.

Referenced by parse_media_type(), and parse_waveformatex().

static void parse_waveformatex ( AVIOContext pb,
AVCodecContext c 
)
static

Definition at line 64 of file riffdec.c.

Referenced by ff_get_wav_header().

int ff_get_wav_header ( AVIOContext pb,
AVCodecContext codec,
int  size 
)
enum AVCodecID ff_wav_codec_get_id ( unsigned int  tag,
int  bps 
)
int ff_get_bmp_header ( AVIOContext pb,
AVStream st,
unsigned *  esize 
)

Read BITMAPINFOHEADER structure and set AVStream codec width, height and bits_per_encoded_sample fields.

Does not read extradata.

Returns
codec tag

Definition at line 165 of file riffdec.c.

Referenced by avi_read_header(), and parse_videoinfoheader2().

int ff_read_riff_info ( AVFormatContext s,
int64_t  size 
)

Definition at line 183 of file riffdec.c.

Referenced by avi_load_index(), and avi_read_header().

Variable Documentation

const AVCodecGuid ff_codec_wav_guids[]
Initial value:
= {
{ AV_CODEC_ID_AC3, { 0x2C, 0x80, 0x6D, 0xE0, 0x46, 0xDB, 0xCF, 0x11, 0xB4, 0xD1, 0x00, 0x80, 0x5F, 0x6C, 0xBB, 0xEA } },
{ AV_CODEC_ID_ATRAC3P, { 0xBF, 0xAA, 0x23, 0xE9, 0x58, 0xCB, 0x71, 0x44, 0xA1, 0x19, 0xFF, 0xFA, 0x01, 0xE4, 0xCE, 0x62 } },
{ AV_CODEC_ID_EAC3, { 0xAF, 0x87, 0xFB, 0xA7, 0x02, 0x2D, 0xFB, 0x42, 0xA4, 0xD4, 0x05, 0xCD, 0x93, 0x84, 0x3B, 0xDD } },
{ AV_CODEC_ID_MP2, { 0x2B, 0x80, 0x6D, 0xE0, 0x46, 0xDB, 0xCF, 0x11, 0xB4, 0xD1, 0x00, 0x80, 0x5F, 0x6C, 0xBB, 0xEA } },
}

Definition at line 32 of file riffdec.c.

Referenced by parse_media_type(), and write_stream_codec_info().