diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2012-07-16 14:50:50 -0700 |
---|---|---|
committer | Eino-Ville Talvala <etalvala@google.com> | 2012-07-16 14:50:50 -0700 |
commit | 7797d75b12a90cd03a47642c59dbb677aa4daa88 (patch) | |
tree | 461f0fa4090f653593fee6b4e05c79e147e18857 /include/hardware/gralloc.h | |
parent | a635449697a2df5de98e72cfc24e926b641d5544 (diff) | |
download | hardware_libhardware-7797d75b12a90cd03a47642c59dbb677aa4daa88.zip hardware_libhardware-7797d75b12a90cd03a47642c59dbb677aa4daa88.tar.gz hardware_libhardware-7797d75b12a90cd03a47642c59dbb677aa4daa88.tar.bz2 |
Add camera gralloc usage flags.
GRALLOC_USAGE_HW_CAMERA_WRITE is for camera outputs in the new camera HAL.
GRALLOC_USAGE_HW_CAMERA_READ is for sending previously captured camera
data back into the camera pipeline for further processing. For
example, for converting a raw sensor image into YUV or JPEG data.
Bug: 6243944
Change-Id: If9011ec320a1a804f3337704243ed7fc410fec91
Diffstat (limited to 'include/hardware/gralloc.h')
-rw-r--r-- | include/hardware/gralloc.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/hardware/gralloc.h b/include/hardware/gralloc.h index 2dbd1fa..86ed95c 100644 --- a/include/hardware/gralloc.h +++ b/include/hardware/gralloc.h @@ -76,8 +76,12 @@ enum { GRALLOC_USAGE_HW_FB = 0x00001000, /* buffer will be used with the HW video encoder */ GRALLOC_USAGE_HW_VIDEO_ENCODER = 0x00010000, + /* buffer will be written by the HW camera pipeline */ + GRALLOC_USAGE_HW_CAMERA_WRITE = 0x00020000, + /* buffer will be read by the HW camera pipeline */ + GRALLOC_USAGE_HW_CAMERA_READ = 0x00040000, /* mask for the software usage bit-mask */ - GRALLOC_USAGE_HW_MASK = 0x00011F00, + GRALLOC_USAGE_HW_MASK = 0x00071F00, /* buffer should be displayed full-screen on an external display when * possible |