hyperion.ng
Public Member Functions | Protected Attributes | List of all members
Grabber Class Reference

The Grabber class is responsible to apply image resizes (with or without ImageResampler) Overwrite the videoMode with setVideoMode() Overwrite setCropping() More...

#include <Grabber.h>

Inheritance diagram for Grabber:
AmlogicGrabber DispmanxFrameGrabber FramebufferFrameGrabber OsxFrameGrabber QtGrabber V4L2Grabber X11Grabber

Public Member Functions

 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 setPixelDecimation (int pixelDecimation)
 Apply new pixelDecimation (used from x11 and qt)
 
virtual void setSignalThreshold (double redSignalThreshold, double greenSignalThreshold, double blueSignalThreshold, int noSignalCounterThreshold=50)
 Apply new signalThreshold (used from v4l)
 
virtual void setSignalDetectionOffset (double verticalMin, double horizontalMin, double verticalMax, double horizontalMax)
 Apply new SignalDetectionOffset (used from v4l)
 
virtual void setSignalDetectionEnable (bool enable)
 Apply SignalDetectionEnable (used from v4l)
 
virtual void setDeviceVideoStandard (QString device, VideoStandard videoStandard)
 Apply device and videoStanded (used from v4l)
 
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.
 

Protected Attributes

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

The Grabber class is responsible to apply image resizes (with or without ImageResampler) Overwrite the videoMode with setVideoMode() Overwrite setCropping()

Member Function Documentation

§ setVideoMode()

void Grabber::setVideoMode ( VideoMode  mode)
virtual

Set the video mode (2D/3D)

Parameters
[in]modeThe new video mode

Reimplemented in X11Grabber, and QtGrabber.

§ setWidthHeight()

bool Grabber::setWidthHeight ( int  width,
int  height 
)
virtual

Apply new width/height values, on errors (collide with cropping) reject the values.

Returns
True on success else false

Reimplemented in DispmanxFrameGrabber, X11Grabber, and QtGrabber.


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