#include <devicedvbinput.h>
Inherits GarbageObject.

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 DeviceDVBInput * | get_input_thread (MWindow *mwindow) |
| static void | put_input_thread (MWindow *mwindow) |
Data Fields | |
| VideoInConfig * | config |
| int | tuner_fd |
| int | want_signal |
| Condition * | signal_lock |
| int | lock_result |
| int | signal_result |
| int | channel_changed |
| MWindow * | mwindow |
| Channel * | channel |
Definition at line 17 of file devicedvbinput.h.
| 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().

| DeviceDVBInput::~DeviceDVBInput | ( | ) |
Definition at line 34 of file devicedvbinput.C.
References channel, close(), MWindow::dvb_input, mwindow, and signal_lock.

| 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 | ( | ) |
Definition at line 98 of file devicedvbinput.C.
References close(), config, VideoInConfig::dvb_in_host, VideoInConfig::dvb_in_port, error(), RenderFarmServerThread::open_client(), read_int64(), RENDERFARM_TUNER, tuner_fd, and write_int64().
Referenced by reopen_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().

| 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.

| 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.

| 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().

| int DeviceDVBInput::write_tuner | ( | unsigned char * | data, | |
| int | size | |||
| ) |
| 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().

| 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().

| DeviceDVBInput * DeviceDVBInput::get_input_thread | ( | MWindow * | mwindow | ) | [static] |
Definition at line 56 of file devicedvbinput.C.
References GarbageObject::add_user(), DeviceDVBInput(), MWindow::dvb_input, MWindow::dvb_input_lock, MWindow::edl, Mutex::lock(), EDL::session, Mutex::unlock(), and EDLSession::vconfig_in.
Referenced by VDeviceDVB::open_input(), and AudioDVB::open_input().

| 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().

Definition at line 53 of file devicedvbinput.h.
Referenced by close(), read_stream(), read_tuner(), reopen_tuner(), reset(), try_tuner(), and write_tuner().
Definition at line 55 of file devicedvbinput.h.
Referenced by DeviceDVBInput(), get_signal_strength(), reset(), and ~DeviceDVBInput().
Definition at line 60 of file devicedvbinput.h.
Referenced by DeviceDVBInput(), reopen_tuner(), and ~DeviceDVBInput().
1.5.5