Commit Graph

14 Commits

Author SHA1 Message Date
Mahesh Kumar Sharma
e28c2d2e0c display: Add video transcoder stats metadata support
Add support to assign video decoder stat info metadata
in gralloc buffer with in gralloc interface.

Change-Id: I87a130cff68e425a5493b4711e2c344a45597254
Signed-off-by: Mahesh Kumar Sharma <quic_smahesh@quicinc.com>
2022-06-03 10:21:28 -07:00
Christopher Braga
34fef9c4f6 gralloc: Introduce custom content metadata region
Introduce a new dynamic memory region to store custom content
metadata that has sizing requirements that exceeds the base
1KB region allocated. This region is dynamic to ensure a layer's
memory requirements are only increased when absolutely needed.

Change-Id: I774197ed0c4ec7a18cc09b24262b6548dc293e72
2022-05-18 15:12:55 -07:00
Ray Zhang
1fec9e8def gralloc: Add Timed Rendering metadata
Add support to pass new Timed Rendering metadata
in gralloc buffer.

Change-Id: I078ee218a02935ad4fcc77dad3f2a83fd4574400
2022-05-02 19:48:38 -07:00
Ramkumar Radhakrishnan
3a68827d32 gralloc: Add metadata interface to change buffer permission
Store buffer access control information in metadata and add interface
to set/change buffer access control after the buffer allocation

Change-Id: I2dfb99c4db82f896b623a1f394977632a4bfd0e0
(cherry picked from commit 222f30bc47e072a6e7d3ba677f6630f2dc7e9661)
2022-04-19 10:01:10 -07:00
Ravi Ranjan
f556c7cc0d gralloc: Update enum value for ITU_R_709_FR
Update the values of defines as it was done previously. Reordering
value of defines will cause backward compatibility issues. Update
value of ITU_R_709_FR as a new enum value which was not used
previously.

Change-Id: Ief47e131863e6d01481f1d5c2097bd7ce100cd7a
2021-07-01 03:57:55 -07:00
Ravi Ranjan
01003ce023 gralloc: Add support for color space ITU_R_709_FR
CRs-fixed: 2860964
Change-Id: I1272b0f459ac6388d951d864a35f1e7d8e94b5fb
2021-04-28 04:13:56 -07:00
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
Baldev Sahu
356869cea9 Display: Handle S3D format set/get correctly
Use vendor meta data status for S3D_FORMAT. This
support is only for legacy reason.

Change-Id: I451829dfe5501d8bd24fa5818cb336f077c5344e
2020-09-25 17:19:00 +05:30
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
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
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