platform_hardware_interfaces/camera
Chia-I Wu 79d13ff0f5 graphics: revise gralloc interfaces
Revise IAllocator and IMapper to reduce IPC and to support gralloc0
devices.

Specifically, IAllocator is trimmed down to have essentially only

    allocate(BufferDescriptor descriptor, uint32_t count)
        generates (Error error,
                   uint32_t stride,
                   vec<handle> buffers);

The ability to allocate buffers with shared backing store is
removed.  ProducerUsage and ConsumerUsage are moved to the
graphics.common package and are merged and renamed to BufferUsage.
BufferUsage's bits follow gralloc0.

IMapper gains

    typedef vec<uint32_t> BufferDescriptor;
    createDescriptor(BufferDescriptorInfo descriptorInfo)
          generates (Error error,
                     BufferDescriptor descriptor);

where BufferDescriptor is an implementation-defined blob.  lockFlex
is replaced by lockYCbCr.  All getters are removed.

Reference counting with retain/release is replaced by
importBuffer/freeBuffer.

Most if not all gralloc1 features are not used by the runtime yet.
There is also not too much test written for them.  As such, they
tend to behave differently between implementations and cannot be
used reliably.

Bug: 36481301
Test: builds and boots on Pixel
Change-Id: I1d31105120517ea2c128c7a19297acf3bfd312bb
2017-04-10 11:15:54 -07:00
..
common Fix transitive includes. 2017-04-06 22:04:05 +00:00
device graphics: revise gralloc interfaces 2017-04-10 11:15:54 -07:00
metadata Update makefiles for hwtypes.h 2017-03-28 15:18:20 +00:00
provider graphics: revise gralloc interfaces 2017-04-10 11:15:54 -07:00
Android.bp Camera: default implementation of device 1.0 2017-03-01 22:24:39 -08:00
README.md Camera: HIDLized camera HALs, first set 2016-12-02 19:43:39 +00:00

Camera HALs


Overview:

The camera.* HAL tree is used by the Android camera service to discover and operate camera devices available on the device.

More details and versioning information can be found within each particular HAL.

More complete information about the Android camera HAL and subsystem can be found at source.android.com.