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

Commit b9c5f8fa authored by Peng Xu's avatar Peng Xu
Browse files

Add dataspace definition for sensor direct report

Bug: 32022776
Test: compiles
Change-Id: I9e2855a454117a17e252dcb580104afea29ddc02
parent 13387baf
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -322,6 +322,7 @@ enum PixelFormat : int32_t {
     * -------------------------------+-----------------------------------------
     *  HAL_DATASPACE_JFIF            | An encoded JPEG image
     *  HAL_DATASPACE_DEPTH           | An android_depth_points buffer
     *  HAL_DATASPACE_SENSOR          | Sensor event data.
     *  Other                         | Unsupported
     *
     */
@@ -1080,7 +1081,17 @@ enum Dataspace : int32_t {
     *       The point cloud will be represented with the android_depth_points
     *       structure.
     */
    DEPTH = 0x1000
    DEPTH = 0x1000,


    /*
     * The buffer contains sensor events from sensor direct report.
     * This value is valid with formats:
     *    HAL_PIXEL_FORMAT_BLOB: an array of sensor event structure that forms
     *       a lock free queue. Format of sensor event structure is specified
     *       in Sensors HAL.
     */
    SENSOR = 0x1001
};

/*