Lines Matching defs:capture

108         /** Set the total capture result once it's been received. */
115 * Returns whether the capture is complete (which is the case once the
116 * image and capture result are both present.
125 /** If true, will write data about each capture request to disk. */
174 /** Keep PictureCallback for last requested capture. */
243 // Add the capture result to the latest in-flight
244 // capture. If all the data for that capture is
246 InFlightCapture capture = null;
250 capture = mCaptureQueue.removeFirst();
253 if (capture != null) {
254 OneCameraImpl.this.onCaptureCompleted(capture);
276 /** The Camera2 API capture session currently active. */
281 * A queue of capture requests that have been requested but are not done
295 // Add the image data to the latest in-flight capture.
296 // If all the data for that capture is complete, store the
298 InFlightCapture capture = null;
302 capture = mCaptureQueue.removeFirst();
305 if (capture != null) {
306 onCaptureCompleted(capture);
369 // only delays capture if the lens is scanning.
375 // but this would slow down the capture.
387 // JPEG capture.
410 Log.i(TAG, "Writing capture data to: " + debugDataDir);
412 "capture.txt"));
415 mCaptureSession.capture(request, mCaptureCallback, mCameraHandler);
417 Log.e(TAG, "Could not access camera for still image capture.");
519 * Asynchronously sets up the capture session.
535 * Configures and attempts to create a capture session.
579 Log.e(TAG, "Could not set up capture session", ex);
604 * Request preview capture stream with AF_MODE_CONTINUOUS_PICTURE.
627 * Request preview capture stream with auto focus trigger cycle.
640 mCaptureSession.capture(builder.build(), mCaptureCallback, mCameraHandler);
743 * Calculate the aspect ratio of the full size capture on this device.
746 * @return The aspect ration, in terms of width/height of the full capture
756 * Called when a capture that is in flight is completed.
757 * @param capture the in-flight capture which needs to contain the received
758 * image and capture data
760 private void onCaptureCompleted(InFlightCapture capture) {
763 // here, so we don't use the usual capture session mechanism and instead
773 File dngFile = new File(RAW_DIRECTORY, capture.session.getTitle() + ".dng");
774 writeDngBytesAndClose(capture.image, capture.totalCaptureResult,
779 byte[] imageBytes = acquireJpegBytesAndClose(capture.image);
780 saveJpegPicture(imageBytes, capture.parameters, capture.session,
781 capture.totalCaptureResult);
784 capture.parameters.callback.onPictureTaken(capture.session);
788 * Take the given RAW image and capture result, convert it to a DNG and
792 * @param captureResult the capture result for the image