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

FileThread Class Reference

#include <filethread.h>

List of all members.

Public Member Functions

 FileThread (File *file, int do_audio, int do_video)
 ~FileThread ()
void create_objects (File *file, int do_audio, int do_video)
void delete_objects ()
void reset ()
int start_writing ()
int start_writing (long buffer_size, int color_model, int ring_buffers, int compressed)
int stop_writing ()
int write_buffer (long size)
double ** get_audio_buffer ()
VFrame *** get_video_buffer ()
void run ()
int swap_buffer ()

Public Attributes

double *** audio_buffer
VFrame **** video_buffer
long * output_size
int * is_compressed
Condition ** output_lock
Condition ** input_lock
Mutex * file_lock
int current_buffer
int local_buffer
int * last_buffer
int return_value
int do_audio
int do_video
Filefile
int ring_buffers
int buffer_size
int color_model
int compressed


Detailed Description

Definition at line 11 of file filethread.h.


Constructor & Destructor Documentation

FileThread::FileThread File file,
int  do_audio,
int  do_video
 

Definition at line 11 of file filethread.C.

References create_objects(), and reset().

FileThread::~FileThread  ) 
 

Definition at line 20 of file filethread.C.

References delete_objects(), and file_lock.


Member Function Documentation

void FileThread::create_objects File file,
int  do_audio,
int  do_video
 

Definition at line 40 of file filethread.C.

References file_lock.

Referenced by FileThread().

void FileThread::delete_objects  ) 
 

Definition at line 51 of file filethread.C.

References input_lock, last_buffer, output_lock, output_size, reset(), and ring_buffers.

Referenced by ~FileThread().

double ** FileThread::get_audio_buffer  ) 
 

Definition at line 307 of file filethread.C.

References audio_buffer, current_buffer, input_lock, and swap_buffer().

Referenced by File::get_audio_buffer().

VFrame *** FileThread::get_video_buffer  ) 
 

Definition at line 315 of file filethread.C.

References current_buffer, input_lock, and swap_buffer().

Referenced by File::get_video_buffer().

void FileThread::reset  ) 
 

Definition at line 29 of file filethread.C.

References audio_buffer, input_lock, last_buffer, output_lock, and output_size.

Referenced by delete_objects(), and FileThread().

void FileThread::run  ) 
 

Definition at line 81 of file filethread.C.

References File::asset, audio_buffer, compressed, do_audio, do_video, file, file_lock, input_lock, last_buffer, Asset::layers, local_buffer, output_lock, output_size, return_value, ring_buffers, File::write_compressed_frame(), File::write_frames(), and File::write_samples().

int FileThread::start_writing long  buffer_size,
int  color_model,
int  ring_buffers,
int  compressed
 

Definition at line 201 of file filethread.C.

References File::asset, audio_buffer, Asset::channels, current_buffer, do_audio, do_video, file, file_lock, Asset::height, input_lock, last_buffer, Asset::layers, local_buffer, output_lock, output_size, return_value, and Asset::width.

int FileThread::start_writing  ) 
 

Referenced by File::start_audio_thread(), and File::start_video_thread().

int FileThread::stop_writing  ) 
 

Definition at line 142 of file filethread.C.

References File::asset, audio_buffer, buffer_size, Asset::channels, current_buffer, do_audio, do_video, file, file_lock, input_lock, last_buffer, Asset::layers, output_lock, ring_buffers, and swap_buffer().

Referenced by File::stop_audio_thread(), and File::stop_video_thread().

int FileThread::swap_buffer  ) 
 

Definition at line 333 of file filethread.C.

References current_buffer, and ring_buffers.

Referenced by get_audio_buffer(), get_video_buffer(), and stop_writing().

int FileThread::write_buffer long  size  ) 
 

Definition at line 323 of file filethread.C.

References current_buffer, output_lock, output_size, and return_value.

Referenced by File::write_audio_buffer(), and File::write_video_buffer().


Member Data Documentation

double*** FileThread::audio_buffer
 

Definition at line 41 of file filethread.h.

Referenced by get_audio_buffer(), reset(), run(), start_writing(), and stop_writing().

int FileThread::buffer_size
 

Definition at line 58 of file filethread.h.

Referenced by stop_writing().

int FileThread::color_model
 

Definition at line 60 of file filethread.h.

Referenced by FileTIFF::write_frame().

int FileThread::compressed
 

Definition at line 62 of file filethread.h.

Referenced by run().

int FileThread::current_buffer
 

Definition at line 50 of file filethread.h.

Referenced by get_audio_buffer(), get_video_buffer(), start_writing(), stop_writing(), swap_buffer(), and write_buffer().

int FileThread::do_audio
 

Definition at line 54 of file filethread.h.

Referenced by run(), start_writing(), and stop_writing().

int FileThread::do_video
 

Definition at line 55 of file filethread.h.

Referenced by run(), start_writing(), and stop_writing().

File* FileThread::file
 

Definition at line 56 of file filethread.h.

Referenced by run(), start_writing(), and stop_writing().

Mutex* FileThread::file_lock
 

Definition at line 49 of file filethread.h.

Referenced by create_objects(), run(), start_writing(), stop_writing(), and ~FileThread().

Condition ** FileThread::input_lock
 

Definition at line 47 of file filethread.h.

Referenced by delete_objects(), get_audio_buffer(), get_video_buffer(), reset(), run(), start_writing(), and stop_writing().

int* FileThread::is_compressed
 

Definition at line 46 of file filethread.h.

int* FileThread::last_buffer
 

Definition at line 52 of file filethread.h.

Referenced by delete_objects(), reset(), run(), start_writing(), and stop_writing().

int FileThread::local_buffer
 

Definition at line 51 of file filethread.h.

Referenced by run(), and start_writing().

Condition** FileThread::output_lock
 

Definition at line 47 of file filethread.h.

Referenced by delete_objects(), reset(), run(), start_writing(), stop_writing(), and write_buffer().

long* FileThread::output_size
 

Definition at line 44 of file filethread.h.

Referenced by delete_objects(), reset(), run(), start_writing(), and write_buffer().

int FileThread::return_value
 

Definition at line 53 of file filethread.h.

Referenced by run(), start_writing(), and write_buffer().

int FileThread::ring_buffers
 

Definition at line 57 of file filethread.h.

Referenced by delete_objects(), run(), stop_writing(), and swap_buffer().

VFrame**** FileThread::video_buffer
 

Definition at line 43 of file filethread.h.


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