Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

V4Lgrabber.C File Reference


Detailed Description

Interface with a video4linux frame grabber

Definition in file V4Lgrabber.C.

#include "Devices/V4Lgrabber.H"
#include "Component/OptionManager.H"
#include "Devices/DeviceOpts.H"
#include "Image/ColorOps.H"
#include "Raster/GenericFrame.H"
#include "Util/Assert.H"
#include "Util/log.H"
#include "Video/VideoFrame.H"
#include <cerrno>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>

Include dependency graph for V4Lgrabber.C:

Go to the source code of this file.

Defines

#define MYLOGID   itsFd
 for id-logging; see log.H:
#define CHECK_PALETTE(p)

Functions

int ioctl_nointr (int d, int req, void *mem)

Variables

V4LPalette palettes [12]


Define Documentation

#define CHECK_PALETTE p   ) 
 

Value:

{                                       \
          vp.palette = p;                       \
          vp.depth = 32;                        \
          ioctl_nointr(itsFd, VIDIOCSPICT, &vp);\
          ioctl_nointr(itsFd, VIDIOCGPICT, &vp);\
          if (vp.palette == p)                  \
            LINFO("  %-22s supported", #p);     \
          else                                  \
            LINFO("  %-22s NOT supported", #p); \
        }

#define MYLOGID   itsFd
 

for id-logging; see log.H:

Definition at line 58 of file V4Lgrabber.C.


Variable Documentation

int depth
 

depth

Definition at line 66 of file V4Lgrabber.C.

Referenced by MotionEnergyPyrBuilder< T >::buildHorizontalMotion(), MotionEnergyPyrBuilder< T >::buildVerticalMotion(), XWindow::XWinImage::createImage(), env_chan_color(), env_direction_job_run(), env_pyr_build_hipass_9(), env_pyr_build_lowpass_5(), env_pyr_build_steerable_from_hipass_9(), env_pyr_copy_src_dst(), env_pyr_init(), env_pyr_make_empty(), PyrFoveator::foveate(), InputFrame::fromRgbDepth(), ModelManagerDialog::handleItemEdit(), main(), and QuartzQuickTimeParser::QuartzQuickTimeParser().

const char* name
 

name of palette e.g. "rgb24"

Definition at line 67 of file V4Lgrabber.C.

Referenced by Texture::bind(), cmdUsage(), combineParamMaps(), ComplexObject::ComplexObject(), VisualObjectDB::createVisualObjectDB(), density(), DirectFeedChannel::DirectFeedChannel(), BeobotLauncherListener::event(), getAllSubmaps(), LeastSquaresLearner::getBiasMap(), TestImages::getCscLabScene(), TestImages::getLabelMeScene(), getMultiObjectRef(), getObjectReference(), ModelManagerWizard::handleCheckBox(), ModelManagerWizard::handleLineEdit(), BiasImageForm::init(), VisualTrackerI::initSimEvents(), VisualCortexI::initSimEvents(), SimulationViewerI::initSimEvents(), SegmenterI::initSimEvents(), SaliencyMapI::initSimEvents(), PrefrontalCortexI::initSimEvents(), InferotemporalCortexI::initSimEvents(), SimEventsUtils::initSimEvents(), PatchSet::load(), tcl::pkg::lookup(), tcl::command_group::lookup(), tcl::command_group::impl::lookup_helper(), tcl::command_group::lookup_original(), main(), operator<<(), ObjRecBOF::printAssignedCodeWords(), Raster_xx_pfm_tags_xx_1(), ChannelFacetMap::readFacetsFrom(), Beowulf::receive(), BeoSub::recognizeSIFT(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RemoveSurprise(), realvox::ripSlicesToFile(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSprocessFrame(), RemoveSurprise< PIXTYPE, BETATYPE, FLOAT >::RSsetConspicBias(), SimulationViewerSurpCont::saveResults(), ComplexChannel::saveResults(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCcomputeLocalBias(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCcomputeNewBeta(), SceneUnderstanding::SceneUnderstanding(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SCinputConspicMap(), setAllSubmaps(), PrefrontalCortexI::setCurrentState(), setupCases(), showtypeof(), SurpriseControl< PIXTYPE, BETATYPE, FLOAT >::SurpriseControl(), Texture::Texture(), SceneRec::trainFeature(), VisualCortexI::unsubscribeSimEvents(), and Texture::~Texture().

int pal
 

palette

Definition at line 65 of file V4Lgrabber.C.

Referenced by V4Lgrabber::start1().

struct V4LPalette palettes[12] [static]
 

Initial value:

    {
      { VIDEO_PALETTE_RGB24,         24, "bgr24", VIDFMT_RGB24 },
      { VIDEO_PALETTE_RGB24 | 0x80,  24, "rgb24", VIDFMT_RGB24 },
      { VIDEO_PALETTE_RGB32,         32, "bgr32", VIDFMT_RGB32 },
      { VIDEO_PALETTE_RGB32 | 0x80,  32, "rgb32", VIDFMT_RGB32 },
      { VIDEO_PALETTE_YUYV,          24, "yuyv 16bpp", VIDFMT_YUYV  },
      { VIDEO_PALETTE_YUV422,        24, "yuv422 16bpp", VIDFMT_YUV422 },
      { VIDEO_PALETTE_RGB565,        16, "rgb565", VIDFMT_RGB565 },
      { VIDEO_PALETTE_RGB555,        15, "rgb555", VIDFMT_RGB555 },
      { VIDEO_PALETTE_YUV420,        24, "yuv420 12bpp", VIDFMT_YUV420 },
      { VIDEO_PALETTE_YUV420P,       24, "yuv420 planar 12bpp", VIDFMT_YUV420P },
      { VIDEO_PALETTE_GREY,          8, "grayscale 8bpp", VIDFMT_GREY },
      { -1,                          -1, 0, VideoFormat(-1) }
    }
array of all known palettes high preference modes have lower indices

Definition at line 73 of file V4Lgrabber.C.

Referenced by V4Lgrabber::start1().

VideoFormat vidformat
 

Frame grabber mode.

Definition at line 68 of file V4Lgrabber.C.

Referenced by MgzDecoder::readFrame(), and MgzEncoder::writeFrame().


Generated on Fri Nov 21 10:42:41 2008 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4