Home
last modified time | relevance | path

Searched refs:primaries (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/display/color/
DDisplayWhiteBalanceTintController.java244 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/
DColorSpace.java2440 @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/
DColorSpace.cpp150 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/
DColorUtils.cpp98 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/
DColorUtils.h114 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/
DC2SoftHevcDec.h130 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
DC2SoftHevcDec.cpp143 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/
DC2SoftMpeg2Dec.h170 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
DC2SoftMpeg2Dec.cpp128 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/
DC2SoftAvcDec.h171 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
DC2SoftAvcDec.cpp150 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/
DColorSpace.h107 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/
DColorSpace.h107 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/
DDisplayTransactionTest.cpp1293 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 …]
DTestableSurfaceFlinger.h202 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/
DCodec2Mapper.cpp742 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/
Dandroid_view_SurfaceControl.cpp843 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/
DColorUtilsTest.cpp218 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/
DSurfaceFlingerProperties.cpp310 DisplayPrimaries primaries = in getDisplayNativePrimaries() local
324 return primaries; in getDisplayNativePrimaries()
/frameworks/native/services/surfaceflinger/tests/
DCredentials_test.cpp212 ui::DisplayPrimaries primaries; in TEST_F() local
213 return SurfaceComposerClient::getDisplayNativePrimaries(display, primaries); in TEST_F()
/frameworks/av/media/libstagefright/webm/
DWebmElement.cpp392 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/
DC2SoftGav1Dec.cpp140 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/
DC2SoftAomDec.cpp146 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/
DC2SoftVpxDec.cpp201 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/
DC2Config.h1460 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")

12