DeviceDVBInput Class Reference

#include <devicedvbinput.h>

Inherits GarbageObject.

Collaboration diagram for DeviceDVBInput:

Collaboration graph
[legend]

Public Member Functions

 DeviceDVBInput (MWindow *mwindow, VideoInConfig *config)
 ~DeviceDVBInput ()
void reset ()
int close ()
int try_tuner ()
int reopen_tuner ()
int get_signal_strength (int channel, int tuner_id)
int read_stream (unsigned char *data, int size)
int read_tuner (unsigned char *data, int size)
int write_tuner (unsigned char *data, int size)
int write_int64 (int64_t value)
int64_t read_int64 (int *error)

Static Public Member Functions

static DeviceDVBInputget_input_thread (MWindow *mwindow)
static void put_input_thread (MWindow *mwindow)

Data Fields

VideoInConfigconfig
int tuner_fd
int want_signal
Conditionsignal_lock
int lock_result
int signal_result
int channel_changed
MWindowmwindow
Channelchannel

Detailed Description

Definition at line 17 of file devicedvbinput.h.


Constructor & Destructor Documentation

DeviceDVBInput::DeviceDVBInput ( MWindow mwindow,
VideoInConfig config 
)

Definition at line 24 of file devicedvbinput.C.

References channel, reset(), and signal_lock.

Referenced by get_input_thread().

Here is the call graph for this function:

DeviceDVBInput::~DeviceDVBInput (  ) 

Definition at line 34 of file devicedvbinput.C.

References channel, close(), MWindow::dvb_input, mwindow, and signal_lock.

Here is the call graph for this function:


Member Function Documentation

void DeviceDVBInput::reset (  ) 

Definition at line 46 of file devicedvbinput.C.

References channel_changed, lock_result, signal_lock, signal_result, tuner_fd, and want_signal.

Referenced by DeviceDVBInput().

int DeviceDVBInput::close (  ) 

Definition at line 87 of file devicedvbinput.C.

References tuner_fd.

Referenced by read_stream(), read_tuner(), reopen_tuner(), try_tuner(), and ~DeviceDVBInput().

int DeviceDVBInput::try_tuner (  ) 

int DeviceDVBInput::reopen_tuner (  ) 

Definition at line 136 of file devicedvbinput.C.

References Channel::audio_pid, channel, close(), config, VideoInConfig::dvb_in_host, Channel::entry, Channel::freqtable, read_int64(), try_tuner(), tuner_fd, Channel::video_pid, and write_int64().

Referenced by read_stream().

Here is the call graph for this function:

int DeviceDVBInput::get_signal_strength ( int  channel,
int  tuner_id 
)

Definition at line 201 of file devicedvbinput.C.

References Condition::lock(), lock_result, signal_lock, signal_result, and want_signal.

Here is the call graph for this function:

int DeviceDVBInput::read_stream ( unsigned char *  data,
int  size 
)

Definition at line 283 of file devicedvbinput.C.

References channel_changed, close(), reopen_tuner(), and tuner_fd.

Here is the call graph for this function:

int DeviceDVBInput::read_tuner ( unsigned char *  data,
int  size 
)

Definition at line 305 of file devicedvbinput.C.

References close(), offset, and tuner_fd.

Referenced by read_int64().

Here is the call graph for this function:

int DeviceDVBInput::write_tuner ( unsigned char *  data,
int  size 
)

Definition at line 278 of file devicedvbinput.C.

References tuner_fd.

Referenced by write_int64().

int DeviceDVBInput::write_int64 ( int64_t  value  ) 

Definition at line 255 of file devicedvbinput.C.

References write_tuner().

Referenced by reopen_tuner(), and try_tuner().

Here is the call graph for this function:

int64_t DeviceDVBInput::read_int64 ( int *  error  ) 

Definition at line 230 of file devicedvbinput.C.

References read_tuner().

Referenced by reopen_tuner(), and try_tuner().

Here is the call graph for this function:

DeviceDVBInput * DeviceDVBInput::get_input_thread ( MWindow mwindow  )  [static]

void DeviceDVBInput::put_input_thread ( MWindow mwindow  )  [static]

Definition at line 79 of file devicedvbinput.C.

References Garbage::delete_object(), MWindow::dvb_input, MWindow::dvb_input_lock, Mutex::lock(), and Mutex::unlock().

Referenced by VDeviceDVB::close_all(), and AudioDVB::close_all().

Here is the call graph for this function:


Field Documentation

Definition at line 52 of file devicedvbinput.h.

Referenced by reopen_tuner(), and try_tuner().

Definition at line 54 of file devicedvbinput.h.

Referenced by get_signal_strength(), and reset().

Definition at line 55 of file devicedvbinput.h.

Referenced by DeviceDVBInput(), get_signal_strength(), reset(), and ~DeviceDVBInput().

Definition at line 56 of file devicedvbinput.h.

Referenced by get_signal_strength(), and reset().

Definition at line 57 of file devicedvbinput.h.

Referenced by get_signal_strength(), and reset().

Definition at line 58 of file devicedvbinput.h.

Referenced by read_stream(), and reset().

Definition at line 59 of file devicedvbinput.h.

Referenced by ~DeviceDVBInput().

Definition at line 60 of file devicedvbinput.h.

Referenced by DeviceDVBInput(), reopen_tuner(), and ~DeviceDVBInput().


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

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