Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

VDeviceBUZ Class Reference

#include <vdevicebuz.h>

Inheritance diagram for VDeviceBUZ:

VDeviceBase List of all members.

Public Member Functions

 VDeviceBUZ (VideoDevice *device)
 ~VDeviceBUZ ()
int open_input ()
int open_output ()
int close_all ()
int read_buffer (VFrame *frame)
int write_buffer (VFrame **frames, EDL *edl)
int reset_parameters ()
ArrayList< int > * get_render_strategies ()
int set_channel (Channel *channel)
int get_norm (int norm)
int set_picture (PictureConfig *picture)
int get_best_colormodel (int colormodel)
void create_channeldb (ArrayList< Channel * > *channeldb)
void new_output_buffer (VFrame **outputs, int colormodel)

Static Public Member Functions

static void get_inputs (ArrayList< Channel * > *input_sources)

Private Member Functions

int open_input_core (Channel *channel)
int close_input_core ()
int open_output_core (Channel *channel)
int close_output_core ()

Private Attributes

int jvideo_fd
char * input_buffer
char * frame_buffer
char * output_buffer
long frame_size
long frame_allocated
int input_error
long last_frame_no
ArrayList< int > render_strategies
VFrame * temp_frame
VFrame * user_frame
mjpeg_t * mjpeg
Mutex * tuner_lock
VDeviceBUZInputinput_thread
buz_params bparm
buz_requestbuffers breq
int total_loops
int output_number
int brightness
int hue
int color
int contrast
int whiteness

Friends

class VDeviceBUZInput

Detailed Description

Definition at line 50 of file vdevicebuz.h.


Constructor & Destructor Documentation

VDeviceBUZ::VDeviceBUZ VideoDevice device  ) 
 

Definition at line 195 of file vdevicebuz.C.

References render_strategies, reset_parameters(), and tuner_lock.

VDeviceBUZ::~VDeviceBUZ  ) 
 

Definition at line 203 of file vdevicebuz.C.

References close_all(), and tuner_lock.


Member Function Documentation

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::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::close_output_core  )  [private]
 

Definition at line 255 of file vdevicebuz.C.

References breq, buz_requestbuffers::count, VDeviceBase::device, jvideo_fd, mjpeg, output_buffer, buz_requestbuffers::size, temp_frame, user_frame, and VideoDevice::w.

Referenced by close_all(), set_channel(), and set_picture().

void VDeviceBUZ::create_channeldb ArrayList< Channel * > *  channeldb  ) 
 

Definition at line 368 of file vdevicebuz.C.

int VDeviceBUZ::get_best_colormodel int  colormodel  ) 
 

void VDeviceBUZ::get_inputs ArrayList< Channel * > *  input_sources  )  [static]
 

Definition at line 311 of file vdevicebuz.C.

References COMPOSITE_TEXT, Channel::device_name, and SVIDEO_TEXT.

Referenced by open_input_core(), and PrefsChannelPicker::PrefsChannelPicker().

int VDeviceBUZ::get_norm int  norm  ) 
 

Definition at line 426 of file vdevicebuz.C.

References NTSC, PAL, SECAM, VIDEO_MODE_NTSC, VIDEO_MODE_PAL, and VIDEO_MODE_SECAM.

Referenced by open_input_core(), and open_output_core().

ArrayList< int > * VDeviceBUZ::get_render_strategies  )  [virtual]
 

Reimplemented from VDeviceBase.

Definition at line 771 of file vdevicebuz.C.

References render_strategies.

void VDeviceBUZ::new_output_buffer VFrame **  outputs,
int  colormodel
[virtual]
 

Reimplemented from VDeviceBase.

Definition at line 736 of file vdevicebuz.C.

References VDeviceBase::device, VideoDevice::out_h, VideoDevice::out_w, and user_frame.

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_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, video_picture::brightness, VideoInConfig::buz_in_device, BUZIOC_G_PARAMS, BUZIOC_QBUF_CAPT, BUZIOC_REQBUFS, BUZIOC_S_PARAMS, VideoInConfig::capture_length, video_channel::channel, color, video_picture::colour, contrast, video_picture::contrast, buz_requestbuffers::count, buz_params::decimation, VDeviceBase::device, buz_params::field_per_buff, get_inputs(), get_norm(), VideoInConfig::h, buz_params::HorDcm, hue, video_picture::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, video_channel::norm, buz_params::odd_even, VideoDevice::quality, buz_params::quality, buz_requestbuffers::size, VDeviceBUZInput::start(), buz_params::TmpDcm, VDeviceBUZInput, buz_params::VerDcm, VIDIOCGPICT, VIDIOCSCHAN, VIDIOCSPICT, VideoInConfig::w, whiteness, and video_picture::whiteness.

Referenced by read_buffer(), set_channel(), and set_picture().

int VDeviceBUZ::open_output  )  [virtual]
 

Reimplemented from VDeviceBase.

Definition at line 339 of file vdevicebuz.C.

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, video_channel::channel, 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, video_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 VIDIOCSCHAN.

Referenced by set_channel(), set_picture(), and write_buffer().

int VDeviceBUZ::read_buffer VFrame *  frame  )  [virtual]
 

Reimplemented from VDeviceBase.

Definition at line 436 of file vdevicebuz.C.

References VDeviceBase::device, VDeviceBUZInput::get_buffer(), input_thread, jvideo_fd, VideoDevice::odd_field_first, open_input_core(), VDeviceBUZInput::put_buffer(), and tuner_lock.

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

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, open_input_core(), open_output_core(), VideoDevice::r, and tuner_lock.

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, open_input_core(), open_output_core(), VideoDevice::r, tuner_lock, PictureConfig::whiteness, and whiteness.

int VDeviceBUZ::write_buffer VFrame **  frames,
EDL edl
[virtual]
 

Reimplemented from VDeviceBase.

Definition at line 662 of file vdevicebuz.C.

References breq, VideoOutConfig::buz_swap_fields, BUZIOC_QBUF_PLAY, buz_requestbuffers::count, VideoDevice::cpus, VDeviceBase::device, jvideo_fd, mjpeg, open_output_core(), VideoDevice::out_config, VideoDevice::out_h, VideoDevice::out_w, output_buffer, output_number, VideoDevice::quality, buz_requestbuffers::size, temp_frame, total_loops, and tuner_lock.


Friends And Related Function Documentation

friend class VDeviceBUZInput [friend]
 

Definition at line 56 of file vdevicebuz.h.

Referenced by open_input_core().


Member Data Documentation

struct buz_params VDeviceBUZ::bparm [private]
 

Definition at line 95 of file vdevicebuz.h.

Referenced by open_input_core(), and open_output_core().

struct buz_requestbuffers VDeviceBUZ::breq [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::brightness [private]
 

Definition at line 102 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().

long VDeviceBUZ::frame_allocated [private]
 

Definition at line 82 of file vdevicebuz.h.

Referenced by reset_parameters().

char * VDeviceBUZ::frame_buffer [private]
 

Definition at line 81 of file vdevicebuz.h.

Referenced by close_all(), and reset_parameters().

long VDeviceBUZ::frame_size [private]
 

Definition at line 82 of file vdevicebuz.h.

Referenced by reset_parameters().

int VDeviceBUZ::hue [private]
 

Definition at line 103 of file vdevicebuz.h.

Referenced by open_input_core(), reset_parameters(), and set_picture().

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

int VDeviceBUZ::input_error [private]
 

Definition at line 83 of file vdevicebuz.h.

Referenced by reset_parameters().

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

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

long VDeviceBUZ::last_frame_no [private]
 

Definition at line 85 of file vdevicebuz.h.

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

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

int VDeviceBUZ::output_number [private]
 

Definition at line 100 of file vdevicebuz.h.

Referenced by open_output_core(), reset_parameters(), and write_buffer().

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

int VDeviceBUZ::total_loops [private]
 

Definition at line 98 of file vdevicebuz.h.

Referenced by open_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().

VFrame* VDeviceBUZ::user_frame [private]
 

Definition at line 90 of file vdevicebuz.h.

Referenced by close_output_core(), new_output_buffer(), and reset_parameters().

int VDeviceBUZ::whiteness [private]
 

Definition at line 106 of file vdevicebuz.h.

Referenced by open_input_core(), reset_parameters(), and set_picture().


The documentation for this class was generated from the following files:
Generated on Sun Jan 8 13:39:27 2006 for Cinelerra-svn by  doxygen 1.4.4