#include <vdevicev4l.h>
Inherits VDeviceBase.

Definition at line 8 of file vdevicev4l.h.
| VDeviceV4L::VDeviceV4L | ( | VideoDevice * | device | ) |
Definition at line 28 of file vdevicev4l.C.
References initialize().

| VDeviceV4L::~VDeviceV4L | ( | ) |
Definition at line 34 of file vdevicev4l.C.
| int VDeviceV4L::initialize | ( | ) |
Definition at line 38 of file vdevicev4l.C.
References capture_buffer, capture_frame_number, initialization_complete, read_frame_number, and shared_memory.
Referenced by VDeviceV4L().
| int VDeviceV4L::open_input | ( | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 48 of file vdevicev4l.C.
References VideoDevice::channel, VDeviceBase::device, VideoDevice::in_config, input_fd, VideoDevice::picture, PictureConfig::use_brightness, PictureConfig::use_color, PictureConfig::use_contrast, Channel::use_fine, Channel::use_frequency, PictureConfig::use_hue, Channel::use_input, Channel::use_norm, PictureConfig::use_whiteness, v4l1_get_inputs(), and VideoInConfig::v4l_in_device.

| int VDeviceV4L::close_all | ( | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 75 of file vdevicev4l.C.
References close_v4l().

| int VDeviceV4L::read_buffer | ( | VFrame * | frame | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 518 of file vdevicev4l.C.
References capture_buffer, capture_frame(), capture_frame_number, capture_params, got_first_frame, input_fd, next_frame(), read_v4l_frame(), SET_TRACE, shared_memory, v4l1_start_capture(), and wait_v4l_frame().

| int VDeviceV4L::get_best_colormodel | ( | Asset * | asset | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 244 of file vdevicev4l.C.
References BC_RGB888, colormodel, VDeviceBase::device, device_colormodel, VideoInConfig::driver, File::get_best_colormodel(), VideoDevice::in_config, initialization_complete, translate_colormodel(), and v4l_init().

| int VDeviceV4L::set_channel | ( | Channel * | channel | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 286 of file vdevicev4l.C.
References v4l1_set_channel().

| int VDeviceV4L::set_picture | ( | PictureConfig * | picture | ) | [virtual] |
Reimplemented from VDeviceBase.
Definition at line 346 of file vdevicev4l.C.
References v4l1_set_picture().
Referenced by v4l_init().

| int VDeviceV4L::set_cloexec_flag | ( | int | desc, | |
| int | value | |||
| ) | [private] |
| int VDeviceV4L::set_mute | ( | int | muted | ) | [private] |
Definition at line 200 of file vdevicev4l.C.
References v4l1_set_mute().
Referenced by v4l_init().

| int VDeviceV4L::v4l1_get_inputs | ( | ) | [private] |
Definition at line 175 of file vdevicev4l.C.
References ArrayList< TYPE >::append(), VDeviceBase::device, Channel::device_name, input_fd, VideoDevice::input_sources, and video_channel.
Referenced by open_input().

| int VDeviceV4L::v4l1_set_mute | ( | int | muted | ) | [private] |
| unsigned long VDeviceV4L::translate_colormodel | ( | int | colormodel | ) | [private] |
Definition at line 270 of file vdevicev4l.C.
References BC_RGB888, BC_YUV411P, BC_YUV420P, BC_YUV422, and BC_YUV422P.
Referenced by get_best_colormodel().
| int VDeviceV4L::v4l1_set_channel | ( | Channel * | channel | ) | [private] |
Definition at line 291 of file vdevicev4l.C.
References chanlists, Channel::entry, Channel::fine_tune, CHANLIST::freq, Channel::freqtable, Channel::input, input_fd, CHANLISTS::list, Channel::norm, v4l1_get_norm(), and video_channel.
Referenced by set_channel().

| int VDeviceV4L::v4l1_get_norm | ( | int | norm | ) | [private] |
Definition at line 335 of file vdevicev4l.C.
References NTSC, PAL, and SECAM.
Referenced by v4l1_set_channel().
| int VDeviceV4L::v4l1_set_picture | ( | PictureConfig * | picture | ) | [private] |
Definition at line 352 of file vdevicev4l.C.
References PictureConfig::brightness, PictureConfig::color, PictureConfig::contrast, device_colormodel, PictureConfig::hue, input_fd, picture_params, and PictureConfig::whiteness.
Referenced by set_picture().
| void VDeviceV4L::v4l1_start_capture | ( | ) | [private] |
Definition at line 162 of file vdevicev4l.C.
References capture_frame(), VideoInConfig::capture_length, capture_params, VDeviceBase::device, VideoDevice::in_config, and MIN.
Referenced by read_buffer().

| int VDeviceV4L::capture_frame | ( | int | capture_frame_number | ) | [private] |
Definition at line 378 of file vdevicev4l.C.
References VDeviceBase::device, device_colormodel, VideoInConfig::h, VideoDevice::in_config, input_fd, and VideoInConfig::w.
Referenced by read_buffer(), and v4l1_start_capture().
| int VDeviceV4L::wait_v4l_frame | ( | ) | [private] |
Definition at line 392 of file vdevicev4l.C.
References capture_frame_number, and input_fd.
Referenced by read_buffer().
| int VDeviceV4L::read_v4l_frame | ( | VFrame * | frame | ) | [private] |
Definition at line 401 of file vdevicev4l.C.
References capture_buffer, capture_frame_number, capture_params, and frame_to_vframe().
Referenced by read_buffer().

| int VDeviceV4L::frame_to_vframe | ( | VFrame * | frame, | |
| unsigned char * | input | |||
| ) | [private] |
Definition at line 411 of file vdevicev4l.C.
References BC_RGB888, BC_YUV411P, BC_YUV420P, BC_YUV422, BC_YUV422P, VFrame::calculate_data_size(), cmodel_transfer(), colormodel, VFrame::get_bytes_per_line(), VFrame::get_color_model(), VFrame::get_data(), VFrame::get_h(), VFrame::get_rows(), VFrame::get_u(), VFrame::get_v(), VFrame::get_w(), VFrame::get_y(), height, memcpy, MIN, width, and window_params.
Referenced by read_v4l_frame().

| int VDeviceV4L::next_frame | ( | int | previous_frame | ) | [private] |
Definition at line 510 of file vdevicev4l.C.
References VideoInConfig::capture_length, capture_params, VDeviceBase::device, VideoDevice::in_config, and MIN.
Referenced by read_buffer().
| int VDeviceV4L::close_v4l | ( | ) | [private] |
Definition at line 81 of file vdevicev4l.C.
References input_fd, and unmap_v4l_shmem().
Referenced by close_all().

| int VDeviceV4L::unmap_v4l_shmem | ( | ) | [private] |
Definition at line 88 of file vdevicev4l.C.
References capture_buffer, capture_params, and shared_memory.
Referenced by close_v4l().
| int VDeviceV4L::v4l_init | ( | ) | [private] |
Definition at line 101 of file vdevicev4l.C.
References capture_buffer, capture_frame_number, capture_params, VDeviceBase::device, got_first_frame, VideoInConfig::h, VideoDevice::in_config, input_fd, picture, set_cloexec_flag(), set_mute(), set_picture(), shared_memory, VideoInConfig::v4l_in_device, VideoInConfig::w, and window_params.
Referenced by get_best_colormodel().

int VDeviceV4L::input_fd [private] |
Definition at line 41 of file vdevicev4l.h.
Referenced by capture_frame(), close_v4l(), open_input(), read_buffer(), v4l1_get_inputs(), v4l1_set_channel(), v4l1_set_mute(), v4l1_set_picture(), v4l_init(), and wait_v4l_frame().
int VDeviceV4L::output_fd [private] |
Definition at line 41 of file vdevicev4l.h.
unsigned long VDeviceV4L::device_colormodel [private] |
Definition at line 43 of file vdevicev4l.h.
Referenced by capture_frame(), get_best_colormodel(), and v4l1_set_picture().
int VDeviceV4L::colormodel [private] |
Definition at line 45 of file vdevicev4l.h.
Referenced by frame_to_vframe(), and get_best_colormodel().
struct video_capability VDeviceV4L::cap1 [read, private] |
Definition at line 48 of file vdevicev4l.h.
struct video_window VDeviceV4L::window_params [read, private] |
struct video_picture VDeviceV4L::picture_params [read, private] |
struct video_mbuf VDeviceV4L::capture_params [read, private] |
Definition at line 51 of file vdevicev4l.h.
Referenced by next_frame(), read_buffer(), read_v4l_frame(), unmap_v4l_shmem(), v4l1_start_capture(), and v4l_init().
char* VDeviceV4L::capture_buffer [private] |
Definition at line 54 of file vdevicev4l.h.
Referenced by initialize(), read_buffer(), read_v4l_frame(), unmap_v4l_shmem(), and v4l_init().
int VDeviceV4L::capture_frame_number [private] |
Definition at line 55 of file vdevicev4l.h.
Referenced by initialize(), read_buffer(), read_v4l_frame(), v4l_init(), and wait_v4l_frame().
int VDeviceV4L::read_frame_number [private] |
int VDeviceV4L::shared_memory [private] |
Definition at line 57 of file vdevicev4l.h.
Referenced by initialize(), read_buffer(), unmap_v4l_shmem(), and v4l_init().
int VDeviceV4L::initialization_complete [private] |
int VDeviceV4L::got_first_frame [private] |
1.5.5