/frameworks/base/services/core/java/com/android/server/display/color/ |
D | DisplayWhiteBalanceTintController.java | 244 DisplayPrimaries primaries = SurfaceControl.getDisplayNativePrimaries(displayToken); in getDisplayColorSpaceFromSurfaceControl() local 245 if (primaries == null || primaries.red == null || primaries.green == null in getDisplayColorSpaceFromSurfaceControl() 246 || primaries.blue == null || primaries.white == null) { in getDisplayColorSpaceFromSurfaceControl() 252 primaries.red.X, primaries.red.Y, primaries.red.Z, in getDisplayColorSpaceFromSurfaceControl() 253 primaries.green.X, primaries.green.Y, primaries.green.Z, in getDisplayColorSpaceFromSurfaceControl() 254 primaries.blue.X, primaries.blue.Y, primaries.blue.Z, in getDisplayColorSpaceFromSurfaceControl() 256 new float[]{primaries.white.X, primaries.white.Y, primaries.white.Z} in getDisplayColorSpaceFromSurfaceControl()
|
/frameworks/base/graphics/java/android/graphics/ |
D | ColorSpace.java | 2440 @NonNull @Size(min = 6, max = 9) float[] primaries, in Rgb() 2446 this(name, primaries, whitePoint, null, oetf, eotf, min, max, null, MIN_ID); in Rgb() 2510 @NonNull @Size(min = 6, max = 9) float[] primaries, in Rgb() 2513 this(name, primaries, whitePoint, function, MIN_ID); in Rgb() 2552 @NonNull @Size(min = 6, max = 9) float[] primaries, in Rgb() 2556 this(name, primaries, whitePoint, null, in Rgb() 2631 @NonNull @Size(min = 6, max = 9) float[] primaries, in Rgb() 2634 this(name, primaries, whitePoint, gamma, 0.0f, 1.0f, MIN_ID); in Rgb() 2676 @NonNull @Size(min = 6, max = 9) float[] primaries, in Rgb() 2682 this(name, primaries, whitePoint, null, in Rgb() [all …]
|
/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/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 | 130 uint8_t primaries; member 137 : primaries(2), transfer(2), coeffs(2), fullRange(0) { } in VuiColorAspects() 140 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() 242 if (me.v.primaries > C2Color::PRIMARIES_OTHER) { in DefaultColorAspectsSetter() 243 me.set().primaries = C2Color::PRIMARIES_OTHER; in DefaultColorAspectsSetter() 259 if (me.v.primaries > C2Color::PRIMARIES_OTHER) { in CodedColorAspectsSetter() 260 me.set().primaries = C2Color::PRIMARIES_OTHER; in CodedColorAspectsSetter() 277 me.set().primaries = coded.v.primaries == PRIMARIES_UNSPECIFIED in ColorAspectsSetter() 278 ? def.v.primaries : coded.v.primaries; in ColorAspectsSetter() 585 vuiColorAspects.primaries = s_get_vui_params_op.u1_colour_primaries; in getVuiParams() [all …]
|
/frameworks/av/media/codec2/components/mpeg2/ |
D | C2SoftMpeg2Dec.h | 170 uint8_t primaries; member 177 : primaries(2), transfer(2), coeffs(2), fullRange(0) { } in VuiColorAspects() 180 return primaries == o.primaries && transfer == o.transfer && coeffs == o.coeffs
|
D | C2SoftMpeg2Dec.cpp | 128 C2F(mDefaultColorAspects, primaries).inRange( in IntfImpl() 146 C2F(mCodedColorAspects, primaries).inRange( in IntfImpl() 164 C2F(mColorAspects, primaries).inRange( in IntfImpl() 227 if (me.v.primaries > C2Color::PRIMARIES_OTHER) { in DefaultColorAspectsSetter() 228 me.set().primaries = C2Color::PRIMARIES_OTHER; in DefaultColorAspectsSetter() 244 if (me.v.primaries > C2Color::PRIMARIES_OTHER) { in CodedColorAspectsSetter() 245 me.set().primaries = C2Color::PRIMARIES_OTHER; in CodedColorAspectsSetter() 262 me.set().primaries = coded.v.primaries == PRIMARIES_UNSPECIFIED in ColorAspectsSetter() 263 ? def.v.primaries : coded.v.primaries; in ColorAspectsSetter() 652 vuiColorAspects.primaries = s_ctl_get_seq_info_op.u1_colour_primaries; in getSeqInfo() [all …]
|
/frameworks/av/media/codec2/components/avc/ |
D | C2SoftAvcDec.h | 171 uint8_t primaries; member 178 : primaries(2), transfer(2), coeffs(2), fullRange(0) { } in VuiColorAspects() 181 return primaries == o.primaries && transfer == o.transfer && coeffs == o.coeffs
|
D | C2SoftAvcDec.cpp | 150 C2F(mDefaultColorAspects, primaries).inRange( in IntfImpl() 168 C2F(mCodedColorAspects, primaries).inRange( in IntfImpl() 186 C2F(mColorAspects, primaries).inRange( in IntfImpl() 248 if (me.v.primaries > C2Color::PRIMARIES_OTHER) { in DefaultColorAspectsSetter() 249 me.set().primaries = C2Color::PRIMARIES_OTHER; in DefaultColorAspectsSetter() 265 if (me.v.primaries > C2Color::PRIMARIES_OTHER) { in CodedColorAspectsSetter() 266 me.set().primaries = C2Color::PRIMARIES_OTHER; in CodedColorAspectsSetter() 283 me.set().primaries = coded.v.primaries == PRIMARIES_UNSPECIFIED in ColorAspectsSetter() 284 ? def.v.primaries : coded.v.primaries; in ColorAspectsSetter() 588 vuiColorAspects.primaries = s_get_vui_params_op.u1_colour_primaries; in getVuiParams() [all …]
|
/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/native/libs/ui/include/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/services/surfaceflinger/tests/unittests/ |
D | DisplayTransactionTest.cpp | 1293 void populateDummyDisplayNativePrimaries(ui::DisplayPrimaries& primaries); 1294 void checkDummyDisplayNativePrimaries(const ui::DisplayPrimaries& primaries); 1306 ui::DisplayPrimaries& primaries) { in populateDummyDisplayNativePrimaries() argument 1308 primaries.red.X = startingVal++; in populateDummyDisplayNativePrimaries() 1309 primaries.red.Y = startingVal++; in populateDummyDisplayNativePrimaries() 1310 primaries.red.Z = startingVal++; in populateDummyDisplayNativePrimaries() 1311 primaries.green.X = startingVal++; in populateDummyDisplayNativePrimaries() 1312 primaries.green.Y = startingVal++; in populateDummyDisplayNativePrimaries() 1313 primaries.green.Z = startingVal++; in populateDummyDisplayNativePrimaries() 1314 primaries.blue.X = startingVal++; in populateDummyDisplayNativePrimaries() [all …]
|
D | TestableSurfaceFlinger.h | 202 void setInternalDisplayPrimaries(const ui::DisplayPrimaries& primaries) { in setInternalDisplayPrimaries() argument 203 memcpy(&mFlinger->mInternalDisplayPrimaries, &primaries, sizeof(ui::DisplayPrimaries)); in setInternalDisplayPrimaries() 295 ui::DisplayPrimaries &primaries) { in getDisplayNativePrimaries() argument 296 return mFlinger->SurfaceFlinger::getDisplayNativePrimaries(displayToken, primaries); in getDisplayNativePrimaries()
|
/frameworks/av/media/codec2/sfplugin/utils/ |
D | Codec2Mapper.cpp | 742 bool C2Mapper::map(C2Color::primaries_t primaries, C2Color::matrix_t matrix, int32_t *standard) { in map() argument 748 if (!sColorPrimariesSf.map(primaries, &sfPrimaries)) { in map() 750 if (primaries < C2Color::PRIMARIES_VENDOR_START || primaries > C2Color::PRIMARIES_OTHER) { in map() 755 sfPrimaries = (ColorAspects::Primaries)primaries; in map() 776 bool C2Mapper::map(int32_t standard, C2Color::primaries_t *primaries, C2Color::matrix_t *matrix) { in map() argument 785 if (!sColorPrimariesSf.map(sfPrimaries, primaries)) { in map() 787 *primaries = (C2Color::primaries_t)sfPrimaries; in map() 788 if (*primaries < C2Color::PRIMARIES_VENDOR_START || *primaries > C2Color::PRIMARIES_OTHER) { in map() 789 *primaries = C2Color::PRIMARIES_OTHER; in map() 870 C2Color::range_t range, C2Color::primaries_t primaries, in map() argument [all …]
|
/frameworks/base/core/jni/ |
D | android_view_SurfaceControl.cpp | 843 ui::DisplayPrimaries primaries; in nativeGetDisplayNativePrimaries() local 844 if (SurfaceComposerClient::getDisplayNativePrimaries(token, primaries) != NO_ERROR) { in nativeGetDisplayNativePrimaries() 879 env->SetFloatField(jred, gCieXyzClassInfo.X, primaries.red.X); in nativeGetDisplayNativePrimaries() 880 env->SetFloatField(jred, gCieXyzClassInfo.Y, primaries.red.Y); in nativeGetDisplayNativePrimaries() 881 env->SetFloatField(jred, gCieXyzClassInfo.Z, primaries.red.Z); in nativeGetDisplayNativePrimaries() 882 env->SetFloatField(jgreen, gCieXyzClassInfo.X, primaries.green.X); in nativeGetDisplayNativePrimaries() 883 env->SetFloatField(jgreen, gCieXyzClassInfo.Y, primaries.green.Y); in nativeGetDisplayNativePrimaries() 884 env->SetFloatField(jgreen, gCieXyzClassInfo.Z, primaries.green.Z); in nativeGetDisplayNativePrimaries() 885 env->SetFloatField(jblue, gCieXyzClassInfo.X, primaries.blue.X); in nativeGetDisplayNativePrimaries() 886 env->SetFloatField(jblue, gCieXyzClassInfo.Y, primaries.blue.Y); in nativeGetDisplayNativePrimaries() [all …]
|
/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/ |
D | SurfaceFlingerProperties.cpp | 310 DisplayPrimaries primaries = in getDisplayNativePrimaries() local 324 return primaries; in getDisplayNativePrimaries()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | Credentials_test.cpp | 212 ui::DisplayPrimaries primaries; in TEST_F() local 213 return SurfaceComposerClient::getDisplayNativePrimaries(display, primaries); in TEST_F()
|
/frameworks/av/media/libstagefright/webm/ |
D | WebmElement.cpp | 392 int32_t primaries, transfer, coeffs; in VideoTrackEntry() local 395 aspects, &primaries, &transfer, &coeffs, &fullRange); in VideoTrackEntry() 397 colorInfo.push_back(new WebmUnsigned(kMkvPrimaries, primaries)); in VideoTrackEntry()
|
/frameworks/av/media/codec2/components/gav1/ |
D | C2SoftGav1Dec.cpp | 140 C2F(mDefaultColorAspects, primaries) in IntfImpl() 202 if (me.v.primaries > C2Color::PRIMARIES_OTHER) { in DefaultColorAspectsSetter() 203 me.set().primaries = C2Color::PRIMARIES_OTHER; in DefaultColorAspectsSetter() 654 if (defaultColorAspects->primaries == C2Color::PRIMARIES_BT2020 && in outputBuffer()
|
/frameworks/av/media/codec2/components/aom/ |
D | C2SoftAomDec.cpp | 146 C2F(mDefaultColorAspects, primaries).inRange( in IntfImpl() 204 if (me.v.primaries > C2Color::PRIMARIES_OTHER) { in DefaultColorAspectsSetter() 205 me.set().primaries = C2Color::PRIMARIES_OTHER; in DefaultColorAspectsSetter() 668 if (defaultColorAspects->primaries == C2Color::PRIMARIES_BT2020 && in outputBuffer()
|
/frameworks/av/media/codec2/components/vpx/ |
D | C2SoftVpxDec.cpp | 201 C2F(mDefaultColorAspects, primaries).inRange( in IntfImpl() 256 if (me.v.primaries > C2Color::PRIMARIES_OTHER) { in DefaultColorAspectsSetter() 257 me.set().primaries = C2Color::PRIMARIES_OTHER; in DefaultColorAspectsSetter() 800 if (defaultColorAspects->primaries == C2Color::PRIMARIES_BT2020 && in outputBuffer()
|
/frameworks/av/media/codec2/core/include/ |
D | C2Config.h | 1460 C2Color::primaries_t primaries; member 1466 primaries(C2Color::PRIMARIES_UNSPECIFIED), in C2ColorAspectsStruct() 1472 : range(range_), primaries(primaries_), transfer(transfer_), matrix(matrix_) {} in C2ColorAspectsStruct() 1476 C2FIELD(primaries, "primaries")
|