FFmpeg
Functions
riffdec.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/dict.h"
#include "libavutil/error.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "avformat.h"
#include "avio_internal.h"
#include "demux.h"
#include "riff.h"

Go to the source code of this file.

Functions

int 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 (void *logctx, AVIOContext *pb, AVCodecParameters *par)
 
int ff_get_wav_header (void *logctx, AVIOContext *pb, AVCodecParameters *par, int size, int big_endian)
 
enum AVCodecID ff_wav_codec_get_id (unsigned int tag, int bps)
 
int ff_get_bmp_header (AVIOContext *pb, AVStream *st, uint32_t *size)
 Read BITMAPINFOHEADER structure and set AVStream codec width, height and bits_per_encoded_sample fields. More...
 
int ff_read_riff_info (AVFormatContext *s, int64_t size)
 

Function Documentation

◆ ff_get_guid()

int ff_get_guid ( AVIOContext s,
ff_asf_guid g 
)

◆ ff_codec_guid_get_id()

enum AVCodecID ff_codec_guid_get_id ( const AVCodecGuid guids,
ff_asf_guid  guid 
)

Definition at line 45 of file riffdec.c.

Referenced by parse_media_type(), and parse_waveformatex().

◆ parse_waveformatex()

static void parse_waveformatex ( void *  logctx,
AVIOContext pb,
AVCodecParameters par 
)
static

Definition at line 62 of file riffdec.c.

Referenced by ff_get_wav_header().

◆ ff_get_wav_header()

int ff_get_wav_header ( void *  logctx,
AVIOContext pb,
AVCodecParameters par,
int  size,
int  big_endian 
)

◆ ff_wav_codec_get_id()

enum AVCodecID ff_wav_codec_get_id ( unsigned int  tag,
int  bps 
)

◆ ff_get_bmp_header()

int ff_get_bmp_header ( AVIOContext pb,
AVStream st,
uint32_t *  size 
)

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

Does not read extradata. Writes the size of the BMP file to *size.

Returns
codec tag

Definition at line 224 of file riffdec.c.

Referenced by avi_read_header(), parse_video_info(), and parse_videoinfoheader2().

◆ ff_read_riff_info()

int ff_read_riff_info ( AVFormatContext s,
int64_t  size 
)

Definition at line 243 of file riffdec.c.

Referenced by avi_load_index(), and avi_read_header().