FastCV Sample Application  1.7.1
com.qualcomm.fastcvdemo.utils.CameraSurface Class Reference

Inherits SurfaceView.

Public Member Functions

 CameraSurface (Context context, Camera c)
void surfaceCreated (SurfaceHolder holder)
void surfaceChanged (SurfaceHolder holder, int format, int width, int height)
void surfaceDestroyed (SurfaceHolder holder)

Package Attributes

Camera camera

Detailed Description

CameraSurface class is implemented to adhere to the Android SDK Camera API requirements. http://developer.android.com/reference/android/hardware/Camera.html "Important: Pass a fully initialized SurfaceHolder to setPreviewDisplay(SurfaceHolder). Without a surface, the camera will be unable to start the preview. "


Constructor & Destructor Documentation

com.qualcomm.fastcvdemo.utils.CameraSurface.CameraSurface ( Context  context,
Camera  c 
) [inline]

CameraSurface constructor, perform basic initialization

Parameters:
contextApplication's context
cCamera reference

Member Function Documentation

void com.qualcomm.fastcvdemo.utils.CameraSurface.surfaceChanged ( SurfaceHolder  holder,
int  format,
int  width,
int  height 
) [inline]

SurfaceChanged callback, does nothing

Parameters:
holder
format
width
height
void com.qualcomm.fastcvdemo.utils.CameraSurface.surfaceCreated ( SurfaceHolder  holder) [inline]

SurfaceCreated callback. Installs this as the surface holder for camera.

Parameters:
holderReference to the holder
void com.qualcomm.fastcvdemo.utils.CameraSurface.surfaceDestroyed ( SurfaceHolder  holder) [inline]

SurfaceDestroyed callback, does nothing

Parameters:
holder

Field Documentation

Reference to application's camera instance


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables