Commit graph

9 commits

Author SHA1 Message Date
Eino-Ville Talvala
ddc026e393 Add specific version number constants to Camera HAL.
These constants should be used by HAL implementations to indicate
which versions of the module and device APIs they support.

Change-Id: I4b6eae278481545694e6a1827833b5958c26720c
2012-03-27 16:15:25 -07:00
Eino-Ville Talvala
8bf364ef20 Reorganize camera HAL, and add versioning support.
Includes a draft of camera device HAL 2.

Change-Id: I5f56a8c54a33d0ca039360185822a9c22436cab8
2012-03-21 17:34:33 -07:00
Eino-Ville Talvala
7c50e9bad4 Add timestamp control to camera preview stream operations.
At higher levels, SurfaceTextures include timestamp information in
their buffers. For accurate timestamps, they need to be set by the
driver code. This change adds the needed method into
preview_stream_ops.

Timestamp behavior is documented in SurfaceTexture.java, and
system/core/include/window.h, as well as here.

Bug-Id: 5081132
Change-Id: Id285f8e26edecf605444bc4b9e6eea9b224f9d31
2012-01-20 13:40:21 -08:00
Wu-cheng Li
37ea6f730e Add frame metadata to camera data callback.
bug:4460717
Change-Id: I6175af70d0f10e0ba1b7158a237bceed2be06dd2
2011-07-29 07:08:56 +08:00
Iliyan Malchev
2280003113 camera HAL: add optional put_parameters callback
Change-Id: I2b2436c68b3095e840458059f8533dc897e1ca87
Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-07-26 15:56:03 -07:00
Sundar Raman
ac0e067896 Camera: Add lock_buffer to preview_stream_ops
Giving HAL control of locking buffer instead of locking in dequeue buffer.

Change-Id: I2640b784218fa67ccb051c13b24f2d3dda48ce9a
Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-06-24 11:04:17 -07:00
Iliyan Malchev
4deb188904 libhardware: report stride on dequeue_buffer
Change-Id: Ic41f625f69e135fd2dc3929f99af83b9584f8c1d
Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-06-10 16:06:52 -07:00
Iliyan Malchev
24b325e614 libhardware/camera.h: camera HAL memory management updates
-- add a callback to camera_memory_t that can be used to free the requested
   memory
-- memory requests are in the form of N buffers S bytes each
-- data callbacks pass an index to a buffer in addition to the camera_memory
   pointer

Change-Id: I368139809f25a662d8895f205e3b87fa5046a4b2
Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-06-06 18:08:24 -07:00
Iliyan Malchev
41693fa555 libhardware: introduce camera HAL header
camera.h

-- a HAL module for the camera, camera_module_t, which can be queried for the
   number and orientation of the available camera sensors.  A camera sensor is
   also opened through this module, and is represented by:

-- a HAL device for each camera sensor, camera_device_t, which encapsulates all
   the functionality of the base class CameraHardwareInterface;

Change-Id: I79a9524ceeafc4275581c009d7b9c0fa05eed764
Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-05-03 15:49:54 -07:00