Lines Matching defs:camera

48  * client for the Camera service, which manages the actual camera hardware.
50 * <p>To access the device camera, you must declare the
54 * manifest element to declare camera features used by your application.
55 * For example, if you use the camera and auto-focus feature, your Manifest
58 * &lt;uses-feature android:name="android.hardware.camera" />
59 * &lt;uses-feature android:name="android.hardware.camera.autofocus" /></pre>
74 * {@link #setPreviewDisplay(SurfaceHolder)}. Without a surface, the camera
89 * <li><b>Important:</b> Call {@link #release()} to release the camera for
90 * use by other applications. Applications should release the camera
100 * <li>Call {@link #unlock()} to allow the media process to access the camera.
102 * <li>Pass the camera to {@link android.media.MediaRecorder#setCamera(Camera)}.
106 * and re-lock the camera.
122 * more devices, you should not make assumptions about the device camera
128 * <a href="{@docRoot}guide/topics/media/camera.html">Camera</a> developer guide.</p>
134 // These match the enums in frameworks/base/include/camera/Camera.h
166 * Broadcast Action: A new picture is taken by the camera, and the entry of
174 * Broadcast Action: A new video is recorded by the camera, and the entry
197 * Returns the information about a particular camera.
217 * Information about a camera
221 * The facing of the camera is opposite to that of the screen.
226 * The facing of the camera is the same as that of the screen.
231 * The direction that the camera faces. It should be
237 * <p>The orientation of the camera image. The value is the angle that the
238 * camera image needs to be rotated clockwise so it shows correctly on
242 * back-facing camera sensor is mounted in landscape. You are looking at
243 * the screen. If the top side of the camera sensor is aligned with the
245 * 90. If the top side of a front-facing camera sensor is aligned with
259 * <p>On some devices, the camera shutter sound cannot be turned off
273 * Creates a new Camera object to access a particular hardware camera. If
274 * the same camera is opened by other applications, this will throw a
277 * <p>You must call {@link #release()} when you are done using the camera,
281 * for a particular hardware camera.
293 * @param cameraId the hardware camera to access, between 0 and
296 * @throws RuntimeException if opening the camera fails (for example, if the
297 * camera is in use by another process or device policy manager has
298 * disabled the camera).
306 * Creates a new Camera object to access the first back-facing camera on the
307 * device. If the device does not have a back-facing camera, this returns
368 * Unlocks the camera to allow another process to access it.
369 * Normally, the camera is locked to the process with an active Camera
371 * between processes, you can call this method to release the camera
373 * you can call {@link #reconnect()} to reclaim the camera.
381 * @throws RuntimeException if the camera cannot be unlocked.
386 * Re-locks the camera to prevent other processes from accessing it.
390 * <p>Since API level 14, camera is automatically locked for applications in
392 * camera (ex: zoom) after recording starts. There is no need to call this
397 * @throws RuntimeException if the camera cannot be re-locked (for
398 * example, if the camera is still in use by another process).
403 * Reconnects to the camera service after another process used it.
405 * camera; when the process is done, you must reconnect to the camera,
407 * camera.
409 * <p>Since API level 14, camera is automatically locked for applications in
411 * camera (ex: zoom) after recording starts. There is no need to call this
417 * example, if the camera is still in use by another process).
439 * camera setup and surface creation to happen in parallel, saving time.)
468 * camera setup and surface creation to happen in parallel, saving time.)
475 * instances of the same camera, or across multiple runs of the same
519 * @param camera the Camera service object.
521 void onPreviewFrame(byte[] data, Camera camera);
540 * resets the camera for a future call to {@link #startPreview()}.
585 // Always use one-shot mode. We fake camera preview mode by
781 // We're faking the camera preview mode to prevent
853 * Callback interface used to notify on completion of camera auto focus.
859 * {@code android.hardware.camera.autofocus} feature, in the
868 * Called when the camera auto focus completes. If the camera
877 * @param camera the Camera service object
881 void onAutoFocus(boolean success, Camera camera);
885 * Starts camera auto-focus and registers a callback function to run when
886 * the camera is focused. This method is only valid when preview is active
891 * this method should be called. If the camera does not support auto-focus,
903 * fired during auto-focus, depending on the driver and camera hardware.<p>
939 * If the camera does not support auto-focus, this is a no-op.
979 * Called when the camera auto focus starts or stops.
982 * @param camera the Camera service object
984 void onAutoFocusMoving(boolean start, Camera camera);
988 * Sets camera auto-focus move callback.
1009 * or give other feedback of camera operation. This may be some time
1028 * @param camera the Camera service object
1030 void onPictureTaken(byte[] data, Camera camera);
1045 * Triggers an asynchronous image capture. The camera service will initiate
1136 * is, the image is reflected along the central vertical axis of the camera
1143 * <p>If you want to make the camera image show in the same orientation as
1147 * int cameraId, android.hardware.Camera camera) {
1168 * camera.setDisplayOrientation(result);
1185 * <p>By default, the camera plays the system-defined camera shutter sound
1191 * <p>Note that devices may not always allow disabling the camera shutter
1197 * @param enabled whether the camera should play the system shutter sound
1233 * @param zoomValue the current zoom value. In smooth zoom mode, camera
1237 * @param camera the Camera service object
1239 void onZoomChange(int zoomValue, boolean stopped, Camera camera);
1244 * camera driver during smooth zoom.
1264 * @param camera The {@link Camera} service object
1266 void onFaceDetection(Face[] faces, Camera camera);
1283 * The camera will notify {@link FaceDetectionListener} of the detected
1292 * have no effect. The camera uses the detected faces to do auto-white balance,
1295 * <p>If the apps call {@link #autoFocus(AutoFocusCallback)}, the camera
1335 * Information about a face identified through camera face detection.
1337 * <p>When face detection is used with a camera, the {@link FaceDetectionListener} returns a
1351 * camera field of view, and (1000, 1000) represents the bottom-right of
1369 * // Need mirror for front camera.
1390 * depending on the use case. For a typical point-and-shoot camera
1439 * Unspecified camera error.
1452 * Callback interface for camera error notification.
1459 * Callback for camera errors.
1465 * @param camera the Camera service object
1467 void onError(int error, Camera camera);
1515 Camera camera = new Camera();
1516 return camera.new Parameters();
1560 * the camera to use when calculating auto-exposure, auto-white balance, and
1563 * <p>To find out how many simultaneous areas a given camera supports, use
1569 * that determines its importance. The bounds are relative to the camera's
1623 * camera field of view, and (1000, 1000) represents the bottom-right of
1649 * <p>To make camera parameters take effect, applications have to call
1655 * <p>Different devices may have different camera capabilities, such as
1656 * picture size or flash modes. The application should query the camera
1660 * camera does not support color effects,
1664 // Parameter keys to communicate with the camera driver.
1866 * camera will return an image that has an extended dynamic range
1892 * Focus is fixed. The camera is always in this mode if the focus is not
1893 * adjustable. If the camera has auto-focus, this mode can fix the
1907 * Continuous auto focus mode intended for video recording. The camera
1929 * Continuous auto focus mode intended for taking pictures. The camera
2139 * The sides of width and height are based on camera orientation. That
2142 * while setting preview size. For example, suppose the camera supports
2191 * camera is used as the video source. In this case, the size of the
2195 * @return a list of Size object if camera has separate preview and
2376 * maximum fps, the camera outputs frames in fixed frame rate. If not,
2377 * the camera outputs frames in auto frame rate. The actual frame rate
2407 * they are supported by all camera devices.</p>
2412 * {@link android.graphics.ImageFormat#YV12}. For camera callback data,
2608 * orientation of the camera. This affects the pictures returned from
2609 * JPEG {@link PictureCallback}. The camera driver may set orientation
2620 * between camera orientation and natural device orientation. The sum
2621 * of the two is the rotation angle for back-facing camera. The
2622 * difference of the two is the rotation angle for front-facing camera.
2628 * orientation is 270. Suppose a back-facing camera sensor is mounted in
2629 * landscape and the top side of the camera sensor is aligned with the
2630 * right edge of the display in natural orientation. So the camera
2645 * } else { // back-facing camera
2653 * orientation of the camera. Rotation can only be 0,
2987 * Gets the focal length (in millimeter) of the camera.
3080 * <p>If set to true, the camera auto-exposure routine will immediately
3097 * maintained after camera {@link #release()} is called. Locking
3148 * <p>If set to true, the camera auto-white balance routine will
3166 * maintained after camera {@link #release()} is called. Locking
3221 * #getMaxZoom}. 0 means the camera is not zoomed.
3228 * Sets current zoom value. If the camera is zoomed (value > 0), the
3259 * @return the maximum zoom value supported by the camera.
3291 * <p>Gets the distances from the camera to where an object appears to be
3302 * <p>This method is intended to estimate the distance between the camera
3305 * camera hardware, autofocus algorithm, the focus area, and the scene.
3332 * @return the maximum number of focus areas supported by the camera.
3370 * represents the top of the currently visible camera frame. The focus
3400 * @return the maximum number of metering areas supported by the camera.
3438 * represents the top of the currently visible camera frame. The
3468 * @return the maximum number of detected face supported by the camera.
3476 * Sets recording mode hint. This tells the camera that the intent of
3535 * camera in both the preview stream and in recorded videos, including