Code example for Camera

Methods: addCallbackBuffer

0
		} 
 
		fps.calc();
		//Log.i("FaceDetect", String.format("FPS: %.1f, ave: %.1f", fps.current, fps.average)); 
 
		camera.addCallbackBuffer(yuvBuffer);
	} 
 
 
	public void startPreview() { 
		camera.addCallbackBuffer(yuvBuffer);
		camera.setPreviewCallbackWithBuffer(this);
		camera.startPreview();
	} 
 
 
	public void stopPreview() { 
		camera.setPreviewCallbackWithBuffer(null);
		camera.stopPreview();
	} 
}