summaryrefslogtreecommitdiffstats
path: root/include/hardware/gralloc.h
Commit message (Collapse)AuthorAgeFilesLines
* gralloc: added exynos4 specific usage bitsDaniel Hillenbrand2015-10-151-0/+17
| | | | Change-Id: I9252c8a8b8b7122afc9f196aa2e0c6b3829b4b1f
* gralloc: Sort usage flagsDan Stoza2015-06-031-17/+16
| | | | | | | | Sorts the usage flags in increasing order so it's easier to see where the gaps are. Bug: 21609491 Change-Id: I98af3c67be84c6c5137767f3cd7a8bd63dfb5c03
* libhardware: fix gralloc usage bit redefineChong Zhang2015-06-021-1/+1
| | | | | bug: 21584171 Change-Id: I66c287681d3e53a263f85fbddfccbb199eaa4b33
* gralloc: Add foreign buffer usage flagDan Stoza2015-05-291-0/+11
| | | | | | | | | | | | | | | | | Adds GRALLOC_USAGE_FOREIGN_BUFFERS, which a consumer may set as a usage flag if it intends to attach buffers that it has not detached from the BufferQueue. It provides a hint to the producer (who may query the consumer usage bits) that it may receive a buffer from another BufferQueue, so that it can exit during initialization, hopefully with a meaningful error message, if such buffers are not supported. Also adds GRALLOC_USAGE_ALLOC_MASK, which is applied to usage bits before calling alloc on the gralloc module, and prevents the module from seeing GRALLOC_USAGE_FOREIGN_BUFFERS, since that usage flag is of no use while allocating buffers. Bug: 19801661 Change-Id: I17b927de94245f4df7cfd3f4483b544da3e9cd35
* gralloc: clarify lock_ycbcr in light of multimedia codec usageLajos Molnar2015-01-301-2/+11
| | | | | Bug: 19179927 Change-Id: I53886f8d1a3a998b958f031b04ddd4cbf19aad2c
* gralloc: add GRALLOC_USAGE_CURSOR flagGreg Hackmann2014-07-231-0/+3
| | | | | | | | | | | | | | On many devices, hardware cursors have stricter layout constraints than other overlays. GRALLOC_USAGE_CURSOR indicates a buffer may be used as a cursor; byte order and padding should be chosen accordingly. GRALLOC_USAGE_CURSOR must not cause allocation failure. If the requested properties (dimensions, format, other usage flags, etc.) aren't compatible with the device's cursor hardware, the implementation must allocate the buffer anyway, acting as if GRALLOC_USAGE_CURSOR were not specified. Change-Id: I7d66e8d7c953421d996c5def3257d408f91962f4 Signed-off-by: Greg Hackmann <ghackmann@google.com>
* gralloc: Add asynchronous lock/unlock APIFrancis Hart2014-05-121-1/+50
| | | | | | | | | | | The existing API exposed to clients for software lock/unlock forces the gralloc implementation to complete these operations synchronously. This change adds new entry points for lock/unlock functionality that is suited for use with Android's explicit synchronisation concept. This provides scope for the gralloc module to internally optimise the work it must do for lock/unlock and to hide this cost from the client. Change-Id: If4b1bb5490ab2b20d796214a7da8a96427cfe52d
* Revert "gralloc: Add asynchronous lock/unlock API"Greg Hackmann2014-05-091-50/+1
| | | | | | This reverts commit 2861789f4febe67e39de449488681edf3e98b6e2. Change-Id: I334b8ca9b9fdef510df514c18aabb6a593dfaa75
* gralloc: Add asynchronous lock/unlock APIFrancis Hart2014-05-021-1/+50
| | | | | | | | | | | The existing API exposed to clients for software lock/unlock forces the gralloc implementation to complete these operations synchronously. This change adds new entry points for lock/unlock functionality that is suited for use with Android's explicit synchronisation concept. This provides scope for the gralloc module to internally optimise the work it must do for lock/unlock and to hide this cost from the client. Change-Id: I6c41f4a532b705fc76c7777b2f04ea293506b381
* Add usage bit for RenderScript.Jason Sams2013-07-161-0/+3
| | | | Change-Id: I3ac3dc8e20e94ee885228febdc8eeb66278054cb
* gralloc: Clarify alloc stride for HAL_PIXEL_FORMAT_YCbCr_420_888Eino-Ville Talvala2013-05-061-0/+4
| | | | | Bug: 8734880 Change-Id: I0cca7fd1965e1547991be06b6b18d6302dbe8670
* gralloc: add lock_ycbcr methodAlex Ray2013-04-261-2/+39
| | | | | | | | This method is meant for locking the flexible YCbCr format documented in the system graphics header. Bug: 8734880 Change-Id: I45ae8937dcc16d0ae8a204a136121f78b4cc51e0
* Revert "gralloc: add lock_ycbcr method"Alex Ray2013-04-181-39/+2
| | | | This reverts commit baa47f353a318b9f498f093e70d57e4f43f7c345.
* gralloc: add lock_ycbcr methodAlex Ray2013-04-091-2/+39
| | | | | | | This method is meant for locking the flexible YCbCr format documented in the system graphics header. Change-Id: I98b196bab06f1d05fce725da44760180ce487034
* Fix GRALLOC_USAGE_SW_WRITE flag documentationGreg Hackmann2012-12-071-2/+2
| | | | | Change-Id: Ie553c521290358bf37c6954f65f790162aa43730 Signed-off-by: Greg Hackmann <ghackmann@google.com>
* Revert "Revert "Add reprocess method, redefine gralloc ZSL usage flag""Eino-Ville Talvala2012-09-041-1/+3
| | | | | | | | Missing project ready to go. This reverts commit 536148699beffcc4e6a2ced7c41fbbc3bcfa9886 Change-Id: I101343b443be6febe160685de6d72ddbf7e6aea5
* Revert "Add reprocess method, redefine gralloc ZSL usage flag"Eino-Ville Talvala2012-09-041-3/+1
| | | | | | | | More dependent projects than I realized This reverts commit 7fa4a7e706cd8da0a4fd6722ff3b00b8088a01ae Change-Id: I813ffde0f8d602fd6d75186bf82e93c7ffed9a9a
* Add reprocess method, redefine gralloc ZSL usage flagEino-Ville Talvala2012-09-011-1/+3
| | | | | | | | | - Camera2: Add allocate_reprocess_stream_from_stream for ZSL usecases - Gralloc: Make GRALLOC_USAGE_HW_CAMERA_ZSL be simply GRALLOC_USAGE_HW_CAMERA_READ | GRALLOC_USAGE_HW_CAMERA_WRITE - Gralloc: Add GRALLOC_USAGE_HW_CAMERA_MASK Change-Id: Icd8ac1f786e3adb6a422f27f03a5a4cb04a815cc
* Camera2: Use HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINEDEino-Ville Talvala2012-08-281-0/+2
| | | | | | | | | | | | | | | | | | Align camera2's management of platform-opaque formats with rest of framework. Instead of using CAMERA2_PIXEL_FORMAT_OPAQUE, use HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED as the format for both the camera HAL and for gralloc, and depend on the gralloc usage flags to let the gralloc module select the appropriate real format for specific stream endpoints. Add a new gralloc usage for ZSL mode, where the camera service will hold a streaming circular buffer of opaque full-resolution images during camera preview. Since this is an opaque format that needs to be optimized for 30fps operation, need gralloc to be aware of this use case. Bug: 6243944 Change-Id: If7f2516649381ce9bcffe4e319b63cbc068f643f
* Add camera gralloc usage flags.Eino-Ville Talvala2012-07-161-1/+5
| | | | | | | | | | | 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
* Fix typo in gralloc.hGlenn Kasten2011-12-191-1/+1
| | | | Change-Id: I8d989b21e10e19ae4124188f02ef84eeabdb4654
* Gralloc: add a usage bit for video encodingJamie Gennis2011-11-211-21/+23
| | | | | | | This change adds a new Gralloc usage bit to indicate that a buffer will be passed to the HW video encoder. Change-Id: I75c3fc514906e5b18fb60345a2d9c5a606403633
* Gralloc: add a HWComposer usage bitJamie Gennis2011-08-101-0/+2
| | | | | | | This change adds a new Gralloc usage bit to indicate that the Gralloc buffer being allocated will be passed to the HWComposer HAL module. Change-Id: If901f886cb22fc8379811898db3a380a61c0e442
* split fb.h out of gralloc.hMathias Agopian2011-05-121-124/+5
| | | | | | | fb and gralloc are part of the same HAL for now, but for clarity we split them into these two headers. Change-Id: I8e9e3068e47f0d94dd7c145d72fdc2e9fff24af5
* libhardware: move buffer_handle_t to system/coreIliyan Malchev2011-05-031-4/+1
| | | | | Change-Id: I2ed9ff7360086bc3458b2211437c102fee615481 Signed-off-by: Iliyan Malchev <malchev@google.com>
* libhardware: minor cleanup in gralloc.hIliyan Malchev2011-05-031-1/+1
| | | | | Change-Id: I2180725805e47d313e29ed80b4c9c05e06b77831 Signed-off-by: Iliyan Malchev <malchev@google.com>
* get rid of GRALLOC_MODULE_PERFORM_CREATE_HANDLE_FROM_BUFFERMathias Agopian2011-04-281-8/+0
| | | | Change-Id: I916812dcfa2e1188e7e249303b80b7b221de71fd
* add a method to blank/unblank the screenMathias Agopian2011-04-181-1/+9
| | | | Change-Id: I3874654248826c29e57bb62bb5217184bdfb4263
* Protected surface APIGlenn Kasten2011-01-271-0/+8
| | | | Change-Id: I63a16e77228b4a440ad08b9f21d8fbbacef3698e
* gralloc: add dump hooks to gralloc/hwcomposerErik Gilling2010-12-081-2/+14
| | | | Change-Id: I27bf46103b4d1d547c42a6de4f3270a6dfd7b7ec
* gralloc: add padding to alloc_device_t and hwc_composer_device_tErik Gilling2010-12-081-0/+3
| | | | | | also adds version #defines Change-Id: I89f19fc7811ea9c9efb579a9f6abb4c3d9011bbf
* Add a gralloc usage flag for external displays.Jamie Gennis2010-11-171-0/+5
| | | | | | | This change adds a gralloc usage flag to indicate that a buffer should be displayed full-screen on an external display if one is present. Change-Id: I3230a8dd2c49c89c81bf0ee9e646a448028bda2e
* Add 4 private gralloc usage bits.Jamie Gennis2010-07-011-0/+7
| | | | | | | The private gralloc usage bits can be used to specify device-specific allocation requirements. Change-Id: Idc4fbdd3dd7b71767143cf3df5886dfaf43e50a4
* Fix a typo in the GRALLOC_USAGE_HW_2D constant.Jamie Gennis2010-07-011-1/+1
| | | | Change-Id: I3de500455715298765b2e27bc8c59e2ec6c7a34f
* fix[2222341] Soft reset while going back from camcorder settingsMathias Agopian2009-10-301-2/+14
| | | | | add a way to convert a mapped "pushbuffer" buffer to a gralloc handle which then can be safely used by surfaceflinger
* Android side of the fix for [2121211] Sholes has stutter during animationsMathias Agopian2009-09-171-1/+12
| | | | a new method, compostionComplete() is added to the framebuffer hal, it is used by surfaceflinger to signal the driver that the composition is complete, BEFORE it releases its client. This gives a chance to the driver to perfrom the proper synchronization.
* add typedefs to gralloc and hardware.h so it's more C friendlyMathias Agopian2009-08-191-6/+7
|
* better documentation for (*setUpdateRect)()Mathias Agopian2009-05-071-2/+16
|
* better documentation and implementation for lock/unlockMathias Agopian2009-05-051-0/+12
|
* get rid of unused/needed flagsMathias Agopian2009-05-051-6/+0
|
* lock will now return the vaddr of the buffer. map/umap are gone.Mathias Agopian2009-05-041-23/+39
| | | | | | - make sure to return an error if a buffer is locked twice or unlocked while not locked. - added registerBuffer() and unregisterBuffer() to the gralloc module so that we can do some cleanup when a buffer is no longer needed. this became necessary after we removed map/unmap so we have a place to unmap buffers without the need of a kernel module. - change the constants for GRALLOC_USAGE_SW_{READ|WRITE}_NEVER to 0, so that NOT specifying them means "NEVER".
* Integrate from //sandbox/mathias/donut/...@145728Mathias Agopian2009-04-101-0/+284
SurfaceFlinger rework for new EGL driver model support.