DVBTune Class Reference

#include <dvbtune.h>

Inherits TunerServer.

Collaboration diagram for DVBTune:

Collaboration graph
[legend]

Public Member Functions

 DVBTune (RenderFarmClientThread *client)
 ~DVBTune ()
void reset ()
int open_tuner ()
int close_tuner ()
int get_signal_strength (int *current_power, int *current_lock)
int read_data (unsigned char *data, int size)

Data Fields

int frontend_fd
int audio_fd
int video_fd
int dvr_fd
Mutexbuffer_lock
unsigned char * buffer
int buffer_size
int buffer_allocated
DVBTuneThreadthread
DVBTuneStatusstatus
int has_lock

Detailed Description

Interface for digital tuners using DVB.

Definition at line 23 of file dvbtune.h.


Constructor & Destructor Documentation

DVBTune::DVBTune ( RenderFarmClientThread client  ) 

Definition at line 61 of file dvbtune.C.

References buffer_lock, and reset().

Here is the call graph for this function:

DVBTune::~DVBTune (  ) 

Definition at line 68 of file dvbtune.C.

References buffer, buffer_lock, status, and thread.


Member Function Documentation

void DVBTune::reset (  ) 

Definition at line 76 of file dvbtune.C.

References audio_fd, buffer, buffer_allocated, buffer_size, dvr_fd, frontend_fd, has_lock, status, thread, and video_fd.

Referenced by close_tuner(), and DVBTune().

int DVBTune::open_tuner (  )  [virtual]

These are overridden. Returns of 1 are considered errors.

Reimplemented from TunerServer.

Definition at line 90 of file dvbtune.C.

References audio_fd, BCTEXTLEN, catv_dvb, CLIP, dvr_fd, fprintf, frontend_fd, TunerServer::get_audio_pid(), TunerServer::get_channel(), TunerServer::get_device_number(), TunerServer::get_table(), TunerServer::get_video_pid(), ntsc_dvb, Thread::start(), status, TunerServer::table, thread, and video_fd.

Here is the call graph for this function:

int DVBTune::close_tuner (  )  [virtual]

Reimplemented from TunerServer.

Definition at line 256 of file dvbtune.C.

References audio_fd, buffer, dvr_fd, frontend_fd, reset(), status, thread, and video_fd.

Here is the call graph for this function:

int DVBTune::get_signal_strength ( int *  current_power,
int *  current_lock 
) [virtual]

Reimplemented from TunerServer.

Definition at line 273 of file dvbtune.C.

References has_lock.

int DVBTune::read_data ( unsigned char *  data,
int  size 
) [virtual]

Should return the number of bytes read.

Reimplemented from TunerServer.

Definition at line 290 of file dvbtune.C.

References buffer, buffer_lock, buffer_size, Mutex::lock(), memcpy, and Mutex::unlock().

Here is the call graph for this function:


Field Documentation

Definition at line 39 of file dvbtune.h.

Referenced by close_tuner(), open_tuner(), reset(), and DVBTuneStatus::run().

Definition at line 40 of file dvbtune.h.

Referenced by close_tuner(), open_tuner(), and reset().

Definition at line 41 of file dvbtune.h.

Referenced by close_tuner(), open_tuner(), and reset().

Definition at line 42 of file dvbtune.h.

Referenced by close_tuner(), open_tuner(), reset(), and DVBTuneThread::run().

Definition at line 44 of file dvbtune.h.

Referenced by DVBTune(), read_data(), DVBTuneThread::run(), and ~DVBTune().

unsigned char* DVBTune::buffer

Definition at line 45 of file dvbtune.h.

Referenced by close_tuner(), read_data(), reset(), DVBTuneThread::run(), and ~DVBTune().

Definition at line 46 of file dvbtune.h.

Referenced by read_data(), reset(), and DVBTuneThread::run().

Definition at line 47 of file dvbtune.h.

Referenced by reset(), and DVBTuneThread::run().

Definition at line 48 of file dvbtune.h.

Referenced by close_tuner(), open_tuner(), reset(), and ~DVBTune().

Definition at line 49 of file dvbtune.h.

Referenced by close_tuner(), open_tuner(), reset(), and ~DVBTune().

Definition at line 50 of file dvbtune.h.

Referenced by get_signal_strength(), reset(), DVBTuneStatus::run(), and DVBTuneThread::run().


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

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