ResourceThread Class Reference

#include <resourcethread.h>

Inherits Thread.

Collaboration diagram for ResourceThread:

Collaboration graph
[legend]

Public Member Functions

 ResourceThread (MWindow *mwindow)
 ~ResourceThread ()
void create_objects ()
void stop_draw (int reset)
void start_draw ()
void add_picon (ResourcePixmap *pixmap, int picon_x, int picon_y, int picon_w, int picon_h, double frame_rate, int64_t position, int layer, Asset *asset)
void add_wave (ResourcePixmap *pixmap, Asset *asset, int x, int channel, int64_t source_start, int64_t source_end)
void run ()
void do_video (VResourceThreadItem *item)
void do_audio (AResourceThreadItem *item)

Data Fields

MWindowmwindow
Conditiondraw_lock
Mutexitem_lock
ArrayList< ResourceThreadItem * > items
int interrupted
VFrametemp_picon
VFrametemp_picon2
double * audio_buffer
int audio_channel
int64_t audio_start
int audio_samples
int audio_asset_id
Timertimer
int prev_x
double prev_h
double prev_l
int operation_count

Detailed Description

Definition at line 83 of file resourcethread.h.


Constructor & Destructor Documentation

ResourceThread::ResourceThread ( MWindow mwindow  ) 

ResourceThread::~ResourceThread (  ) 

Definition at line 130 of file resourcethread.C.

References audio_buffer, draw_lock, item_lock, temp_picon, temp_picon2, and timer.


Member Function Documentation

void ResourceThread::create_objects (  ) 

Definition at line 141 of file resourcethread.C.

References Thread::start().

Referenced by TrackCanvas::create_objects().

Here is the call graph for this function:

void ResourceThread::stop_draw ( int  reset  ) 

Definition at line 200 of file resourcethread.C.

References interrupted, item_lock, items, Mutex::lock(), operation_count, prev_h, prev_l, prev_x, ArrayList< TYPE >::remove_all_objects(), and Mutex::unlock().

Referenced by TrackCanvas::draw_resources().

Here is the call graph for this function:

void ResourceThread::start_draw (  ) 

void ResourceThread::add_picon ( ResourcePixmap pixmap,
int  picon_x,
int  picon_y,
int  picon_w,
int  picon_h,
double  frame_rate,
int64_t  position,
int  layer,
Asset asset 
)

Definition at line 146 of file resourcethread.C.

References ArrayList< TYPE >::append(), item_lock, items, Mutex::lock(), operation_count, and Mutex::unlock().

Referenced by ResourcePixmap::draw_video_resource().

Here is the call graph for this function:

void ResourceThread::add_wave ( ResourcePixmap pixmap,
Asset asset,
int  x,
int  channel,
int64_t  source_start,
int64_t  source_end 
)

Definition at line 171 of file resourcethread.C.

References ArrayList< TYPE >::append(), item_lock, items, Mutex::lock(), operation_count, and Mutex::unlock().

Referenced by ResourcePixmap::draw_audio_source().

Here is the call graph for this function:

void ResourceThread::run (  )  [virtual]

void ResourceThread::do_video ( VResourceThreadItem item  ) 

void ResourceThread::do_audio ( AResourceThreadItem item  ) 


Field Documentation

Definition at line 120 of file resourcethread.h.

Referenced by do_audio(), and do_video().

Definition at line 121 of file resourcethread.h.

Referenced by ResourceThread(), run(), start_draw(), and ~ResourceThread().

Definition at line 123 of file resourcethread.h.

Referenced by add_picon(), add_wave(), ResourceThread(), run(), stop_draw(), and ~ResourceThread().

Definition at line 124 of file resourcethread.h.

Referenced by add_picon(), add_wave(), run(), start_draw(), and stop_draw().

Definition at line 125 of file resourcethread.h.

Referenced by do_audio(), do_video(), ResourceThread(), run(), start_draw(), and stop_draw().

Definition at line 126 of file resourcethread.h.

Referenced by do_video(), ResourceThread(), and ~ResourceThread().

Definition at line 127 of file resourcethread.h.

Referenced by do_video(), ResourceThread(), and ~ResourceThread().

Definition at line 130 of file resourcethread.h.

Referenced by do_audio(), ResourceThread(), and ~ResourceThread().

Definition at line 131 of file resourcethread.h.

Referenced by do_audio().

Definition at line 132 of file resourcethread.h.

Referenced by do_audio().

Definition at line 133 of file resourcethread.h.

Referenced by do_audio().

Definition at line 134 of file resourcethread.h.

Referenced by do_audio().

Definition at line 136 of file resourcethread.h.

Referenced by do_audio(), ResourceThread(), start_draw(), and ~ResourceThread().

Definition at line 138 of file resourcethread.h.

Referenced by do_audio(), ResourceThread(), and stop_draw().

Definition at line 139 of file resourcethread.h.

Referenced by do_audio(), ResourceThread(), and stop_draw().

Definition at line 140 of file resourcethread.h.

Referenced by do_audio(), ResourceThread(), and stop_draw().

Definition at line 142 of file resourcethread.h.

Referenced by add_picon(), add_wave(), do_audio(), do_video(), ResourceThread(), and stop_draw().


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

Generated on Mon Apr 28 14:41:12 2008 for Cinelerra by  doxygen 1.5.5