cgv
Loading...
Searching...
No Matches
cgv::media::riff_reader Class Reference

reader class for riff files such as .ani or .avi More...

#include <riff.h>

Public Member Functions

 riff_reader (riff_handler *_rh)
 construct from riff_handler
 
bool read (const std::string &file_name)
 read given file and generate callbacks to the riff_handler, return whether read was successful
 

Protected Member Functions

bool read_chunk_info (fourcc &f, unsigned &size)
 
bool read_chunk_list (unsigned size)
 
void close ()
 

Protected Attributes

FILE * fp
 
riff_handlerrh
 

Detailed Description

reader class for riff files such as .ani or .avi

Definition at line 50 of file riff.h.

Constructor & Destructor Documentation

◆ riff_reader()

cgv::media::riff_reader::riff_reader ( riff_handler _rh)

construct from riff_handler

Definition at line 43 of file riff.cxx.

Member Function Documentation

◆ close()

void cgv::media::riff_reader::close ( )
protected

Definition at line 125 of file riff.cxx.

◆ read()

bool cgv::media::riff_reader::read ( const std::string &  file_name)

read given file and generate callbacks to the riff_handler, return whether read was successful

Definition at line 131 of file riff.cxx.

References cgv::media::riff_handler::begin_list_chunk(), and cgv::media::riff_handler::end_list_chunk().

◆ read_chunk_info()

bool cgv::media::riff_reader::read_chunk_info ( fourcc f,
unsigned &  size 
)
protected

Definition at line 47 of file riff.cxx.

◆ read_chunk_list()

bool cgv::media::riff_reader::read_chunk_list ( unsigned  size)
protected

Definition at line 60 of file riff.cxx.

Member Data Documentation

◆ fp

FILE* cgv::media::riff_reader::fp
protected

Definition at line 53 of file riff.h.

◆ rh

riff_handler* cgv::media::riff_reader::rh
protected

Definition at line 54 of file riff.h.


The documentation for this class was generated from the following files: