grab_v4l_c.c File Reference

#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <glib.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <linux/videodev.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <time.h>
#include <fcntl.h>
#include <signal.h>
#include <linux/types.h>
#include <errno.h>

Go to the source code of this file.

Defines

#define READ_VIDEO_PIXEL(buf, format, depth, r, g, b)

Functions

gint gxsm_v4l_open_video4l ()
gint gxsm_v4l_close_video4l ()
gint gxsm_v4l_maxwidth ()
gint gxsm_v4l_maxheight ()
gint gxsm_v4l_win_width ()
gint gxsm_v4l_win_height ()
gint gxsm_v4l_grab_video4l ()
gint gxsm_v4l_get_pixel (int *r, int *g, int *b)

Variables

int video_dev_fd = 0
video_capability cap
video_picture pic
video_window win
video_capture vicap
video_channel vidcan
video_mbuf vidbuf
video_buffer buffer
video_mmap mapbuf
guchar * bigbuf
guchar * buf
int gray [3]
guchar * src


Define Documentation

#define READ_VIDEO_PIXEL buf,
format,
depth,
r,
g,
 ) 
 

Definition at line 332 of file grab_v4l_c.c.

Referenced by gxsm_v4l_get_pixel().


Function Documentation

gint gxsm_v4l_close_video4l  ) 
 

gint gxsm_v4l_get_pixel int *  r,
int *  g,
int *  b
 

gint gxsm_v4l_grab_video4l  ) 
 

gint gxsm_v4l_maxheight  ) 
 

gint gxsm_v4l_maxwidth  ) 
 

gint gxsm_v4l_open_video4l  ) 
 

gint gxsm_v4l_win_height  ) 
 

gint gxsm_v4l_win_width  ) 
 


Variable Documentation

guchar* bigbuf
 

Definition at line 76 of file grab_v4l_c.c.

Referenced by gxsm_v4l_grab_video4l().

guchar* buf
 

Definition at line 77 of file grab_v4l_c.c.

Referenced by Mem2d::DataD2DRead(), ec_gtk_spin_button_sci_output(), rhk200_ImExportFile::gethextag(), rhk200_ImExportFile::gettag(), Surf3d::GLdrawGimmicks(), PrimitiveImExportFile::gnuRead(), gtk_spin_button_sci_default_output(), App::input_func(), main(), Monitor::Monitor(), PrimitiveImExportFile::nscRead(), rhk200_ImExportFile::readspec(), spectrocut_run(), Omicron_SPM_ImExportFile::spmReadDat(), Omicron_SPM_ImExportFile::spmReadGridSpecDat(), and Omicron_SPM_ImExportFile::spmReadPar().

struct video_buffer buffer
 

Definition at line 74 of file grab_v4l_c.c.

Referenced by App::create_ui_control(), external_converter_Control::dlg_clicked(), App::grab_url(), gxsm_v4l_open_video4l(), main(), LAN_rhk_hwi_spm::PutParameter(), App::ui_setcomment(), App::ui_update(), and WSxM_ImExportFile::WSxMRead().

struct video_capability cap
 

Definition at line 68 of file grab_v4l_c.c.

Referenced by gxsm_v4l_maxheight(), gxsm_v4l_maxwidth(), and gxsm_v4l_open_video4l().

int gray[3]
 

Definition at line 78 of file grab_v4l_c.c.

struct video_mmap mapbuf
 

Definition at line 75 of file grab_v4l_c.c.

Referenced by gxsm_v4l_grab_video4l().

struct video_picture pic
 

Definition at line 69 of file grab_v4l_c.c.

Referenced by gxsm_v4l_get_pixel(), and gxsm_v4l_grab_video4l().

guchar* src
 

Definition at line 79 of file grab_v4l_c.c.

Referenced by ascii_data_im_export_filecheck_save_callback(), Mem2d::ConvertFrom(), Display_Param::copy(), Mem2d::CopyFrom(), TZData< ZTYP >::CopyFrom(), SCAN_DATA::CpUnits(), Scan::CpyDataSet(), Scan::CpyUserEntries(), draw_wilber(), g_dat_im_export_filecheck_save_callback(), SCAN_DATA::GetDisplay_Param(), SCAN_DATA::GetScan_Param(), SCAN_DATA::GetUser_Info(), gmeyer_im_export_filecheck_save_callback(), gxsm_v4l_get_pixel(), PNG_ImExportFile::import_data(), omicron_io_filecheck_save_callback(), png_im_export_filecheck_save_callback(), primitive_im_export_filecheck_save_callback(), DSPControl::Probing_eventcheck_callback(), PsiHDF_im_export_filecheck_save_callback(), rhk_spm32_import_filecheck_save_callback(), Scan::SetVM(), smallconvol_run(), spa4_im_export_filecheck_save_callback(), and WSxM_im_export_filecheck_save_callback().

struct video_capture vicap
 

Definition at line 71 of file grab_v4l_c.c.

struct video_mbuf vidbuf
 

Definition at line 73 of file grab_v4l_c.c.

Referenced by gxsm_v4l_grab_video4l().

struct video_channel vidcan
 

Definition at line 72 of file grab_v4l_c.c.

int video_dev_fd = 0
 

Definition at line 67 of file grab_v4l_c.c.

Referenced by gxsm_v4l_close_video4l(), gxsm_v4l_grab_video4l(), and gxsm_v4l_open_video4l().

struct video_window win
 

Definition at line 70 of file grab_v4l_c.c.

Referenced by gxsm_v4l_grab_video4l(), gxsm_v4l_win_height(), and gxsm_v4l_win_width().


Generated on Sat Apr 1 09:04:44 2006 for GXSM by  doxygen 1.4.6