Home
last modified time | relevance | path

Searched refs:matrix (Results 1 – 25 of 96) 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.h58 float matrix[16]; in executeSetLayerColorTransform() local
60 matrix[i] = readFloat(); in executeSetLayerColorTransform()
62 auto err = mHal->setLayerColorTransform(mCurrentDisplay, mCurrentLayer, matrix); in executeSetLayerColorTransform()
/hardware/google/av/media/sfplugin/utils/
DCodec2Mapper.cpp610 bool C2Mapper::map(C2Color::primaries_t primaries, C2Color::matrix_t matrix, int32_t *standard) { in map() argument
627 if (!sColorMatricesSf.map(matrix, &sfMatrix)) { in map()
629 if (matrix < C2Color::MATRIX_VENDOR_START || matrix > C2Color::MATRIX_OTHER) { in map()
634 sfMatrix = (ColorAspects::MatrixCoeffs)matrix; in map()
644 bool C2Mapper::map(int32_t standard, C2Color::primaries_t *primaries, C2Color::matrix_t *matrix) { in map() argument
662 if (!sColorMatricesSf.map(sfMatrix, matrix)) { in map()
664 *matrix = (C2Color::matrix_t)sfMatrix; in map()
665 if (*matrix < C2Color::MATRIX_VENDOR_START || *matrix > C2Color::MATRIX_OTHER) { in map()
666 *matrix = C2Color::MATRIX_OTHER; in map()
739 C2Color::matrix_t matrix, C2Color::transfer_t transfer, uint32_t *dataSpace) { in map() argument
[all …]
/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.cpp173 std::array<float, 16> matrix; in getDataspaceSaturationMatrix() local
177 std::copy_n(tmpMatrix.data(), matrix.size(), matrix.begin()); in getDataspaceSaturationMatrix()
180 return matrix; in getDataspaceSaturationMatrix()
/hardware/google/av/media/codecs/hevc/
DC2SoftHevcDec.cpp140 C2F(mDefaultColorAspects, matrix).inRange( in IntfImpl()
158 C2F(mCodedColorAspects, matrix).inRange( in IntfImpl()
176 C2F(mColorAspects, matrix).inRange( in IntfImpl()
241 if (me.v.matrix > C2Color::MATRIX_OTHER) { in DefaultColorAspectsSetter()
242 me.set().matrix = C2Color::MATRIX_OTHER; in DefaultColorAspectsSetter()
258 if (me.v.matrix > C2Color::MATRIX_OTHER) { in CodedColorAspectsSetter()
259 me.set().matrix = C2Color::MATRIX_OTHER; in CodedColorAspectsSetter()
274 me.set().matrix = coded.v.matrix == MATRIX_UNSPECIFIED ? def.v.matrix : coded.v.matrix; in ColorAspectsSetter()
585 if (!C2Mapper::map(sfAspects.mMatrixCoeffs, &codedAspects.matrix)) { in getVuiParams()
586 codedAspects.matrix = C2Color::MATRIX_UNSPECIFIED; in getVuiParams()
/hardware/google/av/media/codecs/mpeg2/
DC2SoftMpeg2Dec.cpp132 C2F(mDefaultColorAspects, matrix).inRange( in IntfImpl()
150 C2F(mCodedColorAspects, matrix).inRange( in IntfImpl()
168 C2F(mColorAspects, matrix).inRange( in IntfImpl()
233 if (me.v.matrix > C2Color::MATRIX_OTHER) { in DefaultColorAspectsSetter()
234 me.set().matrix = C2Color::MATRIX_OTHER; in DefaultColorAspectsSetter()
250 if (me.v.matrix > C2Color::MATRIX_OTHER) { in CodedColorAspectsSetter()
251 me.set().matrix = C2Color::MATRIX_OTHER; in CodedColorAspectsSetter()
266 me.set().matrix = coded.v.matrix == MATRIX_UNSPECIFIED ? def.v.matrix : coded.v.matrix; in ColorAspectsSetter()
660 if (!C2Mapper::map(sfAspects.mMatrixCoeffs, &codedAspects.matrix)) { in getSeqInfo()
661 codedAspects.matrix = C2Color::MATRIX_UNSPECIFIED; in getSeqInfo()
/hardware/google/av/media/codecs/avc/
DC2SoftAvcDec.cpp144 C2F(mDefaultColorAspects, matrix).inRange( in IntfImpl()
162 C2F(mCodedColorAspects, matrix).inRange( in IntfImpl()
180 C2F(mColorAspects, matrix).inRange( in IntfImpl()
245 if (me.v.matrix > C2Color::MATRIX_OTHER) { in DefaultColorAspectsSetter()
246 me.set().matrix = C2Color::MATRIX_OTHER; in DefaultColorAspectsSetter()
262 if (me.v.matrix > C2Color::MATRIX_OTHER) { in CodedColorAspectsSetter()
263 me.set().matrix = C2Color::MATRIX_OTHER; in CodedColorAspectsSetter()
278 me.set().matrix = coded.v.matrix == MATRIX_UNSPECIFIED ? def.v.matrix : coded.v.matrix; in ColorAspectsSetter()
586 if (!C2Mapper::map(sfAspects.mMatrixCoeffs, &codedAspects.matrix)) { in getVuiParams()
587 codedAspects.matrix = C2Color::MATRIX_UNSPECIFIED; in getVuiParams()
/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/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/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/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
/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
/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/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()
301 double matrix[kColorTransformMatrixCount] = {0}; in ApplyToMatrix() local
304 matrix[i] = compensated_red_ratio_ * in[i]; in ApplyToMatrix()
306 matrix[i] = compensated_green_ratio_ * in[i]; in ApplyToMatrix()
308 matrix[i] = compensated_blue_ratio_ * in[i]; in ApplyToMatrix()
310 matrix[i] = in[i]; in ApplyToMatrix()
[all …]
/hardware/interfaces/graphics/composer/2.2/vts/functional/
DVtsHalGraphicsComposerV2_2TargetTest.cpp558 auto matrix = mComposerClient->getDataspaceSaturationMatrix(Dataspace::SRGB_LINEAR); in TEST_F() local
560 ASSERT_EQ(0.0f, matrix[12]); in TEST_F()
561 ASSERT_EQ(0.0f, matrix[13]); in TEST_F()
562 ASSERT_EQ(0.0f, matrix[14]); in TEST_F()
563 ASSERT_EQ(1.0f, matrix[15]); in TEST_F()
/hardware/interfaces/graphics/composer/2.2/utils/passthrough/include/composer-passthrough/2.2/
DHwcHal.h214 std::array<float, 16> matrix; in getDataspaceSaturationMatrix() local
219 matrix.data()); in getDataspaceSaturationMatrix()
228 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