Lines Matching defs:camera

27  * <p>The CameraDevice class is a representation of a single camera connected to an
33 * in order to access camera devices.</p>
35 * <p>A given camera device may provide support at one of two levels: limited or
40 * provide substantially improved capabilities over the older camera
52 * Create a request suitable for a camera preview window. Specifically, this
113 * Get the ID of this camera device.
116 * this camera device.</p>
118 * <p>This ID can be used to query the camera device's {@link
125 * @return the ID for this camera device
133 * <p>Create a new camera capture session by providing the target output set of Surfaces to the
134 * camera device.</p>
137 * the camera device for each capture request. A given request may use all
144 * <p>Surfaces suitable for inclusion as a camera output can be created for
155 * be rounded to the nearest supported size less than 1080p, by the camera device.</li>
163 * 1080p, by the camera device.</li>
193 * size less than 1080p by the camera device.
198 * <p>The camera device will query each Surface's size and formats upon this
202 * since camera hardware may need to be powered on or reconfigured. Once the configuration is
222 * a single output stream is configured, a given camera device may not be able to support all
225 * given the capabilities of the camera device.</p>
230 * but the camera device won't meet the frame rate guarantees as described in
244 * smaller. {@code RECORD} refers to the camera device's maximum supported recording resolution,
246 * camera device's maximum output resolution for that format or target from
357 * <p>Since the capabilities of camera devices vary greatly, a given camera device may support
370 * @throws CameraAccessException if the camera device is no longer connected or has
372 * @throws IllegalStateException if the camera device has been closed
386 * to be the best options for the specific camera device, so it is not
387 * recommended to reuse the same request for a different camera device;
398 * @throws CameraAccessException if the camera device is no longer connected or has
400 * @throws IllegalStateException if the camera device has been closed
412 * Close the connection to this camera device as quickly as possible.
414 * <p>Immediately after this call, all calls to the camera device or active session interface
416 * fully shut down, the {@link StateCallback#onClosed} callback will be called, and the camera
430 * A callback objects for receiving updates about the state of a camera device.
433 * open a camera device.</p>
450 * indicating that the camera device is in use already.
453 * This error can be produced when opening the camera fails.
462 * indicating that the camera device could not be opened
463 * because there are too many other open camera devices.
467 * and more camera devices cannot be opened until previous instances are
472 * This error can be produced when opening the camera fails.
481 * indicating that the camera device could not be opened due to a device
491 * indicating that the camera device has encountered a fatal error.
493 * <p>The camera device needs to be re-opened to be used again.</p>
501 * indicating that the camera service has encountered a fatal error.
504 * camera function, or there may be a persistent hardware problem.</p>
515 * The method called when a camera device has finished opening.
517 * <p>At this point, the camera device is ready to use, and
521 * @param camera the camera device that has become opened
523 public abstract void onOpened(CameraDevice camera); // Must implement
526 * The method called when a camera device has been closed with
534 * @param camera the camera device that has become closed
536 public void onClosed(CameraDevice camera) {
541 * The method called when a camera device is no longer available for
545 * if opening the camera fails.</p>
550 * of a removable camera device; or the camera being needed for a
560 * <p>You should clean up the camera with {@link CameraDevice#close} after
561 * this happens, as it is not recoverable until opening the camera again
565 * @param camera the device that has been disconnected
567 public abstract void onDisconnected(CameraDevice camera); // Must implement
570 * The method called when a camera device has encountered a serious error.
573 * if opening the camera fails.</p>
575 * <p>This indicates a failure of the camera device or camera service in
581 * <p>There may still be capture completion or camera stream callbacks
584 * <p>You should clean up the camera with {@link CameraDevice#close} after
587 * @param camera The device reporting the error
596 public abstract void onError(CameraDevice camera, int error); // Must implement