/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | SurfaceFlinger_GetDisplayNativePrimariesTest.cpp | 31 void populateDummyDisplayNativePrimaries(ui::DisplayPrimaries& primaries); 32 void checkDummyDisplayNativePrimaries(const ui::DisplayPrimaries& primaries); 44 ui::DisplayPrimaries& primaries) { in populateDummyDisplayNativePrimaries() argument 46 primaries.red.X = startingVal++; in populateDummyDisplayNativePrimaries() 47 primaries.red.Y = startingVal++; in populateDummyDisplayNativePrimaries() 48 primaries.red.Z = startingVal++; in populateDummyDisplayNativePrimaries() 49 primaries.green.X = startingVal++; in populateDummyDisplayNativePrimaries() 50 primaries.green.Y = startingVal++; in populateDummyDisplayNativePrimaries() 51 primaries.green.Z = startingVal++; in populateDummyDisplayNativePrimaries() 52 primaries.blue.X = startingVal++; in populateDummyDisplayNativePrimaries() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/color/ |
D | DisplayWhiteBalanceTintController.java | 304 DisplayPrimaries primaries = SurfaceControl.getDisplayNativePrimaries(displayToken); in getDisplayColorSpaceFromSurfaceControl() local 305 if (primaries == null || primaries.red == null || primaries.green == null in getDisplayColorSpaceFromSurfaceControl() 306 || primaries.blue == null || primaries.white == null) { in getDisplayColorSpaceFromSurfaceControl() 312 primaries.red.X, primaries.red.Y, primaries.red.Z, in getDisplayColorSpaceFromSurfaceControl() 313 primaries.green.X, primaries.green.Y, primaries.green.Z, in getDisplayColorSpaceFromSurfaceControl() 314 primaries.blue.X, primaries.blue.Y, primaries.blue.Z, in getDisplayColorSpaceFromSurfaceControl() 316 new float[]{primaries.white.X, primaries.white.Y, primaries.white.Z} in getDisplayColorSpaceFromSurfaceControl()
|
/frameworks/native/services/surfaceflinger/fuzzer/ |
D | surfaceflinger_fuzzer.cpp | 159 ui::DisplayPrimaries primaries; in setInternalDisplayPrimaries() local 160 primaries.red.X = mFdp.ConsumeFloatingPoint<float>(); in setInternalDisplayPrimaries() 161 primaries.red.Y = mFdp.ConsumeFloatingPoint<float>(); in setInternalDisplayPrimaries() 162 primaries.red.Z = mFdp.ConsumeFloatingPoint<float>(); in setInternalDisplayPrimaries() 163 primaries.green.X = mFdp.ConsumeFloatingPoint<float>(); in setInternalDisplayPrimaries() 164 primaries.green.Y = mFdp.ConsumeFloatingPoint<float>(); in setInternalDisplayPrimaries() 165 primaries.green.Z = mFdp.ConsumeFloatingPoint<float>(); in setInternalDisplayPrimaries() 166 primaries.blue.X = mFdp.ConsumeFloatingPoint<float>(); in setInternalDisplayPrimaries() 167 primaries.blue.Y = mFdp.ConsumeFloatingPoint<float>(); in setInternalDisplayPrimaries() 168 primaries.blue.Z = mFdp.ConsumeFloatingPoint<float>(); in setInternalDisplayPrimaries() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | ColorSpace.java | 2432 @NonNull @Size(min = 6, max = 9) float[] primaries, in Rgb() 2438 this(name, primaries, whitePoint, null, oetf, eotf, min, max, null, MIN_ID); in Rgb() 2506 @NonNull @Size(min = 6, max = 9) float[] primaries, in Rgb() 2509 this(name, primaries, whitePoint, null, function, MIN_ID); in Rgb() 2550 @NonNull @Size(min = 6, max = 9) float[] primaries, in Rgb() 2555 this(name, primaries, whitePoint, transform, in Rgb() 2630 @NonNull @Size(min = 6, max = 9) float[] primaries, in Rgb() 2633 this(name, primaries, whitePoint, gamma, 0.0f, 1.0f, MIN_ID); in Rgb() 2675 @NonNull @Size(min = 6, max = 9) float[] primaries, in Rgb() 2681 this(name, primaries, whitePoint, null, in Rgb() [all …]
|
D | ParcelableColorSpace.java | 118 float[] primaries = in.createFloatArray(); 130 new ColorSpace.Rgb(name, primaries, whitePoint, function));
|
/frameworks/native/libs/ui/ |
D | ColorSpace.cpp | 150 const std::array<float2, 3>& primaries, in ColorSpace() argument 156 , mRGBtoXYZ(computeXYZMatrix(primaries, whitePoint)) in ColorSpace() 161 , mPrimaries(primaries) in ColorSpace() 167 const std::array<float2, 3>& primaries, in ColorSpace() argument 172 , mRGBtoXYZ(computeXYZMatrix(primaries, whitePoint)) in ColorSpace() 178 , mPrimaries(primaries) in ColorSpace() 184 const std::array<float2, 3>& primaries, in ColorSpace() argument 189 , mRGBtoXYZ(computeXYZMatrix(primaries, whitePoint)) in ColorSpace() 195 , mPrimaries(primaries) 200 const std::array<float2, 3>& primaries, const float2& whitePoint) { in computeXYZMatrix() argument [all …]
|
/frameworks/base/libs/hwui/utils/ |
D | HostColorSpace.cpp | 151 const std::array<float2, 3>& primaries, in ColorSpace() argument 157 , mRGBtoXYZ(computeXYZMatrix(primaries, whitePoint)) in ColorSpace() 162 , mPrimaries(primaries) in ColorSpace() 168 const std::array<float2, 3>& primaries, in ColorSpace() argument 173 , mRGBtoXYZ(computeXYZMatrix(primaries, whitePoint)) in ColorSpace() 179 , mPrimaries(primaries) in ColorSpace() 185 const std::array<float2, 3>& primaries, in ColorSpace() argument 190 , mRGBtoXYZ(computeXYZMatrix(primaries, whitePoint)) in ColorSpace() 196 , mPrimaries(primaries) 201 const std::array<float2, 3>& primaries, const float2& whitePoint) { in computeXYZMatrix() argument [all …]
|
/frameworks/av/media/codec2/components/gav1/ |
D | C2SoftGav1Dec.h | 67 uint8_t primaries; member 74 : primaries(C2Color::PRIMARIES_UNSPECIFIED), in VuiColorAspects() 80 return primaries == o.primaries && transfer == o.transfer && coeffs == o.coeffs
|
D | C2SoftGav1Dec.cpp | 146 C2F(mDefaultColorAspects, primaries) in IntfImpl() 166 C2F(mCodedColorAspects, primaries).inRange( in IntfImpl() 184 C2F(mColorAspects, primaries).inRange( in IntfImpl() 256 if (me.v.primaries > C2Color::PRIMARIES_OTHER) { in DefaultColorAspectsSetter() 257 me.set().primaries = C2Color::PRIMARIES_OTHER; in DefaultColorAspectsSetter() 273 if (me.v.primaries > C2Color::PRIMARIES_OTHER) { in CodedColorAspectsSetter() 274 me.set().primaries = C2Color::PRIMARIES_OTHER; in CodedColorAspectsSetter() 291 me.set().primaries = coded.v.primaries == PRIMARIES_UNSPECIFIED in ColorAspectsSetter() 292 ? def.v.primaries : coded.v.primaries; in ColorAspectsSetter() 563 vuiColorAspects.primaries = buffer->color_primary; in getVuiParams() [all …]
|
/frameworks/av/media/libstagefright/foundation/ |
D | ColorUtils.cpp | 98 ColorAspects::Primaries primaries, ColorAspects::MatrixCoeffs coeffs) { in wrapColorAspectsIntoColorStandard() argument 100 if (sStandards.map(std::make_pair(primaries, coeffs), &res)) { in wrapColorAspectsIntoColorStandard() 102 } else if (!isValid(primaries) || !isValid(coeffs)) { in wrapColorAspectsIntoColorStandard() 108 if (isDefined(primaries) && isDefined(coeffs)) { in wrapColorAspectsIntoColorStandard() 109 return kColorStandardExtendedStart + primaries + coeffs * numPrimaries; in wrapColorAspectsIntoColorStandard() 111 return kColorStandardVendorStart + primaries + coeffs * 0x100; in wrapColorAspectsIntoColorStandard() 118 ColorAspects::Primaries *primaries, ColorAspects::MatrixCoeffs *coeffs) { in unwrapColorAspectsFromColorStandard() argument 121 *primaries = res.first; in unwrapColorAspectsFromColorStandard() 136 *primaries = (ColorAspects::Primaries)(product % numPrimaries); in unwrapColorAspectsFromColorStandard() 140 *primaries = ColorAspects::PrimariesOther; in unwrapColorAspectsFromColorStandard() [all …]
|
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/ |
D | ColorUtils.h | 114 ColorAspects::Primaries primaries, ColorAspects::MatrixCoeffs coeffs); 125 ColorAspects::Primaries *primaries, ColorAspects::MatrixCoeffs *coeffs); 135 int32_t *primaries, int32_t *transfer, int32_t *coeffs, bool *fullRange); 138 int32_t primaries, int32_t transfer, int32_t coeffs, bool fullRange, 141 int32_t primaries, int32_t isotransfer, int32_t coeffs, bool fullRange,
|
/frameworks/av/media/codec2/components/hevc/ |
D | C2SoftHevcDec.h | 126 uint8_t primaries; member 133 : primaries(2), transfer(2), coeffs(2), fullRange(0) { } in VuiColorAspects() 136 return primaries == o.primaries && transfer == o.transfer && coeffs == o.coeffs
|
D | C2SoftHevcDec.cpp | 143 C2F(mDefaultColorAspects, primaries).inRange( in IntfImpl() 161 C2F(mCodedColorAspects, primaries).inRange( in IntfImpl() 179 C2F(mColorAspects, primaries).inRange( in IntfImpl() 243 if (me.v.primaries > C2Color::PRIMARIES_OTHER) { in DefaultColorAspectsSetter() 244 me.set().primaries = C2Color::PRIMARIES_OTHER; in DefaultColorAspectsSetter() 260 if (me.v.primaries > C2Color::PRIMARIES_OTHER) { in CodedColorAspectsSetter() 261 me.set().primaries = C2Color::PRIMARIES_OTHER; in CodedColorAspectsSetter() 278 me.set().primaries = coded.v.primaries == PRIMARIES_UNSPECIFIED in ColorAspectsSetter() 279 ? def.v.primaries : coded.v.primaries; in ColorAspectsSetter() 592 vuiColorAspects.primaries = s_get_vui_params_op.u1_colour_primaries; in getVuiParams() [all …]
|
D | C2SoftHevcEnc.cpp | 221 C2F(mColorAspects, primaries).inRange( in IntfImpl() 239 C2F(mCodedColorAspects, primaries).inRange( in IntfImpl() 460 if (me.v.primaries > C2Color::PRIMARIES_OTHER) { in ColorAspectsSetter() 461 me.set().primaries = C2Color::PRIMARIES_OTHER; in ColorAspectsSetter() 475 me.set().primaries = coded.v.primaries; in CodedColorAspectsSetter() 677 if (!C2Mapper::map(mColorAspects->primaries, &sfAspects.mPrimaries)) { in initEncParams() 689 int32_t primaries, transfer, matrixCoeffs; in initEncParams() local 692 &primaries, in initEncParams() 698 mEncParams.s_vui_sei_prms.u1_colour_primaries = primaries; in initEncParams()
|
/frameworks/av/media/codec2/components/avc/ |
D | C2SoftAvcDec.h | 167 uint8_t primaries; member 174 : primaries(2), transfer(2), coeffs(2), fullRange(0) { } in VuiColorAspects() 177 return primaries == o.primaries && transfer == o.transfer && coeffs == o.coeffs
|
D | C2SoftAvcDec.cpp | 153 C2F(mDefaultColorAspects, primaries).inRange( in IntfImpl() 171 C2F(mCodedColorAspects, primaries).inRange( in IntfImpl() 189 C2F(mColorAspects, primaries).inRange( in IntfImpl() 252 if (me.v.primaries > C2Color::PRIMARIES_OTHER) { in DefaultColorAspectsSetter() 253 me.set().primaries = C2Color::PRIMARIES_OTHER; in DefaultColorAspectsSetter() 269 if (me.v.primaries > C2Color::PRIMARIES_OTHER) { in CodedColorAspectsSetter() 270 me.set().primaries = C2Color::PRIMARIES_OTHER; in CodedColorAspectsSetter() 287 me.set().primaries = coded.v.primaries == PRIMARIES_UNSPECIFIED in ColorAspectsSetter() 288 ? def.v.primaries : coded.v.primaries; in ColorAspectsSetter() 598 vuiColorAspects.primaries = s_get_vui_params_op.u1_colour_primaries; in getVuiParams() [all …]
|
/frameworks/av/media/codec2/components/mpeg2/ |
D | C2SoftMpeg2Dec.h | 166 uint8_t primaries; member 173 : primaries(2), transfer(2), coeffs(2), fullRange(0) { } in VuiColorAspects() 176 return primaries == o.primaries && transfer == o.transfer && coeffs == o.coeffs
|
D | C2SoftMpeg2Dec.cpp | 135 C2F(mDefaultColorAspects, primaries).inRange( in IntfImpl() 153 C2F(mCodedColorAspects, primaries).inRange( in IntfImpl() 171 C2F(mColorAspects, primaries).inRange( in IntfImpl() 235 if (me.v.primaries > C2Color::PRIMARIES_OTHER) { in DefaultColorAspectsSetter() 236 me.set().primaries = C2Color::PRIMARIES_OTHER; in DefaultColorAspectsSetter() 252 if (me.v.primaries > C2Color::PRIMARIES_OTHER) { in CodedColorAspectsSetter() 253 me.set().primaries = C2Color::PRIMARIES_OTHER; in CodedColorAspectsSetter() 270 me.set().primaries = coded.v.primaries == PRIMARIES_UNSPECIFIED in ColorAspectsSetter() 271 ? def.v.primaries : coded.v.primaries; in ColorAspectsSetter() 660 vuiColorAspects.primaries = s_ctl_get_seq_info_op.u1_colour_primaries; in getSeqInfo() [all …]
|
/frameworks/native/libs/ui/include_types/ui/ |
D | ColorSpace.h | 107 const std::array<float2, 3>& primaries, 125 const std::array<float2, 3>& primaries, 141 const std::array<float2, 3>& primaries, 258 const std::array<float2, 3>& primaries, const float2& whitePoint);
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | ColorSpace.h | 107 const std::array<float2, 3>& primaries, 125 const std::array<float2, 3>& primaries, 141 const std::array<float2, 3>& primaries, 258 const std::array<float2, 3>& primaries, const float2& whitePoint);
|
/frameworks/av/media/codec2/sfplugin/utils/ |
D | Codec2Mapper.cpp | 859 bool C2Mapper::map(C2Color::primaries_t primaries, C2Color::matrix_t matrix, int32_t *standard) { in map() argument 865 if (!sColorPrimariesSf.map(primaries, &sfPrimaries)) { in map() 867 if (primaries < C2Color::PRIMARIES_VENDOR_START || primaries > C2Color::PRIMARIES_OTHER) { in map() 872 sfPrimaries = (ColorAspects::Primaries)primaries; in map() 893 bool C2Mapper::map(int32_t standard, C2Color::primaries_t *primaries, C2Color::matrix_t *matrix) { in map() argument 902 if (!sColorPrimariesSf.map(sfPrimaries, primaries)) { in map() 904 *primaries = (C2Color::primaries_t)sfPrimaries; in map() 905 if (*primaries < C2Color::PRIMARIES_VENDOR_START || *primaries > C2Color::PRIMARIES_OTHER) { in map() 906 *primaries = C2Color::PRIMARIES_OTHER; in map() 987 C2Color::range_t range, C2Color::primaries_t primaries, in map() argument [all …]
|
/frameworks/av/media/codec2/hidl/plugin/samples/ |
D | SampleFilterPlugin.cpp | 91 mHelper.mInputColorAspectInfo->primaries, in getDataSpace() 244 C2F(mInputColorAspectInfo, primaries).any(), in Helper() 258 C2F(mColorAspectRequestInfo, primaries).any(), in Helper() 273 C2F(mOutputColorAspectInfo, primaries).any(), in Helper() 311 me.set().primaries = inputColor.v.primaries; in OutputColorAspectsSetter() 327 if (me.v.primaries != C2Color::PRIMARIES_UNSPECIFIED) { in ColorAspectsRequestSetter() 328 me.set().primaries = C2Color::PRIMARIES_UNSPECIFIED; in ColorAspectsRequestSetter()
|
/frameworks/av/media/codec2/components/vpx/ |
D | C2SoftVpxEnc.cpp | 165 C2F(mColorAspects, primaries).inRange( in IntfImpl() 183 C2F(mCodedColorAspects, primaries).inRange( in IntfImpl() 261 if (me.v.primaries > C2Color::PRIMARIES_OTHER) { in ColorAspectsSetter() 262 me.set().primaries = C2Color::PRIMARIES_OTHER; in ColorAspectsSetter() 277 me.set().primaries = coded.v.primaries; in CodedColorAspectsSetter()
|
/frameworks/av/media/libstagefright/foundation/tests/colorutils/ |
D | ColorUtilsTest.cpp | 218 int32_t primaries = -1; in TEST_P() local 222 ColorUtils::convertCodecColorAspectsToIsoAspects(aspects, &primaries, &colorTransfer, in TEST_P() 226 ColorUtils::convertIsoColorAspectsToCodecAspects(primaries, colorTransfer, matrixCoeffs, in TEST_P() 523 CA::Primaries primaries = CA::PrimariesUnspecified; in TEST() local 526 &primaries, &matrixCoeffs); in TEST() 529 primaries = CA::PrimariesUnspecified; in TEST() 532 ColorUtils::kColorStandardVendorStart * 4, &primaries, &matrixCoeffs); in TEST()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | Credentials_test.cpp | 208 ui::DisplayPrimaries primaries; in TEST_F() local 209 return SurfaceComposerClient::getDisplayNativePrimaries(display, primaries); in TEST_F()
|