Commit Graph

9 Commits

Author SHA1 Message Date
Zube Molokwu
10c74ab436 display: Adds additional APIs for gralloc4 support
Adds gralloc4 support for QtiMapperExtensions APIs

Change-Id: I2728f7dd7286702ae19f6fa1c0548027a2e12437
2020-12-21 12:18:16 -08:00
Shrikara B
21c0d729d6 display: Add video TS info metadata
Add support to pass new video timestamp info metadata
in gralloc buffer. Add support in both qdmetadata
and Gralloc4 interface.

CRs-Fixed: 2713472
Change-Id: Ica7776c6594ec3224f631f2eb23a1988f075313f
2020-09-03 10:59:32 +05:30
Venkat Thogaru
6b511cd1d2 display: Fix array out of bound
Change-Id: Ic560d36efad6a6b2a98a6c190abca6542ef91d91
2020-07-28 14:56:38 +05:30
Tharaga Balachandran
bcd39b9ab9 gralloc: Add metadata type buffer_type
CRs-Fixed: 2730864
Change-Id: I8f96b5dc905f1b8cedc498d3853be27a8f92ae58
2020-07-13 12:10:43 -04:00
Tharaga Balachandran
3981046acc display: Add reserved size and status check to MetaData_t
* Move from fixed array reserved region to variable reserved
  region size
* Add bool arrays to indicate whether metadata has been set using
  Gralloc4 indices
* Replace metadata->operation with bool arrays for
  gralloc4/qdMetaData compatibility

CRs-Fixed: 2730848
Change-Id: Id52aac70c23ee4b39db185861f951bb909831afb
2020-07-13 11:36:26 -04:00
Ravi Ranjan
c74a80eae0 gralloc: Use only 'data' member in GraphicsMetadata
- In gralloc3, first member 'size' in GraphicsMetadata struct was
  never unused in call to GetGraphicsMetadata. Get() call always
  returned 'data' member in GraphicsMetadata structure.

- Gralloc4 implementation introduced new encode/decode functions for
  GraphicsMetadata which are simultaneously used during set/get
  calls to encode/decode  metadata for caller and during storing/
  retrieving it from Metadata_t struct. Get() call returned
  GraphicsMetadata struct pointing to its first member 'size'
  instead of second member 'data'.

- Implement function to encode/decode GraphicsMetadataRaw to translate
  the metadata before calling mapper set/get.

- Update encodeGraphicsMetadata/decodeGraphicsMetadata functions to
  store/retrieve only 'data' member in GraphicsMetadata structure.

CRs-fixed: 2682060
Change-Id: I60c3dd2029ba21aa481dad35f9b4738b2d78957a
2020-05-22 01:37:06 -07:00
Yichi Chen
bddad07ef1 gralloc: Refactor gralloc4.0 for some concerns in code review
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: I33905f5f1198089a1e3fe16e1fd46a8f614e8679
(cherry picked from commit 3dfff2a5af39b14422ede072e3e9d95596e5fc3f)
2020-04-14 08:21:22 -07:00
Tharaga Balachandran
aa640f7b96 display: Add metadata types for allocated width and height
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 internal metadata types
so clients can query the allocated values.

CRs-Fixed: 2638621
Change-Id: I7c69cff65512c30e27eb86ef33f67079c979eeb6
2020-04-08 12:06:13 -07:00
Tharaga Balachandran
a069a7e22d display: Update metadata
This change adds libgralloc.qti to support Gralloc4 and the transition to
standardized metadata.

CRs-Fixed: 2619182
Change-Id: Ia43de9b1dc9da52affc508783c046b82cde1775e
2020-02-24 17:45:36 -05:00