hyperion.ng
Classes | Public Slots | Signals | Public Member Functions | List of all members
V4L2Grabber Class Reference

Capture class for V4L2 devices. More...

#include <V4L2Grabber.h>

Inheritance diagram for V4L2Grabber:
Grabber

Public Slots

bool start ()
 
void stop ()
 
void componentStateChanged (const hyperion::Components component, bool enable)
 

Signals

void newFrame (const Image< ColorRgb > &image)
 
void readError (const char *err)
 

Public Member Functions

 V4L2Grabber (const QString &device, VideoStandard videoStandard, PixelFormat pixelFormat, int pixelDecimation)
 
QRectF getSignalDetectionOffset ()
 
bool getSignalDetectionEnabled ()
 
int grabFrame (Image< ColorRgb > &)
 
virtual void setWidthHeight ()
 overwrite Grabber.h implementation, as v4l doesn't use width/height
 
virtual void setPixelDecimation (int pixelDecimation)
 set new PixelDecimation value to ImageResampler More...
 
virtual void setSignalThreshold (double redSignalThreshold, double greenSignalThreshold, double blueSignalThreshold, int noSignalCounterThreshold=50)
 overwrite Grabber.h implementation
 
virtual void setSignalDetectionOffset (double verticalMin, double horizontalMin, double verticalMax, double horizontalMax)
 overwrite Grabber.h implementation
 
virtual void setSignalDetectionEnable (bool enable)
 overwrite Grabber.h implementation
 
virtual void setDeviceVideoStandard (QString device, VideoStandard videoStandard)
 overwrite Grabber.h implementation
 
- Public Member Functions inherited from Grabber
 Grabber (QString grabberName, int width=0, int height=0, int cropLeft=0, int cropRight=0, int cropTop=0, int cropBottom=0)
 
virtual void setVideoMode (VideoMode mode)
 Set the video mode (2D/3D) More...
 
virtual void setCropping (unsigned cropLeft, unsigned cropRight, unsigned cropTop, unsigned cropBottom)
 Apply new crop values, on errors reject the values.
 
virtual bool setWidthHeight (int width, int height)
 Apply new width/height values, on errors (collide with cropping) reject the values. More...
 
virtual void setDisplayIndex (int index)
 Apply display index (used from qt)
 
virtual void setDevicePath (const QString &path)
 Apply path for device (used from framebuffer)
 
virtual int getImageWidth ()
 get current resulting height of image (after crop)
 
virtual int getImageHeight ()
 get current resulting width of image (after crop)
 
void setEnabled (bool enable)
 Prevent the real capture implementation from capturing if disabled.
 

Additional Inherited Members

- Protected Attributes inherited from Grabber
ImageResampler _imageResampler
 
bool _useImageResampler
 
VideoMode _videoMode
 the selected VideoMode
 
int _width
 With of the captured snapshot [pixels].
 
int _height
 Height of the captured snapshot [pixels].
 
int _cropLeft
 
int _cropRight
 
int _cropTop
 
int _cropBottom
 
bool _enabled
 
Logger_log
 logger instance
 

Detailed Description

Capture class for V4L2 devices.

See also
http://linuxtv.org/downloads/v4l-dvb-apis/capture-example.html

Member Function Documentation

§ setPixelDecimation()

void V4L2Grabber::setPixelDecimation ( int  pixelDecimation)
virtual

set new PixelDecimation value to ImageResampler

Parameters
pixelDecimationThe new pixelDecimation value

Reimplemented from Grabber.


The documentation for this class was generated from the following files: