Skip to content

Commit 799de38

Browse files
Sally QiAndroid (Google) Code Review
authored andcommitted
Merge "LUT NDK doc update" into main
2 parents af242ef + 479ef94 commit 799de38

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

include/android/display_luts.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ typedef struct ADisplayLuts ADisplayLuts;
6767
* therefore they don't take the ownership of the instance created by
6868
* \a ADisplayLutsEntry_create.
6969
*
70+
* 1D Lut(s) are treated as gain curves.
71+
* 3D Lut(s) are used for direct color manipulations.
72+
* The values of 3D Lut(s) data should be normalized to the range 0.0f
73+
* to 1.0f, inclusive. And 1.0f is the maximum panel luminance.
74+
* And 3D Lut(s) data is organized in RGB order
75+
* (R0, R1, R2, ..., RN, G0, G1, G2, ..., GN, B0, B1, B2, ..., BN) if N is the dimension.
76+
*
7077
* @param buffer The lut raw buffer. The function creates a copy of it and does not need to
7178
* outlive the life of the ADisplayLutsEntry.
7279
* @param length The length of lut raw buffer
@@ -132,7 +139,7 @@ const float* _Nonnull ADisplayLutsEntry_getBuffer(const ADisplayLutsEntry* _Nonn
132139
/**
133140
* Creates a \a ADisplayLuts instance.
134141
*
135-
* You are responsible for mamanging the memory of the returned object.
142+
* You are responsible for managing the memory of the returned object.
136143
* Always call \a ADisplayLuts_destroy to release it after use. E.g., after calling
137144
* the function \a ASurfaceTransaction_setLuts.
138145
*

0 commit comments

Comments
 (0)