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

Commit cae67676 authored by Courtney Goeltzenleuchter's avatar Courtney Goeltzenleuchter
Browse files

Add SMPTE2086 structures

Add necessary data structures to hold SMPTE2086 data
describing the capabilities of the mastering display.
Test: TBD
Bug: 29940137

Change-Id: I085112f07e453d9f8bc73bbd6a8f91605c12e75d
parent bde12413
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -237,6 +237,26 @@ struct android_depth_points {
#endif
};

/**
  * These structures are used to define the reference display's
  * capabilities for HDR content. Display engine can use this
  * to better tone map content to user's display.
  * Color is defined in CIE XYZ coordinates
  */
struct android_xy_color {
    float x;
    float y;
};

struct android_smpte2086_metadata {
    struct android_xy_color displayPrimaryRed;
    struct android_xy_color displayPrimaryGreen;
    struct android_xy_color displayPrimaryBlue;
    struct android_xy_color whitePoint;
    float maxLuminance;
    float minLuminance;
};

#ifdef __cplusplus
}
#endif