Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

FileList Class Reference

#include <filelist.h>

Inheritance diagram for FileList:

FileBase FileEXR FileJPEG FileJPEGList FilePNG FileTGA FileTIFF List of all members.

Public Member Functions

 FileList (Asset *asset, File *file, char *list_prefix, char *file_extension, int frame_type, int list_type)
virtual ~FileList ()
int open_file (int rd, int wr)
int close_file ()
char * calculate_path (int number, char *string)
char * create_path (int number_override)
void add_return_value (int amount)
int read_list_header ()
virtual int read_frame_header (char *path)
int read_frame (VFrame *frame)
virtual int read_frame (VFrame *frame, VFrame *data)
virtual int write_frame (VFrame *frame, VFrame *data, FrameWriterUnit *unit)
int write_list_header ()
int write_frames (VFrame ***frames, int len)
VFrame * read_frame (int use_alpha, int use_float)
virtual int get_memory_usage ()
int get_units ()
FrameWriterUnitget_unit (int number)
virtual FrameWriterUnitnew_writer_unit (FrameWriter *writer)

Public Attributes

VFrame * data
VFrame * temp

Private Member Functions

int read_raw (VFrame *frame, float in_x1, float in_y1, float in_x2, float in_y2, float out_x1, float out_y1, float out_x2, float out_y2, int alpha, int use_alpha, int use_float, int interpolate)
int reset_parameters_derived ()

Private Attributes

ArrayList< char * > path_list
char * list_prefix
char * file_extension
int frame_type
int list_type
Mutex * table_lock
FrameWriterwriter
int return_value
int first_number
int number_start
int number_digits

Detailed Description

Definition at line 19 of file filelist.h.


Constructor & Destructor Documentation

FileList::FileList Asset asset,
File file,
char *  list_prefix,
char *  file_extension,
int  frame_type,
int  list_type
 

Definition at line 19 of file filelist.C.

References FileBase::reset_parameters(), table_lock, and Asset::video_data.

FileList::~FileList  )  [virtual]
 

Definition at line 36 of file filelist.C.

References close_file(), and table_lock.


Member Function Documentation

void FileList::add_return_value int  amount  ) 
 

Definition at line 427 of file filelist.C.

References return_value, and table_lock.

Referenced by FrameWriterUnit::process_package().

char * FileList::calculate_path int  number,
char *  string
 

Definition at line 434 of file filelist.C.

References FileBase::asset, Render::create_filename(), file_extension, number_digits, number_start, Asset::path, and Asset::use_header.

Referenced by create_path(), and read_frame().

int FileList::close_file  )  [virtual]
 

Reimplemented from FileBase.

Definition at line 126 of file filelist.C.

References FileBase::asset, FileBase::close_file(), data, Asset::format, list_type, path_list, FileBase::reset_parameters(), temp, Asset::use_header, FileBase::wr, write_list_header(), and writer.

Referenced by FileJPEGList::~FileJPEGList(), and ~FileList().

char * FileList::create_path int  number_override  ) 
 

Definition at line 463 of file filelist.C.

References FileBase::asset, calculate_path(), File::current_frame, FileBase::file, first_number, Asset::format, list_type, Asset::path, path_list, table_lock, and Asset::use_header.

Referenced by FrameWriter::init_packages(), and write_frames().

int FileList::get_memory_usage  )  [virtual]
 

Reimplemented from FileBase.

Reimplemented in FileEXR, and FileTGA.

Definition at line 512 of file filelist.C.

References data, and temp.

Referenced by FileTGA::get_memory_usage(), and FileEXR::get_memory_usage().

FrameWriterUnit * FileList::get_unit int  number  ) 
 

Definition at line 526 of file filelist.C.

References LoadServer::get_client(), and writer.

int FileList::get_units  ) 
 

Definition at line 520 of file filelist.C.

References LoadServer::get_total_clients(), and writer.

FrameWriterUnit * FileList::new_writer_unit FrameWriter writer  )  [virtual]
 

Reimplemented in FileEXR, FileJPEG, FilePNG, FileTGA, and FileTIFF.

Definition at line 507 of file filelist.C.

Referenced by FrameWriter::new_client().

int FileList::open_file int  rd,
int  wr
[virtual]
 

Reimplemented from FileBase.

Definition at line 50 of file filelist.C.

References FileBase::asset, File::cpus, File::current_frame, data, fclose(), FileBase::file, first_number, fopen(), Asset::format, Asset::frame_rate, frame_type, FileBase::FrameWriter, fread(), Render::get_starting_number(), Asset::layers, list_prefix, list_type, number_digits, number_start, Asset::path, path_list, read_frame_header(), read_list_header(), Asset::use_header, Asset::video_length, and writer.

VFrame* FileList::read_frame int  use_alpha,
int  use_float
 

virtual int FileList::read_frame VFrame *  frame,
VFrame *  data
[inline, virtual]
 

Reimplemented in FileEXR, FileJPEG, FileJPEGList, FilePNG, FileTGA, and FileTIFF.

Definition at line 43 of file filelist.h.

int FileList::read_frame VFrame *  frame  )  [virtual]
 

Reimplemented from FileBase.

Definition at line 238 of file filelist.C.

References FileBase::asset, calculate_path(), File::current_frame, data, fclose(), FileBase::file, fopen(), Asset::format, fread(), Asset::height, list_type, Asset::path, path_list, temp, Asset::use_header, and Asset::width.

virtual int FileList::read_frame_header char *  path  )  [inline, virtual]
 

Reimplemented in FileEXR, FileJPEG, FilePNG, FileTGA, and FileTIFF.

Definition at line 39 of file filelist.h.

Referenced by open_file().

int FileList::read_list_header  ) 
 

Definition at line 180 of file filelist.C.

References FileBase::asset, Asset::audio_data, fclose(), fgets(), fopen(), Asset::frame_rate, Asset::height, Asset::interlace_mode, Asset::layers, Asset::path, path_list, Asset::video_data, Asset::video_length, and Asset::width.

Referenced by open_file().

int FileList::read_raw VFrame *  frame,
float  in_x1,
float  in_y1,
float  in_x2,
float  in_y2,
float  out_x1,
float  out_y1,
float  out_x2,
float  out_y2,
int  alpha,
int  use_alpha,
int  use_float,
int  interpolate
[private]
 

int FileList::reset_parameters_derived  )  [private, virtual]
 

Reimplemented from FileBase.

Definition at line 42 of file filelist.C.

References data, first_number, temp, and writer.

virtual int FileList::write_frame VFrame *  frame,
VFrame *  data,
FrameWriterUnit unit
[inline, virtual]
 

Reimplemented in FileEXR, FileJPEG, FilePNG, FileTGA, and FileTIFF.

Definition at line 44 of file filelist.h.

Referenced by FrameWriterUnit::process_package().

int FileList::write_frames VFrame ***  frames,
int  len
[virtual]
 

Reimplemented from FileBase.

Definition at line 378 of file filelist.C.

References FileBase::asset, create_path(), fclose(), fopen(), fwrite(), Asset::layers, return_value, FrameWriter::write_frames(), and writer.

int FileList::write_list_header  ) 
 

Definition at line 143 of file filelist.C.

References FileBase::asset, fclose(), fopen(), Asset::frame_rate, fwrite(), Asset::height, list_prefix, Asset::path, path_list, and Asset::width.

Referenced by close_file().


Member Data Documentation

VFrame* FileList::data
 

Definition at line 59 of file filelist.h.

Referenced by FileVorbis::check_sig(), close_file(), get_memory_usage(), open_file(), read_frame(), and reset_parameters_derived().

char* FileList::file_extension [private]
 

Definition at line 71 of file filelist.h.

Referenced by calculate_path().

int FileList::first_number [private]
 

Definition at line 77 of file filelist.h.

Referenced by create_path(), open_file(), and reset_parameters_derived().

int FileList::frame_type [private]
 

Definition at line 72 of file filelist.h.

Referenced by open_file().

char* FileList::list_prefix [private]
 

Definition at line 70 of file filelist.h.

Referenced by open_file(), and write_list_header().

int FileList::list_type [private]
 

Definition at line 73 of file filelist.h.

Referenced by close_file(), create_path(), open_file(), and read_frame().

int FileList::number_digits [private]
 

Definition at line 79 of file filelist.h.

Referenced by calculate_path(), and open_file().

int FileList::number_start [private]
 

Definition at line 78 of file filelist.h.

Referenced by calculate_path(), and open_file().

ArrayList<char*> FileList::path_list [private]
 

Definition at line 69 of file filelist.h.

Referenced by close_file(), create_path(), open_file(), read_frame(), read_list_header(), and write_list_header().

int FileList::return_value [private]
 

Definition at line 76 of file filelist.h.

Referenced by add_return_value(), and write_frames().

Mutex* FileList::table_lock [private]
 

Definition at line 74 of file filelist.h.

Referenced by add_return_value(), create_path(), FileList(), and ~FileList().

VFrame* FileList::temp
 

Reimplemented in FilePNG, and FileTGA.

Definition at line 61 of file filelist.h.

Referenced by close_file(), FileTIFF::FileTIFF(), get_memory_usage(), read_frame(), FileVorbis::read_samples(), FileVorbis::read_samples_float(), reset_parameters_derived(), and FileTIFF::~FileTIFF().

FrameWriter* FileList::writer [private]
 

Definition at line 75 of file filelist.h.

Referenced by close_file(), get_unit(), get_units(), open_file(), reset_parameters_derived(), and write_frames().


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:14 2006 for Cinelerra-svn by  doxygen 1.4.4