Fork me
BeyondAR
Augmented Reality Framework for Android
 All Classes Functions Variables
com.beyondar.android.view.CameraView Class Reference

This class has the responsibility of rotating the camera, taking picture and acquiring/releasing the camera. More...

Inheritance diagram for com.beyondar.android.view.CameraView:
Collaboration diagram for com.beyondar.android.view.CameraView:

Classes

interface  BeyondarPictureCallback
 Callback to get notify when a picture from the camera has been taken. More...
 

Public Member Functions

 CameraView (Context context)
 
 CameraView (Context context, AttributeSet attrs, int defStyle)
 
 CameraView (Context context, AttributeSet attrs)
 
Camera getCamera ()
 Get the Camera instance in use. More...
 
boolean isPreviewing ()
 Check if the camera is previewing, if so the user should see what the Camera is pointing at. More...
 
void surfaceCreated (SurfaceHolder holder)
 
void surfaceDestroyed (SurfaceHolder holder)
 
void surfaceChanged (SurfaceHolder holder, int format, int w, int h)
 
void onPictureTaken (byte[] imageData, Camera camera)
 
void stopPreviewCamera ()
 Stop the previewing of the camera.
 
void startPreviewCamera ()
 Start the previewing of the camera if possible.
 
void releaseCamera ()
 Release camera.
 
void takePicture (BeyondarPictureCallback cameraCallback, BitmapFactory.Options options)
 Take a picture using the camera. More...
 

Protected Member Functions

void onMeasure (int widthMeasureSpec, int heightMeasureSpec)
 

Detailed Description

This class has the responsibility of rotating the camera, taking picture and acquiring/releasing the camera.

Member Function Documentation

Camera com.beyondar.android.view.CameraView.getCamera ( )

Get the Camera instance in use.

Returns
The Camera object, null if it has not been acquired.
boolean com.beyondar.android.view.CameraView.isPreviewing ( )

Check if the camera is previewing, if so the user should see what the Camera is pointing at.

Returns
true if is previewing, false otherwise.

Here is the caller graph for this function:

void com.beyondar.android.view.CameraView.takePicture ( BeyondarPictureCallback  cameraCallback,
BitmapFactory.Options  options 
)

Take a picture using the camera.

Use the BeyondarPictureCallback to get notify when the picture is ready.

Parameters
cameraCallbackCamera callback.
optionsBitmap options.

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