FastCV Sample Application
1.7.1
|
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 |
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. "
com.qualcomm.fastcvdemo.utils.CameraSurface.CameraSurface | ( | Context | context, |
Camera | c | ||
) | [inline] |
CameraSurface constructor, perform basic initialization
context | Application's context |
c | Camera reference |
void com.qualcomm.fastcvdemo.utils.CameraSurface.surfaceChanged | ( | SurfaceHolder | holder, |
int | format, | ||
int | width, | ||
int | height | ||
) | [inline] |
SurfaceChanged callback, does nothing
holder | |
format | |
width | |
height |
void com.qualcomm.fastcvdemo.utils.CameraSurface.surfaceCreated | ( | SurfaceHolder | holder | ) | [inline] |
SurfaceCreated callback. Installs this as the surface holder for camera.
holder | Reference to the holder |
void com.qualcomm.fastcvdemo.utils.CameraSurface.surfaceDestroyed | ( | SurfaceHolder | holder | ) | [inline] |
SurfaceDestroyed callback, does nothing
holder |
Camera com.qualcomm.fastcvdemo.utils.CameraSurface.camera [package] |
Reference to application's camera instance