FileList Class Reference

#include <filelist.h>

Inherits FileBase.

Inherited by FileEXR, FileJPEG, FileJPEGList, FilePNG, FileTGA, and FileTIFF.

Collaboration diagram for FileList:

Collaboration graph
[legend]

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)
VFrameread_frame (int use_alpha, int use_float)
virtual int64_t get_memory_usage ()
int get_units ()
FrameWriterUnitget_unit (int number)
virtual FrameWriterUnitnew_writer_unit (FrameWriter *writer)

Data Fields

VFramedata
VFrametemp

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
Mutextable_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 22 of file filelist.C.

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

Here is the call graph for this function:

FileList::~FileList (  )  [virtual]

Definition at line 39 of file filelist.C.

References close_file(), and table_lock.

Here is the call graph for this function:


Member Function Documentation

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

int FileList::close_file (  )  [virtual]

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

Definition at line 440 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().

Here is the call graph for this function:

char * FileList::create_path ( int  number_override  ) 

void FileList::add_return_value ( int  amount  ) 

Definition at line 433 of file filelist.C.

References Mutex::lock(), return_value, table_lock, and Mutex::unlock().

Referenced by FrameWriterUnit::process_package().

Here is the call graph for this function:

int FileList::read_list_header (  ) 

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_frame ( VFrame frame  )  [virtual]

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.

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_list_header (  ) 

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

Reimplemented from FileBase.

Definition at line 384 of file filelist.C.

References FileBase::asset, BC_COMPRESSED, create_path(), eprintf, fclose(), fopen(), fwrite(), VFrame::get_number(), Asset::layers, Asset::path, return_value, FrameWriter::write_frames(), and writer.

Here is the call graph for this function:

VFrame* FileList::read_frame ( int  use_alpha,
int  use_float 
)

int64_t FileList::get_memory_usage (  )  [virtual]

Reimplemented from FileBase.

Reimplemented in FileEXR, and FileTGA.

Definition at line 518 of file filelist.C.

References data, VFrame::get_compressed_allocated(), VFrame::get_data_size(), and temp.

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

Here is the call graph for this function:

int FileList::get_units (  ) 

Definition at line 526 of file filelist.C.

References LoadServer::get_total_clients(), and writer.

Here is the call graph for this function:

FrameWriterUnit * FileList::get_unit ( int  number  ) 

Definition at line 532 of file filelist.C.

References LoadServer::get_client(), and writer.

Here is the call graph for this function:

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

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

Definition at line 513 of file filelist.C.

Referenced by FrameWriter::new_client().

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 45 of file filelist.C.

References data, first_number, temp, and writer.


Field Documentation

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

char* FileList::list_prefix [private]

Definition at line 70 of file filelist.h.

Referenced by open_file(), and write_list_header().

char* FileList::file_extension [private]

Definition at line 71 of file filelist.h.

Referenced by calculate_path().

int FileList::frame_type [private]

Definition at line 72 of file filelist.h.

Referenced by open_file().

int FileList::list_type [private]

Definition at line 73 of file filelist.h.

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

Definition at line 74 of file filelist.h.

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

int FileList::return_value [private]

Definition at line 76 of file filelist.h.

Referenced by add_return_value(), and write_frames().

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::number_start [private]

Definition at line 78 of file filelist.h.

Referenced by calculate_path(), and open_file().

int FileList::number_digits [private]

Definition at line 79 of file filelist.h.

Referenced by calculate_path(), and open_file().


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

Generated on Mon Apr 28 14:25:13 2008 for Cinelerra by  doxygen 1.5.5