#include <filelist.h>
Inherits FileBase.
Inherited by FileEXR, FileJPEG, FileJPEGList, FilePNG, FileTGA, and FileTIFF.

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 int64_t | get_memory_usage () |
| int | get_units () |
| FrameWriterUnit * | get_unit (int number) |
| virtual FrameWriterUnit * | new_writer_unit (FrameWriter *writer) |
Data Fields | |
| 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 |
| FrameWriter * | writer |
| int | return_value |
| int | first_number |
| int | number_start |
| int | number_digits |
Definition at line 19 of file filelist.h.
| 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.

| FileList::~FileList | ( | ) | [virtual] |
Definition at line 39 of file filelist.C.
References close_file(), and table_lock.

| int FileList::open_file | ( | int | rd, | |
| int | wr | |||
| ) | [virtual] |
Reimplemented from FileBase.
Definition at line 53 of file filelist.C.
References FileBase::asset, BCTEXTLEN, 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(), ArrayList< TYPE >::remove_all_objects(), Asset::use_header, ArrayList< TYPE >::values, Asset::video_length, and writer.

| int FileList::close_file | ( | ) | [virtual] |
Reimplemented from FileBase.
Definition at line 129 of file filelist.C.
References FileBase::asset, FileBase::close_file(), data, Asset::format, list_type, path_list, ArrayList< TYPE >::remove_all_objects(), FileBase::reset_parameters(), temp, ArrayList< TYPE >::total, Asset::use_header, FileBase::wr, write_list_header(), and writer.
Referenced by FileJPEGList::~FileJPEGList(), and ~FileList().

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

| char * FileList::create_path | ( | int | number_override | ) |
Definition at line 469 of file filelist.C.
References ArrayList< TYPE >::append(), FileBase::asset, BCTEXTLEN, calculate_path(), File::current_frame, FileBase::file, first_number, Asset::format, list_type, Mutex::lock(), output, Asset::path, path_list, table_lock, ArrayList< TYPE >::total, Mutex::unlock(), Asset::use_header, and ArrayList< TYPE >::values.
Referenced by FrameWriter::init_packages(), and write_frames().

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

| int FileList::read_list_header | ( | ) |
Definition at line 183 of file filelist.C.
References ArrayList< TYPE >::append(), FileBase::asset, Asset::audio_data, BC_ILACE_MODE_UNDETECTED, BCTEXTLEN, fclose(), fgets(), fopen(), Asset::frame_rate, Asset::height, Asset::interlace_mode, Asset::layers, Asset::path, path_list, ArrayList< TYPE >::total, Asset::video_data, Asset::video_length, and Asset::width.
Referenced by open_file().

| 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] |
Reimplemented from FileBase.
Definition at line 241 of file filelist.C.
References VFrame::allocate_compressed_data(), FileBase::asset, BC_COMPRESSED, BCTEXTLEN, calculate_path(), cmodel_transfer(), VFrame::copy_from(), File::current_frame, data, eprintf, fclose(), FileBase::file, fopen(), Asset::format, fread(), VFrame::get_color_model(), VFrame::get_data(), VFrame::get_rows(), VFrame::get_u(), VFrame::get_v(), VFrame::get_w(), VFrame::get_y(), Asset::height, list_type, Asset::path, path_list, RENDERFARM_FS_PREFIX, VFrame::set_compressed_size(), temp, ArrayList< TYPE >::total, Asset::use_header, ArrayList< TYPE >::values, and Asset::width.

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 | ( | ) |
Definition at line 146 of file filelist.C.
References FileBase::asset, BCTEXTLEN, fclose(), fopen(), Asset::frame_rate, fwrite(), Asset::height, list_prefix, Asset::path, path_list, RENDERFARM_FS_PREFIX, ArrayList< TYPE >::total, ArrayList< TYPE >::values, and Asset::width.
Referenced by close_file().

| 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.

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

| int FileList::get_units | ( | ) |
Definition at line 526 of file filelist.C.
References LoadServer::get_total_clients(), and writer.

| FrameWriterUnit * FileList::get_unit | ( | int | number | ) |
Definition at line 532 of file filelist.C.
References LoadServer::get_client(), and writer.

| 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.
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().
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().
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().
char* FileList::list_prefix [private] |
char* FileList::file_extension [private] |
int FileList::frame_type [private] |
int FileList::list_type [private] |
Definition at line 73 of file filelist.h.
Referenced by close_file(), create_path(), open_file(), and read_frame().
Mutex* FileList::table_lock [private] |
Definition at line 74 of file filelist.h.
Referenced by add_return_value(), create_path(), FileList(), and ~FileList().
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().
int FileList::return_value [private] |
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] |
int FileList::number_digits [private] |
1.5.5