VDeviceBUZInput Class Reference

#include <vdevicebuz.h>

Inherits Thread.

Collaboration diagram for VDeviceBUZInput:

Collaboration graph
[legend]

Public Member Functions

 VDeviceBUZInput (VDeviceBUZ *device)
 ~VDeviceBUZInput ()
void start ()
void run ()
void get_buffer (char **ptr, int *size)
void put_buffer ()
void increment_counter (int *counter)
void decrement_counter (int *counter)

Data Fields

VDeviceBUZdevice
char ** buffer
int * buffer_size
int total_buffers
int current_inbuffer
int current_outbuffer
Conditionoutput_lock
Mutexbuffer_lock
int done

Detailed Description

Definition at line 26 of file vdevicebuz.h.


Constructor & Destructor Documentation

VDeviceBUZInput::VDeviceBUZInput ( VDeviceBUZ device  ) 

VDeviceBUZInput::~VDeviceBUZInput (  ) 

Definition at line 52 of file vdevicebuz.C.

References buffer, buffer_lock, buffer_size, Thread::cancel(), done, Thread::join(), output_lock, Thread::running(), and total_buffers.

Here is the call graph for this function:


Member Function Documentation

void VDeviceBUZInput::start (  ) 

Reimplemented from Thread.

Definition at line 74 of file vdevicebuz.C.

References buffer, buffer_size, VideoInConfig::capture_length, VDeviceBase::device, device, VideoDevice::in_config, INPUT_BUFFER_SIZE, Thread::start(), and total_buffers.

Referenced by VDeviceBUZ::open_input_core().

Here is the call graph for this function:

void VDeviceBUZInput::run (  )  [virtual]

void VDeviceBUZInput::get_buffer ( char **  ptr,
int *  size 
)

Definition at line 135 of file vdevicebuz.C.

References buffer, buffer_lock, buffer_size, current_outbuffer, Mutex::lock(), output_lock, READ_TIMEOUT, Condition::timed_lock(), Condition::unlock(), and Mutex::unlock().

Referenced by VDeviceBUZ::read_buffer().

Here is the call graph for this function:

void VDeviceBUZInput::put_buffer (  ) 

Definition at line 161 of file vdevicebuz.C.

References buffer_lock, buffer_size, current_outbuffer, increment_counter(), Mutex::lock(), and Mutex::unlock().

Referenced by VDeviceBUZ::read_buffer().

Here is the call graph for this function:

void VDeviceBUZInput::increment_counter ( int *  counter  ) 

Definition at line 169 of file vdevicebuz.C.

References total_buffers.

Referenced by put_buffer(), and run().

void VDeviceBUZInput::decrement_counter ( int *  counter  ) 

Definition at line 175 of file vdevicebuz.C.

References total_buffers.


Field Documentation

Definition at line 37 of file vdevicebuz.h.

Referenced by run(), and start().

Definition at line 39 of file vdevicebuz.h.

Referenced by get_buffer(), run(), start(), VDeviceBUZInput(), and ~VDeviceBUZInput().

Definition at line 40 of file vdevicebuz.h.

Referenced by get_buffer(), put_buffer(), run(), start(), VDeviceBUZInput(), and ~VDeviceBUZInput().

Definition at line 42 of file vdevicebuz.h.

Referenced by run(), and VDeviceBUZInput().

Definition at line 43 of file vdevicebuz.h.

Referenced by get_buffer(), put_buffer(), and VDeviceBUZInput().

Definition at line 44 of file vdevicebuz.h.

Referenced by get_buffer(), run(), VDeviceBUZInput(), and ~VDeviceBUZInput().

Definition at line 45 of file vdevicebuz.h.

Referenced by get_buffer(), put_buffer(), run(), VDeviceBUZInput(), and ~VDeviceBUZInput().

Definition at line 46 of file vdevicebuz.h.

Referenced by run(), VDeviceBUZInput(), and ~VDeviceBUZInput().


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

Generated on Mon Apr 28 14:48:23 2008 for Cinelerra by  doxygen 1.5.5