summaryrefslogtreecommitdiff
path: root/gralloc
AgeCommit message (Collapse)Author
2021-11-30gralloc: Add option for unaligned YCrCb pixel formatWilli Ye
* Same problem as unaligned NV21_ZSL (Samsung Galaxy A70 needs this) Change-Id: Iddf19433ddef8023b9fa3f7b735f40039dafe3a6
2021-11-30gralloc: Add option for unaligned NV21_ZSL pixel formatLuK1337
* Not sure why this is a thing but on some devices (eg. Samsung Galaxy Tab S5e) aligning NV21_ZSL to 64 results in invalid width and height. Change-Id: I8611752798a8c66ba55d52d826aa532fd76abe33
2021-11-30gralloc: Add option for YCrCb venus camera previewSGCMarkus
On judypn (LG V40) camera preview has red/blue colors switched with HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS but HAL_PIXEL_FORMAT_YCrCb_420_SP breaks camera preview entirely. When using HAL_PIXEL_FORMAT_YCrCb_420_SP_VENUS camera preview works fine, with correct colors. Change-Id: I84ffcbbeb66acf4401294de6b4f3cf846c7530b9
2021-11-30gralloc: Allow devices to opt-in for YCrCb camera previewLuK1337
* Some stock camera HAL implementations output video stream in YCrCb instead of YCbCr. Change-Id: I562847dfd9bcf796052f6fd7263e2affbd601384
2020-11-23gralloc: Check for UBWC support during initRamakant Singh
Crs-fixed: 2720776 Change-Id: I78b264d6d533940ba171f5aa3dd7c15907d57150
2020-08-31Merge "gralloc: modify YV12 color format handle"qctecmdr
2020-08-25Merge "gralloc: Update buffer size calc for NV12 color formats"qctecmdr
2020-08-25Merge "Gralloc: Fix stride bytes calculation for RAW."qctecmdr
2020-08-19Gralloc: Fix stride bytes calculation for RAW.Ramakant Singh
Change-Id: Ic2af36994c081b102e2e33f059bd694d984d3bfc
2020-08-19gralloc: Add metadata type buffer_typeTharaga Balachandran
CRs-Fixed: 2738373 Change-Id: I6df95891acea34e81ada3259590d9fbc75bfbd4a
2020-08-19gralloc: Update buffer size calc for NV12 color formatsPriyanka Gujjula
Compute the actual buffer size (including aligned width and height) based on pixel format that is set. In this case, calculate NV12 color format buffer sizes as per nv12_512 alignment even when the ubwc surface is set. Change-Id: Ic3ea1f03e9bfe0b62b3917e43d95da1f7e28bde8
2020-08-19gralloc: modify YV12 color format handleVenkat Thogaru
Change-Id: Ib8b6a80b1f39d11e2c9c7f9949c0c0323d7e6be3
2020-08-17Merge "gralloc: Fix array out of bound"qctecmdr
2020-08-12Merge "gralloc: Consider subsampling in width and height"qctecmdr
2020-08-12Merge "gralloc: Add the support of RAW data in getComponentSizeAndOffset"qctecmdr
2020-08-11gralloc: Add the support of RAW data in getComponentSizeAndOffsetYichi Chen
To support RAW8, RAW10, RAW12, and RAW16 in gralloc4.0, the patch sets the corresponding data in PlaneLayoutInfo and PlaneLayoutComponent. (Not a contribution) Bug: 157534008 Test: VtsHalGraphicsMapperV4_0TargetTest CRs-Fixed: 2728586 Change-Id: I5c0d7c31199b949dc32e112e2743ec6cdc7106bd
2020-08-10gralloc: Fix array out of boundVenkat Thogaru
Change-Id: I56aa8742a90d50c843707143566751ecdb7ff6ae
2020-08-09gralloc: Consider subsampling in width and heightTharaga Balachandran
This change takes subsampling into account when calculating the plane width and height in samples. It fixes mapper VTS failure for case YV12SubsampleMetadata. CRs-Fixed: 2734403 Change-Id: I7f2fae72207d8fb19cede05f78b486524ed2cd49
2020-08-06gralloc: Add error handling to grallocToStandardPlaneLayoutComponentTypeTharaga Balachandran
Return errors from getComponentSizeAndOffset if the component does not exist for the format, or if the format is not supported. CRs-Fixed: 2728586 Change-Id: I4a25a4ca2a6fb766016d5634afc8dbc93c9c4ab5
2020-07-29Merge "gralloc: Remove default color space in AllocateBuffer()"qctecmdr
2020-07-28gralloc: Remove default color space in AllocateBuffer()Tharaga Balachandran
The color space should be set explicitly by the producers, not set by default in gralloc. This change resolves CTS failures in CtsMediaV2TestCases#EncoderColorAspectsTest. CRs-Fixed: 2737311 Change-Id: Ia7c780ecc83af3ec742a810de6253fddcfdf66b8
2020-07-21gralloc: Add variable reserved region size and default metadata checksTharaga Balachandran
This change adds support for reserved regions larger than one page, as well as indicating whether a metadata value is default or has been explicitly set through set(). This fixes VTS failures for GetDataspace and GetLargeReservedRegion. CRs-Fixed: 2721357 Change-Id: I4bb428d429accb471a08bd44b88c3a565836a12c
2020-06-26gralloc: Update get behaviour for interlaced metadataTharaga Balachandran
If the interlaced metadata is not set, return standard metadata value Interlaced_None instead of Interlaced_Qti. Change-Id: Ib3ea47c1a6883bc6a8c4751f7309d7e76af7f851 CRs-Fixed: 2685558
2020-06-16gralloc: Fix calculation of bytesPerStride in Lock().Ravi Ranjan
Currently bytesPerStride returns aligned width in QtiMapper::lock instead of no. of bytes in a stride. CRs-fixed: 2646525 Change-Id: Ib0c14c59193006e6f7cf687c97187cd2f95a45ce
2020-05-21hwc: Remove impl level from VINTF fragment xmlsTharaga Balachandran
Schema for VINTF fragment xmls does not allow for "impl" tag, leading to VTS failures. CRs-Fixed: 2530094 Change-Id: I8e5344144d4f47efe13d81766d8a70dcdb8b6c94
2020-05-12gralloc: Change default chroma siting value to noneTharaga Balachandran
Return ChromaSiting_None instead of ChromaSiting_Unknown per Mapper4 VTS requirements. Setting this metadata type is not supported CRs-Fixed: 2673528 Change-Id: I84e2794764eeec4ad23437ee8cdf5e4e2b3f8024
2020-05-12gralloc: Remove unnecessary log message.Tharaga Balachandran
CRs-Fixed: 2668943 Change-Id: I989b6e3d2e8a183b91ce9c41fc238d89b7f76912
2020-05-12gralloc: Refactor gralloc4.0 for some concerns in code reviewYichi Chen
There were some concerns raised in the intern code review process. Since Qualcomm has merged their Gralloc4.0 changes into their codebase, the patch created another standlane change to address the concerns within the code review. Bug: 141596968 Test: VtsHalGraphicsMapperV4_0TargetTest Change-Id: Ie687557089064a6d02c7505f2024db6a23e003c8 (cherry picked from commit ce25d55c476a20e6cc130d3ba9500cd055b63392) Change-Id: Ic397ae3874e68a7b5ba9315f31fbc098db21a800
2020-05-12gralloc: Add check for valid color metadataTharaga Balachandran
Set and check masteringDisplayInfo.colorVolumeSEIEnabled and contentLightLevel.lightLevelSEIEnabled to indicate when the values are valid CRs-Fixed: 2655318 Change-Id: Id04203ff0e05cb7e8fe18d40d44399fee7f7ee51
2020-05-12gralloc: Add offset and size for plane layout componentsTharaga Balachandran
The standard metadata type PLANE_LAYOUTS requires sizeInBits and offsetInBits are set for the plane components. This change also sets the default value for these fields to -1 to indicate that they are unknown, unless explictly set CRs-Fixed: 2659196 Change-Id: If00c02939089c489ae7f72d916a010dd1f0734e3
2020-05-12gralloc: Set dynamicMetaDataValid for SMPTE2094_40Tharaga Balachandran
The dynamicMetaDataValid flag needs to be set or reset in SetMetadata() to indicate if the dynamic metadata is useable. This change was required because GetMetadata() for SMPTE2094_40 was returning std::nullopt, as the flag was not being set. CRs-Fixed: 2648631 Change-Id: Ic0dbc6043f94b9848ebf1d17aa81faf9e9754a5e
2020-05-12gralloc: Add support for allocated width and heightTharaga Balachandran
The standard metadata types for width and height return the values requested by the client, rather than the width and height of the allocated buffer. This change adds support to get the allocated width and height. It also fixes the width and height returned through get() for PlaneLayout CRs-Fixed: 2638621 Change-Id: Ifa394a92fcd4a9fe5b8e1d7327971167f991ec33
2020-05-12gralloc: Add check for empty input vector in setTharaga Balachandran
This change checks the size of the input vector in SetMetadata(). If the vector is empty, return UNSUPPORTED CRs-Fixed: 2654200 Change-Id: I81c2d52f3551609e50663d09aec3405d8ed5928d
2020-05-12gralloc: Enable Gralloc4Tharaga Balachandran
Gralloc4 changes were merged as disabled by default. This change switches Gralloc4 on CRs-Fixed: 2660020 Change-Id: I413faa13f836c66f4ac6ea4071068e83d82d3a41
2020-05-12gralloc: Read debug properties in allocator processTharaga Balachandran
This change resolves selinux denials caused by system processes reading vendor debug properties via gralloc. The debug properties are read and parsed in the allocator process, then propagated through the BufferManager CRs-Fixed: 2619084 Change-Id: I5175a7848cdcd2671bd16ee11721066a921f3d79
2020-05-12gralloc: Add support for standard metadata type CROP.Tharaga Balachandran
CRs-Fixed: 2647933 Change-Id: Icf84b29aaeced4557d336868b8987cc47c9c27c7
2020-05-12gralloc: Check HDR dynamic metadata size before returning.Tharaga Balachandran
CRs-Fixed: 2638571 Change-Id: Ie61b4362ba253d2bec7b8e72272aee76ed9c8269
2020-05-12gralloc: Fix compilation error from crop.Tharaga Balachandran
CRs-Fixed: 2639547 Change-Id: I98c2b83c52202a4481e332ba1b918820f4f0f372
2020-05-12gralloc: Add support for IMapper/IAllocator 4.0Tharaga Balachandran
* Add QtiMapper and QtiAllocator 4.0 * Implement IMapper 4.0 APIs: get, set, getFromBufferDescriptorInfo, flushLockedBuffer, rereadLockedBuffer, listSupportedMetadataTypes, dumpBuffer, dumpBuffers, and getReservedRegion CRs-Fixed: 2633272 Change-Id: Ica42e485e426b366ffb41f30f1ea2cf395901356 Signed-off-by: Baldev Sahu <bsahu@codeaurora.org>
2020-04-22gralloc: Upgrade mapper and allocators to v3.0Tharaga Balachandran
CRs-Fixed: 2445393 Change-Id: I8c44ab63ca81523bb6acb75e8ae878cc7466e139
2020-04-22display: Add LOCAL_VINTF_FRAGMENTS for allocator/mapperTharaga Balachandran
Move allocator and mapper to LOCAL_VINTF_FRAGMENTS to remove cross-component dependency for device specific manifest. CRs-Fixed: 2505146 Change-Id: Ia8ce2bec43ec7d8df7542f77f2b219066ebb8a9e
2020-03-24Merge "gralloc: Header includes wrapper for libion's ion.h"qctecmdr
2020-03-18gralloc: Header includes wrapper for libion's ion.hRamakant Singh
Change-Id: Ia4de0307b99bc4f83d8c979453bff25659e6539d
2020-03-18display: Remove inclusion of deprecated hidl libhidltransportRamakant Singh
Change-Id: Ie6e82a22a067ee7ca65702680e8afea6a7f6aa39
2020-03-09gralloc: Additional buffer validation in getTransportSizeBaldev Sahu
CRs-Fixed: 2502270 Change-Id: Ia578dc97ea7280c8df11dc10e1a119e6be1b87df
2020-01-06display: Add support for NV21_ENCODEABLE format.Ramakant Singh
Change-Id: I37beee2f460aee819e158414e220adb8a1e9dbfc CRs-Fixed: 2592164
2019-12-18Merge "gralloc: change heap id for secure buffers on Guest VM"qctecmdr
2019-12-13gralloc: Add RGB format support in getFormatLayout APIAshish Kumar
CRs-Fixed: 2568703 Change-Id: I183a85fe5d30dc15454de0f5bec39658c24775ee
2019-12-11gralloc: Add support to getFormatLayout HAL API.Ashish Kumar
- Add API getFormatLayout which is required by camera team to get information of all the planes present during YUV format call. - Refactor the function GetYUVPlaneInfo to give some extra information of YUV plane. CRs-Fixed: 2464961 Change-Id: Ib84fd340f8c8926867a6f7e2ec7c0074c4dada06
2019-11-22gralloc: change heap id for secure buffers on Guest VMXiaowen Wu
For hypervisor build, allocate secure buffer from carved-out pool, instead of system heap. Change-Id: I5f1638867c03fc2528bf80000352d6b7ddffc471