Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
alvar::plugins::CaptureDSCapture Class Reference

Implementation of Capture interface for DSCapture plugin. More...

#include <CapturePluginDSCapture.h>

Inheritance diagram for alvar::plugins::CaptureDSCapture:
Inheritance graph
[legend]

Classes

class  VideoSampler
 

Public Member Functions

 CaptureDSCapture (const CaptureDevice captureDevice)
 Constructor. More...
 
IplImage * captureImage ()
 Capture one image from the camera. More...
 
bool Serialize (Serialization *serialization)
 Performs serialization of the class members and configuration. More...
 
std::string SerializeId ()
 The identification of the class for serialization. More...
 
bool showSettingsDialog ()
 Show the settings dialog of the camera. More...
 
bool start ()
 Starts the camera capture. More...
 
void stop ()
 Stops the camera capture. More...
 
 ~CaptureDSCapture ()
 Destructor. More...
 
- Public Member Functions inherited from alvar::Capture
 Capture (const CaptureDevice captureDevice)
 Constructor. More...
 
CaptureDevice captureDevice ()
 The camera information associated to this capture object. More...
 
bool isCapturing ()
 Test if the camera was properly initialized. More...
 
virtual bool loadSettings (std::string filename)
 Load camera settings from a file. More...
 
virtual bool saveSettings (std::string filename)
 Save camera settings to a file. More...
 
virtual void setResolution (const unsigned long xResolution, const unsigned long yResolution)
 Set the resolution. More...
 
unsigned long xResolution ()
 The resolution along the x axis (horizontal). More...
 
unsigned long yResolution ()
 The resolution along the y axis (vertical). More...
 
virtual ~Capture ()
 Destructor. More...
 

Private Member Functions

void OnVideoSample (BYTE *pBuffer, DWORD dwDataLen, REFERENCE_TIME t_start)
 

Private Attributes

unsigned int buffer_size
 
CRITICAL_SECTION crit
 
BYTEimgBuffer
 
BYTEimgBufferForCallback
 
int m_nBpp
 
int m_nVideo_x_res
 
int m_nVideo_y_res
 
CDSCapture * m_pDSCapture
 
IplImage * mReturnFrame
 
HANDLE next_event
 
alvar::plugins::CaptureDSCapture::VideoSampler sampler
 

Friends

class VideoSampler
 

Additional Inherited Members

- Protected Attributes inherited from alvar::Capture
CaptureDevice mCaptureDevice
 
bool mIsCapturing
 
unsigned long mXResolution
 
unsigned long mYResolution
 

Detailed Description

Implementation of Capture interface for DSCapture plugin.

Note
The DSCapture plugin is currently experimental and not included in the build by default.

Definition at line 64 of file CapturePluginDSCapture.h.

Constructor & Destructor Documentation

alvar::plugins::CaptureDSCapture::CaptureDSCapture ( const CaptureDevice  captureDevice)

Constructor.

Parameters
captureDeviceInformation of which camera to create.

Definition at line 33 of file CapturePluginDSCapture.cpp.

alvar::plugins::CaptureDSCapture::~CaptureDSCapture ( )

Destructor.

Definition at line 49 of file CapturePluginDSCapture.cpp.

Member Function Documentation

IplImage * alvar::plugins::CaptureDSCapture::captureImage ( )
virtual

Capture one image from the camera.

Do not modify this image.

Returns
The captured image.

Implements alvar::Capture.

Definition at line 130 of file CapturePluginDSCapture.cpp.

void alvar::plugins::CaptureDSCapture::OnVideoSample ( BYTE pBuffer,
DWORD  dwDataLen,
REFERENCE_TIME  t_start 
)
private

Definition at line 163 of file CapturePluginDSCapture.cpp.

bool alvar::plugins::CaptureDSCapture::Serialize ( Serialization serialization)
virtual

Performs serialization of the class members and configuration.

Parameters
serializationThe Serialization object.
Returns
True if the serialization of the class was successful, false otherwise.

Implements alvar::Capture.

Definition at line 158 of file CapturePluginDSCapture.cpp.

string alvar::plugins::CaptureDSCapture::SerializeId ( )
virtual

The identification of the class for serialization.

Implements alvar::Capture.

Definition at line 153 of file CapturePluginDSCapture.cpp.

bool alvar::plugins::CaptureDSCapture::showSettingsDialog ( )
virtual

Show the settings dialog of the camera.

Returns
True if the settings dialog was shown, false otherwise.

Implements alvar::Capture.

Definition at line 147 of file CapturePluginDSCapture.cpp.

bool alvar::plugins::CaptureDSCapture::start ( )
virtual

Starts the camera capture.

Returns
True if the camera was properly initialized, false otherwise.

Implements alvar::Capture.

Definition at line 61 of file CapturePluginDSCapture.cpp.

void alvar::plugins::CaptureDSCapture::stop ( )
virtual

Stops the camera capture.

Implements alvar::Capture.

Definition at line 122 of file CapturePluginDSCapture.cpp.

Friends And Related Function Documentation

friend class VideoSampler
friend

Definition at line 76 of file CapturePluginDSCapture.h.

Member Data Documentation

unsigned int alvar::plugins::CaptureDSCapture::buffer_size
private

Definition at line 109 of file CapturePluginDSCapture.h.

CRITICAL_SECTION alvar::plugins::CaptureDSCapture::crit
private

Definition at line 108 of file CapturePluginDSCapture.h.

BYTE* alvar::plugins::CaptureDSCapture::imgBuffer
private

Definition at line 105 of file CapturePluginDSCapture.h.

BYTE* alvar::plugins::CaptureDSCapture::imgBufferForCallback
private

Definition at line 106 of file CapturePluginDSCapture.h.

int alvar::plugins::CaptureDSCapture::m_nBpp
private

Definition at line 102 of file CapturePluginDSCapture.h.

int alvar::plugins::CaptureDSCapture::m_nVideo_x_res
private

Definition at line 103 of file CapturePluginDSCapture.h.

int alvar::plugins::CaptureDSCapture::m_nVideo_y_res
private

Definition at line 104 of file CapturePluginDSCapture.h.

CDSCapture* alvar::plugins::CaptureDSCapture::m_pDSCapture
private

Definition at line 101 of file CapturePluginDSCapture.h.

IplImage* alvar::plugins::CaptureDSCapture::mReturnFrame
private

Definition at line 107 of file CapturePluginDSCapture.h.

HANDLE alvar::plugins::CaptureDSCapture::next_event
private

Definition at line 110 of file CapturePluginDSCapture.h.

alvar::plugins::CaptureDSCapture::VideoSampler alvar::plugins::CaptureDSCapture::sampler
private

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


ar_track_alvar
Author(s): Scott Niekum
autogenerated on Mon Jun 10 2019 12:47:05