#include <vdevicebuz.h>
Inherits VDeviceBase.

Definition at line 50 of file vdevicebuz.h.
| VDeviceBUZ::VDeviceBUZ | ( | VideoDevice * | device | ) |
Definition at line 195 of file vdevicebuz.C.
References ArrayList< TYPE >::append(), render_strategies, reset_parameters(), and tuner_lock.

| VDeviceBUZ::~VDeviceBUZ | ( | ) |
Definition at line 203 of file vdevicebuz.C.
References close_all(), and tuner_lock.

| int VDeviceBUZ::open_input | ( | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 324 of file vdevicebuz.C.
References VideoDevice::channel, VDeviceBase::device, VideoDevice::picture, PictureConfig::use_brightness, PictureConfig::use_color, PictureConfig::use_contrast, PictureConfig::use_hue, Channel::use_input, Channel::use_norm, and PictureConfig::use_whiteness.
| int VDeviceBUZ::open_output | ( | ) | [virtual] |
| int VDeviceBUZ::close_all | ( | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 292 of file vdevicebuz.C.
References close_input_core(), close_output_core(), frame_buffer, and reset_parameters().
Referenced by ~VDeviceBUZ().

| int VDeviceBUZ::read_buffer | ( | VFrame * | frame | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 436 of file vdevicebuz.C.
References VFrame::allocate_compressed_data(), Timer::delay(), VDeviceBase::device, VDeviceBUZInput::get_buffer(), VFrame::get_data(), input_thread, jvideo_fd, Mutex::lock(), memcpy, mjpeg_get_field2(), VideoDevice::odd_field_first, open_input_core(), VDeviceBUZInput::put_buffer(), VFrame::set_compressed_size(), tuner_lock, and Mutex::unlock().

Reimplemented from VDeviceBase.
Definition at line 662 of file vdevicebuz.C.
References VFrame::allocate_compressed_data(), BC_COMPRESSED, breq, VideoOutConfig::buz_swap_fields, BUZIOC_QBUF_PLAY, buz_requestbuffers::count, VideoDevice::cpus, VDeviceBase::device, VFrame::get_color_model(), VFrame::get_compressed_size(), VFrame::get_data(), VFrame::get_rows(), VFrame::get_u(), VFrame::get_v(), VFrame::get_y(), jvideo_fd, Mutex::lock(), memcpy, mjpeg, mjpeg_compress(), mjpeg_get_field2(), mjpeg_new(), mjpeg_output_buffer(), mjpeg_output_size(), mjpeg_set_float(), mjpeg_set_quality(), open_output_core(), VideoDevice::out_config, VideoDevice::out_h, VideoDevice::out_w, output_buffer, output_number, VideoDevice::quality, VFrame::set_compressed_size(), buz_requestbuffers::size, temp_frame, total_loops, tuner_lock, and Mutex::unlock().

| int VDeviceBUZ::reset_parameters | ( | ) |
Definition at line 209 of file vdevicebuz.C.
References brightness, color, contrast, frame_allocated, frame_buffer, frame_size, hue, input_buffer, input_error, input_thread, jvideo_fd, last_frame_no, mjpeg, output_buffer, output_number, temp_frame, total_loops, user_frame, and whiteness.
Referenced by close_all(), and VDeviceBUZ().
| ArrayList< int > * VDeviceBUZ::get_render_strategies | ( | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 771 of file vdevicebuz.C.
References render_strategies.
| int VDeviceBUZ::set_channel | ( | Channel * | channel | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 345 of file vdevicebuz.C.
References close_input_core(), close_output_core(), VDeviceBase::device, Mutex::lock(), open_input_core(), open_output_core(), VideoDevice::r, tuner_lock, and Mutex::unlock().

| int VDeviceBUZ::get_norm | ( | int | norm | ) |
Definition at line 426 of file vdevicebuz.C.
References NTSC, PAL, and SECAM.
Referenced by open_input_core(), and open_output_core().
Definition at line 311 of file vdevicebuz.C.
References ArrayList< TYPE >::append(), COMPOSITE_TEXT, Channel::device_name, and SVIDEO_TEXT.
Referenced by open_input_core(), and PrefsChannelPicker::PrefsChannelPicker().

| int VDeviceBUZ::set_picture | ( | PictureConfig * | picture | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 373 of file vdevicebuz.C.
References PictureConfig::brightness, brightness, close_input_core(), close_output_core(), PictureConfig::color, color, PictureConfig::contrast, contrast, VDeviceBase::device, PictureConfig::hue, hue, Mutex::lock(), open_input_core(), open_output_core(), VideoDevice::r, tuner_lock, Mutex::unlock(), PictureConfig::whiteness, and whiteness.

| int VDeviceBUZ::get_best_colormodel | ( | int | colormodel | ) |
Definition at line 368 of file vdevicebuz.C.
| void VDeviceBUZ::new_output_buffer | ( | VFrame * | output, | |
| int | colormodel | |||
| ) |
Definition at line 736 of file vdevicebuz.C.
References BC_COMPRESSED, VDeviceBase::device, VFrame::get_color_model(), VideoDevice::out_h, VideoDevice::out_w, VFrame::set_shm_offset(), and user_frame.

| int VDeviceBUZ::open_input_core | ( | Channel * | channel | ) | [private] |
Definition at line 482 of file vdevicebuz.C.
References buz_params::APP_data, buz_params::APP_len, bparm, breq, brightness, VideoInConfig::buz_in_device, BUZIOC_G_PARAMS, BUZIOC_QBUF_CAPT, BUZIOC_REQBUFS, BUZIOC_S_PARAMS, VideoInConfig::capture_length, color, contrast, buz_requestbuffers::count, buz_params::decimation, VDeviceBase::device, buz_params::field_per_buff, fprintf, get_inputs(), get_norm(), VideoInConfig::h, buz_params::HorDcm, hue, buz_params::img_height, buz_params::img_width, buz_params::img_x, buz_params::img_y, VideoDevice::in_config, Channel::input, input_buffer, INPUT_BUFFER_SIZE, VideoDevice::input_sources, input_thread, jvideo_fd, Channel::norm, buz_params::odd_even, VideoDevice::quality, buz_params::quality, buz_requestbuffers::size, VDeviceBUZInput::start(), buz_params::TmpDcm, VDeviceBUZInput, buz_params::VerDcm, video_channel, VideoInConfig::w, and whiteness.
Referenced by read_buffer(), set_channel(), and set_picture().

| int VDeviceBUZ::close_input_core | ( | ) | [private] |
Definition at line 232 of file vdevicebuz.C.
References breq, buz_requestbuffers::count, VDeviceBase::device, input_buffer, input_thread, jvideo_fd, VideoDevice::r, and buz_requestbuffers::size.
Referenced by close_all(), set_channel(), and set_picture().
| int VDeviceBUZ::open_output_core | ( | Channel * | channel | ) | [private] |
Definition at line 604 of file vdevicebuz.C.
References bparm, breq, VideoOutConfig::buz_out_device, BUZIOC_G_PARAMS, BUZIOC_REQBUFS, BUZIOC_S_PARAMS, buz_requestbuffers::count, buz_params::decimation, VDeviceBase::device, buz_params::field_per_buff, get_norm(), buz_params::HorDcm, buz_params::img_height, buz_params::img_width, buz_params::img_x, buz_params::img_y, Channel::input, INPUT_BUFFER_SIZE, jvideo_fd, Channel::norm, buz_params::odd_even, VideoDevice::out_config, VideoDevice::out_h, VideoDevice::out_w, output_buffer, output_number, buz_requestbuffers::size, buz_params::TmpDcm, total_loops, buz_params::VerDcm, and video_channel.
Referenced by set_channel(), set_picture(), and write_buffer().

| int VDeviceBUZ::close_output_core | ( | ) | [private] |
Definition at line 255 of file vdevicebuz.C.
References breq, buz_requestbuffers::count, VDeviceBase::device, jvideo_fd, mjpeg, mjpeg_delete(), output_buffer, buz_requestbuffers::size, temp_frame, user_frame, and VideoDevice::w.
Referenced by close_all(), set_channel(), and set_picture().

friend class VDeviceBUZInput [friend] |
int VDeviceBUZ::jvideo_fd [private] |
Definition at line 80 of file vdevicebuz.h.
Referenced by close_input_core(), close_output_core(), open_input_core(), open_output_core(), read_buffer(), reset_parameters(), VDeviceBUZInput::run(), and write_buffer().
char* VDeviceBUZ::input_buffer [private] |
Definition at line 81 of file vdevicebuz.h.
Referenced by close_input_core(), open_input_core(), reset_parameters(), and VDeviceBUZInput::run().
char * VDeviceBUZ::frame_buffer [private] |
char * VDeviceBUZ::output_buffer [private] |
Definition at line 81 of file vdevicebuz.h.
Referenced by close_output_core(), open_output_core(), reset_parameters(), and write_buffer().
long VDeviceBUZ::frame_size [private] |
long VDeviceBUZ::frame_allocated [private] |
int VDeviceBUZ::input_error [private] |
long VDeviceBUZ::last_frame_no [private] |
ArrayList<int> VDeviceBUZ::render_strategies [private] |
Definition at line 86 of file vdevicebuz.h.
Referenced by get_render_strategies(), and VDeviceBUZ().
VFrame* VDeviceBUZ::temp_frame [private] |
Definition at line 88 of file vdevicebuz.h.
Referenced by close_output_core(), reset_parameters(), and write_buffer().
VFrame* VDeviceBUZ::user_frame [private] |
Definition at line 90 of file vdevicebuz.h.
Referenced by close_output_core(), new_output_buffer(), and reset_parameters().
mjpeg_t* VDeviceBUZ::mjpeg [private] |
Definition at line 91 of file vdevicebuz.h.
Referenced by close_output_core(), reset_parameters(), and write_buffer().
Mutex* VDeviceBUZ::tuner_lock [private] |
Definition at line 92 of file vdevicebuz.h.
Referenced by read_buffer(), set_channel(), set_picture(), VDeviceBUZ(), write_buffer(), and ~VDeviceBUZ().
VDeviceBUZInput* VDeviceBUZ::input_thread [private] |
Definition at line 93 of file vdevicebuz.h.
Referenced by close_input_core(), open_input_core(), read_buffer(), and reset_parameters().
struct buz_params VDeviceBUZ::bparm [read, private] |
Definition at line 95 of file vdevicebuz.h.
Referenced by open_input_core(), and open_output_core().
struct buz_requestbuffers VDeviceBUZ::breq [read, private] |
Definition at line 96 of file vdevicebuz.h.
Referenced by close_input_core(), close_output_core(), open_input_core(), open_output_core(), VDeviceBUZInput::run(), and write_buffer().
int VDeviceBUZ::total_loops [private] |
Definition at line 98 of file vdevicebuz.h.
Referenced by open_output_core(), reset_parameters(), and write_buffer().
int VDeviceBUZ::output_number [private] |
Definition at line 100 of file vdevicebuz.h.
Referenced by open_output_core(), reset_parameters(), and write_buffer().
int VDeviceBUZ::brightness [private] |
Definition at line 102 of file vdevicebuz.h.
Referenced by open_input_core(), reset_parameters(), and set_picture().
int VDeviceBUZ::hue [private] |
Definition at line 103 of file vdevicebuz.h.
Referenced by open_input_core(), reset_parameters(), and set_picture().
int VDeviceBUZ::color [private] |
Definition at line 104 of file vdevicebuz.h.
Referenced by open_input_core(), reset_parameters(), and set_picture().
int VDeviceBUZ::contrast [private] |
Definition at line 105 of file vdevicebuz.h.
Referenced by open_input_core(), reset_parameters(), and set_picture().
int VDeviceBUZ::whiteness [private] |
Definition at line 106 of file vdevicebuz.h.
Referenced by open_input_core(), reset_parameters(), and set_picture().
1.5.5