Home
last modified time | relevance | path

Searched refs:matrix (Results 1 – 25 of 82) sorted by relevance

1234

/hardware/interfaces/graphics/composer/2.3/utils/passthrough/include/composer-passthrough/2.3/
DHwcHal.h47 bool isIdentityMatrix(const float* matrix) { in isIdentityMatrix() argument
48 if (matrix[0] == 1.0 && matrix[1] == 0.0 && matrix[2] == 0.0 && matrix[3] == 0.0 && in isIdentityMatrix()
49 matrix[4] == 0.0 && matrix[5] == 1.0 && matrix[6] == 0.0 && matrix[7] == 0.0 && in isIdentityMatrix()
50 matrix[8] == 0.0 && matrix[9] == 0.0 && matrix[10] == 1.0 && matrix[11] == 0.0 && in isIdentityMatrix()
51 matrix[12] == 0.0 && matrix[13] == 0.0 && matrix[14] == 0.0 && matrix[15] == 1.0) { in isIdentityMatrix()
145 Error setLayerColorTransform(Display display, Layer layer, const float* matrix) override { in setLayerColorTransform() argument
147 if (isIdentityMatrix(matrix)) { in setLayerColorTransform()
159 int32_t err = mDispatch.setLayerColorTransform(mDevice, display, layer, matrix); in setLayerColorTransform()
/hardware/interfaces/graphics/composer/2.3/utils/hal/include/composer-hal/2.3/
DComposerCommandEngine.h63 float matrix[16]; in executeSetLayerColorTransform() local
65 matrix[i] = readFloat(); in executeSetLayerColorTransform()
67 auto err = mHal->setLayerColorTransform(mCurrentDisplay, mCurrentLayer, matrix); in executeSetLayerColorTransform()
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Ddata_builder.h264 void inv_get_compass_soft_iron_matrix_d(long *matrix);
265 void inv_set_compass_soft_iron_matrix_d(long *matrix);
267 void inv_get_compass_soft_iron_matrix_f(float *matrix);
268 void inv_set_compass_soft_iron_matrix_f(float *matrix);
Ddata_builder.c1600 void inv_get_compass_soft_iron_matrix_d(long *matrix) { in inv_get_compass_soft_iron_matrix_d() argument
1603 matrix[i] = sensors.soft_iron.matrix_d[i]; in inv_get_compass_soft_iron_matrix_d()
1610 void inv_set_compass_soft_iron_matrix_d(long *matrix) { in inv_set_compass_soft_iron_matrix_d() argument
1614 sensors.soft_iron.matrix_d[i] = matrix[i]; in inv_set_compass_soft_iron_matrix_d()
1616 sensors.soft_iron.matrix_f[i] = inv_q30_to_float(matrix[i]); in inv_set_compass_soft_iron_matrix_d()
1622 void inv_get_compass_soft_iron_matrix_f(float *matrix) { in inv_get_compass_soft_iron_matrix_f() argument
1625 matrix[i] = sensors.soft_iron.matrix_f[i]; in inv_get_compass_soft_iron_matrix_f()
1631 void inv_set_compass_soft_iron_matrix_f(float *matrix) { in inv_set_compass_soft_iron_matrix_f() argument
1635 sensors.soft_iron.matrix_f[i] = matrix[i]; in inv_set_compass_soft_iron_matrix_f()
1637 sensors.soft_iron.matrix_d[i] = (long )(matrix[i]*ROT_MATRIX_SCALE_LONG); in inv_set_compass_soft_iron_matrix_f()
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Ddata_builder.h261 void inv_get_compass_soft_iron_matrix_d(long *matrix);
262 void inv_set_compass_soft_iron_matrix_d(long *matrix);
264 void inv_get_compass_soft_iron_matrix_f(float *matrix);
265 void inv_set_compass_soft_iron_matrix_f(float *matrix);
Ddata_builder.c1373 void inv_get_compass_soft_iron_matrix_d(long *matrix) { in inv_get_compass_soft_iron_matrix_d() argument
1376 matrix[i] = sensors.soft_iron.matrix_d[i]; in inv_get_compass_soft_iron_matrix_d()
1383 void inv_set_compass_soft_iron_matrix_d(long *matrix) { in inv_set_compass_soft_iron_matrix_d() argument
1387 sensors.soft_iron.matrix_d[i] = matrix[i]; in inv_set_compass_soft_iron_matrix_d()
1389 sensors.soft_iron.matrix_f[i] = inv_q30_to_float(matrix[i]); in inv_set_compass_soft_iron_matrix_d()
1395 void inv_get_compass_soft_iron_matrix_f(float *matrix) { in inv_get_compass_soft_iron_matrix_f() argument
1398 matrix[i] = sensors.soft_iron.matrix_f[i]; in inv_get_compass_soft_iron_matrix_f()
1404 void inv_set_compass_soft_iron_matrix_f(float *matrix) { in inv_set_compass_soft_iron_matrix_f() argument
1408 sensors.soft_iron.matrix_f[i] = matrix[i]; in inv_set_compass_soft_iron_matrix_f()
1410 sensors.soft_iron.matrix_d[i] = (long )(matrix[i]*ROT_MATRIX_SCALE_LONG); in inv_set_compass_soft_iron_matrix_f()
/hardware/interfaces/compatibility_matrices/build/
DAndroid.bp16 name: "vintf-compatibility-matrix-soong-rules",
17 pkgPath: "android/soong/vintf-compatibility-matrix",
/hardware/interfaces/graphics/composer/2.2/utils/vts/
DComposerVts.cpp172 std::array<float, 16> matrix; in getDataspaceSaturationMatrix() local
176 std::copy_n(tmpMatrix.data(), matrix.size(), matrix.begin()); in getDataspaceSaturationMatrix()
179 return matrix; in getDataspaceSaturationMatrix()
/hardware/interfaces/graphics/composer/2.3/utils/command-buffer/include/composer-command-buffer/2.3/
DComposerCommandBuffer.h71 void setLayerColorTransform(const float* matrix) { in setLayerColorTransform() argument
75 writeFloat(matrix[i]); in setLayerColorTransform()
/hardware/qcom/display/msm8996/sdm/libs/hwc2/
Dhwc_display.h61 HWC2::Error SetColorTransform(const float *matrix, android_color_transform_t hint);
67 android_color_transform_t hint, const double *matrix);
151 virtual HWC2::Error SetColorTransform(const float *matrix, android_color_transform_t hint) { in SetColorTransform() argument
156 const double *matrix) { in HandleColorModeTransform() argument
Dhwc_display_primary.cpp259 HWC2::Error HWCDisplayPrimary::SetColorTransform(const float *matrix, in SetColorTransform() argument
262 if (!matrix) { in SetColorTransform()
266 auto status = color_mode_->SetColorTransform(matrix, hint); in SetColorTransform()
Dhwc_display_primary.h60 virtual HWC2::Error SetColorTransform(const float *matrix, android_color_transform_t hint);
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc2/
Dhwc_display.h64 HWC2::Error SetColorTransform(const float *matrix, android_color_transform_t hint);
70 android_color_transform_t hint, const double *matrix);
178 virtual HWC2::Error SetColorTransform(const float *matrix, android_color_transform_t hint) { in SetColorTransform() argument
183 const double *matrix) { in HandleColorModeTransform() argument
Dhwc_display_primary.h61 virtual HWC2::Error SetColorTransform(const float *matrix, android_color_transform_t hint);
Dhwc_display_primary.cpp267 HWC2::Error HWCDisplayPrimary::SetColorTransform(const float *matrix, in SetColorTransform() argument
269 if (!matrix) { in SetColorTransform()
273 auto status = color_mode_->SetColorTransform(matrix, hint); in SetColorTransform()
/hardware/qcom/display/msm8998/sdm/libs/hwc2/
Dhwc_display.h64 HWC2::Error SetColorTransform(const float *matrix, android_color_transform_t hint);
70 android_color_transform_t hint, const double *matrix);
166 virtual HWC2::Error SetColorTransform(const float *matrix, android_color_transform_t hint) { in SetColorTransform() argument
171 const double *matrix) { in HandleColorModeTransform() argument
Dhwc_display_primary.h61 virtual HWC2::Error SetColorTransform(const float *matrix, android_color_transform_t hint);
Dhwc_display_primary.cpp271 HWC2::Error HWCDisplayPrimary::SetColorTransform(const float *matrix, in SetColorTransform() argument
274 if (!matrix) { in SetColorTransform()
278 auto status = color_mode_->SetColorTransform(matrix, hint); in SetColorTransform()
/hardware/qcom/display/msm8909/sdm/libs/hwc2/
Dhwc_display.h64 HWC2::Error SetColorTransform(const float *matrix, android_color_transform_t hint);
71 android_color_transform_t hint, const double *matrix);
179 virtual HWC2::Error SetColorTransform(const float *matrix, android_color_transform_t hint) { in SetColorTransform() argument
184 const double *matrix) { in HandleColorModeTransform() argument
Dhwc_display_primary.h60 virtual HWC2::Error SetColorTransform(const float *matrix, android_color_transform_t hint);
/hardware/interfaces/drm/1.1/
DREADME.md17 FCM (framework compatibility matrix) version 2 (released in Android Oreo MR1)
43 FCM (framework compatibility matrix) version 3 (released in Android Pie)
/hardware/interfaces/graphics/composer/2.2/vts/functional/
DVtsHalGraphicsComposerV2_2TargetTest.cpp542 auto matrix = mComposerClient->getDataspaceSaturationMatrix(Dataspace::SRGB_LINEAR); in TEST_P() local
544 ASSERT_EQ(0.0f, matrix[12]); in TEST_P()
545 ASSERT_EQ(0.0f, matrix[13]); in TEST_P()
546 ASSERT_EQ(0.0f, matrix[14]); in TEST_P()
547 ASSERT_EQ(1.0f, matrix[15]); in TEST_P()
/hardware/qcom/sdm845/display/sdm/libs/hwc2/
Dhwc_display.cpp170 double matrix[kColorTransformMatrixCount] = {0}; in PickTransferMatrix() local
172 CopyColorTransformMatrix(color_matrix_, matrix); in PickTransferMatrix()
174 adaptive_saturation_->ApplyToMatrix(matrix); in PickTransferMatrix()
177 adaptive_white_->ApplyToMatrix(matrix); in PickTransferMatrix()
179 CopyColorTransformMatrix(matrix, compensated_color_matrix_); in PickTransferMatrix()
302 double matrix[kColorTransformMatrixCount] = {0}; in ApplyToMatrix() local
305 matrix[i] = compensated_red_ratio_ * in[i]; in ApplyToMatrix()
307 matrix[i] = compensated_green_ratio_ * in[i]; in ApplyToMatrix()
309 matrix[i] = compensated_blue_ratio_ * in[i]; in ApplyToMatrix()
311 matrix[i] = in[i]; in ApplyToMatrix()
[all …]
/hardware/interfaces/graphics/composer/2.2/utils/passthrough/include/composer-passthrough/2.2/
DHwcHal.h225 std::array<float, 16> matrix; in getDataspaceSaturationMatrix() local
230 matrix.data()); in getDataspaceSaturationMatrix()
239 return matrix; in getDataspaceSaturationMatrix()
/hardware/interfaces/graphics/composer/2.3/
DIComposerClient.hal116 * setLayerColorTransform(float[16] matrix);
120 * 0 - 16 * 4: matrix
122 * Sets a matrix for color transform which will be applied on this layer
125 * If the device is not capable of apply the matrix on this layer, it must force
128 * The matrix provided is an affine color transformation of the following
136 * This matrix must be provided in row-major form:
140 * Given a matrix of this form and an input color [R_in, G_in, B_in],
152 * @param matrix is a 4x4 transform matrix (16 floats) as described above.

1234