summaryrefslogtreecommitdiff
path: root/libvendorgraphicbuffer
AgeCommit message (Collapse)Author
2022-12-06Merge "libvendorgraphicbuffer: Add byte stride accessor"Ankit Goyal
2022-12-06libvendorgraphicbuffer: Add byte stride accessorAnkit Goyal
Bug: 226980330 Test: Builds (tested by Camera) Change-Id: Id3a9cfa315e50954fdbe2d014121ca91953da5c9
2022-12-02vendorgraphicbuffer: apply validation check before conversionYichi Chen
Before buffer_handle_t can be converted to private_handle_t safely, we should validate it to avoid wrong operations on the native handle. Bug: 253425086 Test: Boot to home Change-Id: I078354717cf7a5a772c8b6d7cbbbbfd457eec600
2022-10-17libvendorgraphicbuffer: Add accessors for fourcc and modifierAnkit Goyal
Fix: 253120214 Test: Validated by ruofeim@ Change-Id: I7c7f034a03661faa030b5206fee8da5fc13c820f
2022-03-22Remove buffer reference counting from handleAnkit Goyal
Bug: 212803946 Test: Boots to home Change-Id: I97a95c0c5738a1d7a40bc371b33582ec81d8f5b7
2022-03-18Remove allocating_pid from reference count mechanismAnkit Goyal
Allocator runs in its own separate process and does not rely on reference count of the buffer. `allocating_pid` serves no purpose now. Bug: 207450311 Bug: 212803946 Test: Boots to home Change-Id: I5280d37daccc8f68c25a8ef8590483c4eac0467e
2022-03-09libvendorgraphicbuffer: fix address offset of ROI metadatawenchangliu
"SZ_4k * 2" is not correct address offset from hidl_common/Allocator.cpp use same address offset as defined in hidl_common/Allocator.cpp Bug: 188769378 Test: ROI encoding Test: CtsMediaV2TestCases Change-Id: I358622a23f863d69eba0a4dafeded1e2703540e2
2022-01-10Revert^4 "Namespace gralloc4"Ankit Goyal
f59ed1c9baa3595b2a7505f4b60fe275e5e8c946 Change-Id: Id9961a3f019f1369d9845a16e7dd437e22354e47
2022-01-10Revert^3 "Namespace gralloc4"Cyan Hsieh
167321fcf0e5cc4ad90eed780ce08c28d9ab27eb Bug: 213540102 Change-Id: Ia593b1cf5b2284a284149a49760a50a1749196e3
2022-01-07Revert^2 "Namespace gralloc4"Ankit Goyal
153fde544bda6429a63360c9403f3ea3883a7497 Change-Id: I8b79049f5d79346f259260c30e6adec679d1bb76
2022-01-07Revert "Namespace gralloc4"Shubham Dubey
Revert "Add gralloc switch" Revert "Namespace gralloc" Revert "Add gralloc switch" Revert "Namespace gralloc" Revert "Namespace gralloc" Revert "Gralloc - Update build rules with namespaces" Revert "Gralloc - Update build rules with namespaces" Revert "Namespace gralloc" Revert submission 16356594-pixel-gralloc-build Reason for revert: Breaks build_test2 target on master BUGID: b/213540102 Reverted Changes: Ia998ca7f1:Namespace gralloc I644f46ade:Add gralloc switch I3689a27c2:Namespace gralloc Iea1bf2ce2:Clone gralloc4 to GrallocHAL I083cfa4f0:Namespace gralloc4 If8c40cd13:Namespace gralloc I464236fea:Namespace gralloc Icaac6d24f:Add gralloc switch I92b7212b8:Gralloc - Update build rules with namespaces Ic8741d4ba:Gralloc - Update build rules with namespaces I507cbbc73:Namespace gralloc Change-Id: I1abfa62169515a08bf6cabc74626a6df5f697aa7
2022-01-06Namespace gralloc4Ankit Goyal
Bug: 207452098 Test: Boot to home Change-Id: I083cfa4f0cd65384888295f3672c63d050f8d822
2021-12-01libvendorgraphicbuffer: Remove gralloc3 codeAnkit Goyal
Bug: 207455562 Test: Smoke test Change-Id: Ie176acd1f9fab46e7d23b45927a1985b20995229
2021-07-27VendorGraphicBuffer: Add import buffer and free buffer functionsCharlie Chen
Bug: b/187279591 Test: video playback(YouTube, Exoplayer), video recording \ 3P Apps recording Change-Id: I72f422f7500cf3a0896f4d491719f2f24da91949 Signed-off-by: Charlie Chen <yuchungchen@google.com>
2021-07-02Remove build support for gralloc3.Krzysztof Kosiński
All relevant devices use gralloc4 now, so this is dead code. Bug: 174998182 Test: build for affected devices, camera preview Change-Id: I95320a0c787128692728433443ffd5892ee08b65
2021-07-01Decouple metadata operations from implementationAnkit Goyal
Bug: 191912915 Test: Full-range video playback with known calls to set_dataspace Change-Id: I9ee1419922a316f3ce0e303ab46c2e46d1b72fec
2021-07-01Clone validate function to remove dependence upon implementationAnkit Goyal
Bug: 191912915 Test: Smoke test, boot to home Change-Id: Ib3a23b068ae099cc6aa21b615e414bfac38a90bb
2021-06-15vendorgraphicbuffer: add validation on metadata before operatingYichi Chen
The process crashed when it operated metadata on an unimported buffer. To enhance the robustness of the system, the patch creates the check on mali reference to avoid crashing. Bug: 186739698 Test: android.mediav2.cts.EncoderColorAspectsTes Change-Id: Ia9c074dcee0d0f3a8ef18170ea6bce153fa734a5
2021-05-25libvendorgraphicbuffer: add the support of buffer idYichi Chen
Buffer ID is very helpful to track the life cycle of a buffer. The patch extends vendorgraphicbuffer to allow an easy access. Bug: 185958099 Test: Stress test on livewallpaper Change-Id: Ieb1007dded9585afccd5b94c919cc0f50563a037
2021-05-11gralloc4: align buffers for the GPU to 64 bytesSean Callanan
The camera requires 64-byte stride alignment for a variety of formats. Set this alignment if GPU usage is detected. Test: Boot, use viewfinder Bug: 185836979 Bug: 185065640 Bug: 184793812 Change-Id: I96a5abf5465fb583d5f3393dece431d3b60a2cdb
2021-04-15libvendorgraphicbuffer: add MFC usageTaehwan Kim
Bug: 182361811 Test: Camera recording, ExoPlayer playback Signed-off-by: Taehwan Kim <t_h.kim@samsung.com> Change-Id: I91e4f7acb614b263fed46311db95f058e9a76572
2021-04-01Merge changes Id21bff3f,I593df312 into sc-devAnthony Han
* changes: Gralloc: Remove YUV_RANGE_FULL usage Gralloc: remove PROTECTED_DPB usage
2021-03-30libvendorgraphicbuffer: Add API to query for SBWCAnkit Goyal
Bug: 171930534 Bug: 182327726 Test: gfx-gralloc-alloc-test Change-Id: I6a3e75d81456fb588ee04375e2a2978498a8dc40
2021-03-30VendorGraphicBuffer: add new interface 'set_dataspace'Taehwan Kim
static int set_dataspace(buffer_handle_t hnd, android_dataspace_t dataspace); usage: buffer_handle_t hnd; android_dataspace_t dataspace = HAL_DATASPACE_BT709; VendorGraphicBufferMeta::set_dataspace(hnd, dataspace); Bug: 173014441 Test: Enable video enable/disable basic functions Signed-off-by: SeYeong Byeon <sy.byeon@samsung.com> Change-Id: I4da78e0627eceff87e1ce014a19e49c010535f77
2021-03-25[LSC] Add LOCAL_LICENSE_KINDS to hardware/google/gchipsBob Badour
Added SPDX-license-identifier-Apache-2.0 to: gralloc4/Android.bp gralloc4/interfaces/aidl/Android.bp gralloc4/interfaces/libs/drmutils/Android.bp gralloc4/service/4.x/Android.bp gralloc4/src/4.x/Android.bp gralloc4/src/Android.bp gralloc4/src/allocator/Android.bp gralloc4/src/capabilities/Android.bp gralloc4/src/core/Android.bp gralloc4/src/hidl_common/Android.bp libvendorgraphicbuffer/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-GPL-2.0 to: Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ide9c2f522a0f243d21691bef347acf9f75e96707
2021-03-22Gralloc: Remove YUV_RANGE_FULL usageAnthony Han
Test: build Bug: 183150227 Change-Id: Id21bff3f15ec788558c85fdec2f8686ab1c1428a
2021-03-22Gralloc: remove PROTECTED_DPB usageAnthony Han
Bug: 183150221 Test: build Change-Id: I593df3125cc95647e6e89af52dd8af552d26a86f
2021-03-17Gralloc: remove unused usagesAnthony Han
SBWC_REQUEST_10BIT and HFR_MODE usages are unused in Gralloc and should be removed. Bug: 182940134 Test: build Change-Id: I0e4d3446c2e302e3b692575424d58091d213fb20
2021-03-15Merge "Add property in vendor graphic default" into sc-devTreeHugger Robot
2021-03-11Add property in vendor graphic defaultAnthony Han
Bug: 180557484 Test: build Change-Id: Ibdbf9babfef1a303639a3fb6786fd08745c8bd2e
2021-03-11gralloc4: add usages for FaceAuthSean Callanan
Also changed which private bits are used, so that the usages no longer overlap with other usages that affect Gralloc behavior. Elimiated a few usages that we know aren't needed anymore to make room for these flags. - DAYDREAM_SINGLE_BUFFER_MODE - CAMERA_RESERVED - SECURE_CAMERA_RESERVED Also fixed the README for libvendorgraphicbuffer. Bug: 180774763 Test: build Change-Id: Iffcdbffd0ef212ab0d2a1b5676173ad66a0acf6b
2021-02-25Removing VIDEO_EXT usage from our GrallocSean Callanan
Bug: 181240527 Test: boot Change-Id: Id72d108cd5f40ccd636adcce0ea94d2583c22269
2021-02-01VendorGraphicBuffer: Add aliases for offsetsAnkit Goyal
Bug: 168763130 Test: Tested on gralloc3 (AV1 on gralloc4 does not work) Change-Id: I70485b25741e5469429ec902b0484137e0856713
2021-01-21vendorgraphicbuffer/gralloc4: report format flagsSean Callanan
In Gralloc 3, VendorGraphicBufferMeta contains both the format and the AFBC allocation flags. Match this behavior in Gralloc 4. Bug: 177685505 Test: atest gfx-gralloc-nv12-afbc-test Change-Id: I01e079d2e79c918f3057717642c97eec62bd271b
2021-01-21VendorGraphicBuffer: Add plane offsets to VendorGraphicBufferMetaAnkit Goyal
Bug: 177685505 Test: Boots on Gralloc3 and builds on Gralloc4 Change-Id: I62d14cd76d5b54d6a8868617f0b750ab92c102e8
2021-01-21VendorGraphicBuffer: Add alias for size and fdAnkit Goyal
Bug: 177685505 Test: Boots on Gralloc3 and builds on Gralloc4 Change-Id: I103a012cc14ea7fa522d0e884176919781f4144c
2020-12-22VendorGraphicBuffer: gralloc4 supportSeYeong Byeon
Bug: 173320140 Test: Builds successfully with gralloc3 and gralloc4 Test: Device boots to home with gralloc3 Signed-off-by: SeYeong Byeon <sy.byeon@samsung.com> Change-Id: I34bcb73d739b5726624fab38181d227c8af11c28
2020-12-22VendorGraphicBuffer: initial codeSeYeong Byeon
A wrapper library for Gralloc to abstract away the gralloc version from vendor libraries that uses gralloc allocated buffers directly. Bug: 173320140 Test: Builds successfully with gralloc3 and gralloc4 Test: Device boots to home with gralloc3 Signed-off-by: SeYeong Byeon <sy.byeon@samsung.com> Change-Id: I7a5437d5932d4e0d6cd93c743bce8570efc00c39