OpenCV  3.0.0-rc1
Open Source Computer Vision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
CameraActivity Class Reference

#include "camera_activity.hpp"

Public Types

enum  ErrorCode {
  NO_ERROR =0,
  ERROR_WRONG_FRAME_SIZE,
  ERROR_WRONG_POINTER_CAMERA_WRAPPER,
  ERROR_CAMERA_CONNECTED,
  ERROR_CANNOT_OPEN_CAMERA_WRAPPER_LIB,
  ERROR_CANNOT_GET_FUNCTION_FROM_CAMERA_WRAPPER_LIB,
  ERROR_CANNOT_INITIALIZE_CONNECTION,
  ERROR_ISNT_CONNECTED,
  ERROR_JAVA_VM_CANNOT_GET_CLASS,
  ERROR_JAVA_VM_CANNOT_GET_FIELD,
  ERROR_CANNOT_SET_PREVIEW_DISPLAY,
  ERROR_UNKNOWN =255
}
 

Public Member Functions

 CameraActivity ()
 
virtual ~CameraActivity ()
 
void applyProperties ()
 
ErrorCode connect (int cameraId=0)
 
void disconnect ()
 
int getFrameHeight ()
 
int getFrameWidth ()
 
double getProperty (int propIdx)
 
bool isConnected () const
 
virtual bool onFrameBuffer (void *buffer, int bufferSize)
 
void setProperty (int propIdx, double value)
 

Static Public Member Functions

static void setPathLibFolder (const char *path)
 

Member Enumeration Documentation

Enumerator
NO_ERROR 
ERROR_WRONG_FRAME_SIZE 
ERROR_WRONG_POINTER_CAMERA_WRAPPER 
ERROR_CAMERA_CONNECTED 
ERROR_CANNOT_OPEN_CAMERA_WRAPPER_LIB 
ERROR_CANNOT_GET_FUNCTION_FROM_CAMERA_WRAPPER_LIB 
ERROR_CANNOT_INITIALIZE_CONNECTION 
ERROR_ISNT_CONNECTED 
ERROR_JAVA_VM_CANNOT_GET_CLASS 
ERROR_JAVA_VM_CANNOT_GET_FIELD 
ERROR_CANNOT_SET_PREVIEW_DISPLAY 
ERROR_UNKNOWN 

Constructor & Destructor Documentation

CameraActivity::CameraActivity ( )
virtual CameraActivity::~CameraActivity ( )
virtual

Member Function Documentation

void CameraActivity::applyProperties ( )
ErrorCode CameraActivity::connect ( int  cameraId = 0)
void CameraActivity::disconnect ( )
int CameraActivity::getFrameHeight ( )
int CameraActivity::getFrameWidth ( )
double CameraActivity::getProperty ( int  propIdx)
bool CameraActivity::isConnected ( ) const
virtual bool CameraActivity::onFrameBuffer ( void *  buffer,
int  bufferSize 
)
virtual
static void CameraActivity::setPathLibFolder ( const char *  path)
static
void CameraActivity::setProperty ( int  propIdx,
double  value 
)

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