#include <dvbtune.h>
Inherits TunerServer.

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 |
| Mutex * | buffer_lock |
| unsigned char * | buffer |
| int | buffer_size |
| int | buffer_allocated |
| DVBTuneThread * | thread |
| DVBTuneStatus * | status |
| int | has_lock |
Definition at line 23 of file dvbtune.h.
| DVBTune::DVBTune | ( | RenderFarmClientThread * | client | ) |
Definition at line 61 of file dvbtune.C.
References buffer_lock, and reset().

| DVBTune::~DVBTune | ( | ) |
| 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.

| int DVBTune::close_tuner | ( | ) | [virtual] |
| int DVBTune::get_signal_strength | ( | int * | current_power, | |
| int * | current_lock | |||
| ) | [virtual] |
| 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().

Definition at line 39 of file dvbtune.h.
Referenced by close_tuner(), open_tuner(), reset(), and DVBTuneStatus::run().
| int DVBTune::dvr_fd |
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 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().
1.5.5