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

Commit 8893a3b6 authored by Sally Qi's avatar Sally Qi
Browse files

Add Depth into DataSpace API.

Bug: 205034862
Test: builds
Change-Id: Ie859fc46a553df03819250f9f7f8408bbacc43f2
parent e51d2fa4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -16852,6 +16852,8 @@ package android.hardware {
    field public static final int DATASPACE_SRGB = 142671872; // 0x8810000
    field public static final int DATASPACE_SRGB_LINEAR = 138477568; // 0x8410000
    field public static final int DATASPACE_UNKNOWN = 0; // 0x0
    field public static final int DEPTH = 4096; // 0x1000
    field public static final int DYNAMIC_DEPTH = 4098; // 0x1002
    field public static final int RANGE_EXTENDED = 402653184; // 0x18000000
    field public static final int RANGE_FULL = 134217728; // 0x8000000
    field public static final int RANGE_LIMITED = 268435456; // 0x10000000
+22 −0
Original line number Diff line number Diff line
@@ -385,6 +385,28 @@ public final class DataSpace {
     */
    public static final int RANGE_EXTENDED = 3 << 27;

    /** @hide */
    @Retention(RetentionPolicy.SOURCE)
    @IntDef(flag = true, value = {
        DEPTH,
        DYNAMIC_DEPTH,
    })
    public @interface DataSpaceDepth {};

    /**
     * Depth.
     *
     * This value is valid with formats HAL_PIXEL_FORMAT_Y16 and HAL_PIXEL_FORMAT_BLOB.
     */
    public static final int DEPTH = 4096;

    /**
     * ISO 16684-1:2011(E) Dynamic Depth.
     *
     * Embedded depth metadata following the dynamic depth specification.
     */
    public static final int DYNAMIC_DEPTH = 4098;

    /** @hide */
    @Retention(RetentionPolicy.SOURCE)
    @IntDef(flag = true, value = {