private void stopCapture(){
  log("Stopping image capture.");
  if (mCaptureInProgress) {
    mPendingShutdown=true;
  }
 else {
    mImageCapturer.close();
    shutdown();
  }
}

private void stopCapture ( ) { log ( "Stopping image capture." ) ; if ( mCaptureInProgress ) { mPendingShutdown = true ; } else { mImageCapturer . close ( ) ; shutdown ( ) ; } }
stop capturing a sequence of images this may not actually stop the capture immediately since it is currently not possible to interrupt an individual image capture in progress .
