Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0174eb73 authored by Sally Qi's avatar Sally Qi
Browse files

[LUT HAL] Interface update

- Rename Lut.aidl to Luts.aidl. In Luts.aidl structure, we provides one
  array of offsets and one array of lutProperties. `offsets` is to store
  starting point of each lut memory region of the lut buffer. That is to
  say, multiple Luts are packed into one same ashmem region, and we use
  `offsets` to know each lut buffer's position.
- change the data type of `size` to int.
- doc update: use `ashmem_create_region` instead.

Bug: 329472100
Test: builds
Change-Id: Iea38afa722a28c55f2147c67e2222fcd8323d0d7
parent 6f3c1bf1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -38,6 +38,6 @@ parcelable DisplayLuts {
  android.hardware.graphics.composer3.DisplayLuts.LayerLut[] layerLuts;
  parcelable LayerLut {
    long layer;
    android.hardware.graphics.composer3.Lut lut;
    android.hardware.graphics.composer3.Luts luts;
  }
}
+1 −1
Original line number Diff line number Diff line
@@ -57,5 +57,5 @@ parcelable LayerCommand {
  @nullable int[] bufferSlotsToClear;
  android.hardware.graphics.composer3.LayerLifecycleBatchCommandType layerLifecycleBatchCommandType;
  int newBufferSlotCount;
  @nullable android.hardware.graphics.composer3.Lut[] luts;
  @nullable android.hardware.graphics.composer3.Luts luts;
}
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ package android.hardware.graphics.composer3;
@VintfStability
parcelable LutProperties {
  android.hardware.graphics.composer3.LutProperties.Dimension dimension;
  long size;
  int size;
  android.hardware.graphics.composer3.LutProperties.SamplingKey[] samplingKeys;
  @VintfStability
  enum Dimension {
+3 −2
Original line number Diff line number Diff line
@@ -33,7 +33,8 @@

package android.hardware.graphics.composer3;
@VintfStability
parcelable Lut {
parcelable Luts {
  @nullable ParcelFileDescriptor pfd;
  android.hardware.graphics.composer3.LutProperties lutProperties;
  @nullable int[] offsets;
  android.hardware.graphics.composer3.LutProperties[] lutProperties;
}
+3 −3
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@

package android.hardware.graphics.composer3;

import android.hardware.graphics.composer3.Lut;
import android.hardware.graphics.composer3.Luts;

/**
 * LUT (Look-Up Table) Interface for Color Transformation.
@@ -37,9 +37,9 @@ parcelable DisplayLuts {
         */
        long layer;
        /**
         * A Lut specified by the HWC for given HDR layers that don't have Luts provided.
         * Lut(s) specified by the HWC for given HDR layers that don't have Luts provided.
         */
        Lut lut;
        Luts luts;
    }

    LayerLut[] layerLuts;
Loading