/external/skqp/tests/ |
D | SRGBReadWritePixelsTest.cpp | 153 kSRGB, enumerator 161 case Encoding::kSRGB: return SkColorSpace::MakeSRGB(); in encoding_as_color_space() 170 case Encoding::kSRGB: return kSRGBA_8888_GrPixelConfig; in encoding_as_pixel_config() 179 case Encoding::kSRGB: return "sRGB"; in encoding_as_str() 263 test_write_read(Encoding::kSRGB, Encoding::kSRGB, Encoding::kSRGB, smallError, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 266 test_write_read(Encoding::kSRGB, Encoding::kSRGB, Encoding::kUntagged, error, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 270 test_write_read(Encoding::kSRGB, Encoding::kSRGB, Encoding::kLinear, error, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 274 test_write_read(Encoding::kSRGB, Encoding::kUntagged, Encoding::kSRGB, smallError, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 280 test_write_read(Encoding::kSRGB, Encoding::kLinear, Encoding::kSRGB, error, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 283 test_write_read(Encoding::kSRGB, Encoding::kLinear, Encoding::kUntagged, error, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | ColorSpaceTest.cpp | 224 sk_sp<SkColorSpace> space = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, srgbToXYZ); in DEF_TEST() 271 space = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kDCIP3); in DEF_TEST() 286 space = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kRec2020); in DEF_TEST() 303 sk_sp<SkColorSpace> strange = SkColorSpace::MakeRGB(fn, SkNamedGamut::kSRGB); in DEF_TEST() 319 sk_sp<SkColorSpace> twoDotTwo = SkColorSpace::MakeRGB(fn, SkNamedGamut::kSRGB); in DEF_TEST()
|
D | TableColorFilterTest.cpp | 20 auto rec2020 = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kRec2020); in DEF_TEST()
|
/external/skia/tests/ |
D | SRGBReadWritePixelsTest.cpp | 156 kSRGB, enumerator 164 case Encoding::kSRGB: return SkColorSpace::MakeSRGB(); in encoding_as_color_space() 173 case Encoding::kSRGB: return "sRGB"; in encoding_as_str() 249 test_write_read(Encoding::kSRGB, Encoding::kSRGB, Encoding::kSRGB, smallError, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 252 test_write_read(Encoding::kSRGB, Encoding::kSRGB, Encoding::kUntagged, error, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 256 test_write_read(Encoding::kSRGB, Encoding::kSRGB, Encoding::kLinear, error, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 260 test_write_read(Encoding::kSRGB, Encoding::kUntagged, Encoding::kSRGB, smallError, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 266 test_write_read(Encoding::kSRGB, Encoding::kLinear, Encoding::kSRGB, error, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 269 test_write_read(Encoding::kSRGB, Encoding::kLinear, Encoding::kUntagged, error, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 271 test_write_read(Encoding::kSRGB, Encoding::kLinear, Encoding::kLinear, error, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | ColorSpaceTest.cpp | 225 sk_sp<SkColorSpace> space = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, srgbToXYZ); in DEF_TEST() 272 space = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kDisplayP3); in DEF_TEST() 287 space = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kRec2020); in DEF_TEST() 304 sk_sp<SkColorSpace> strange = SkColorSpace::MakeRGB(fn, SkNamedGamut::kSRGB); in DEF_TEST() 320 sk_sp<SkColorSpace> twoDotTwo = SkColorSpace::MakeRGB(fn, SkNamedGamut::kSRGB); in DEF_TEST() 348 sk_sp<SkColorSpace> bad = SkColorSpace::MakeRGB(fn, SkNamedGamut::kSRGB); in DEF_TEST() 353 skcms_TransferFunction tf = SkNamedTransferFn::kSRGB; in DEF_TEST() 354 skcms_Matrix3x3 gamut = SkNamedGamut::kSRGB; in DEF_TEST()
|
D | NdkDecodeTest.cpp | 81 SkColorSpace::MakeRGB(SkNamedTransferFn::kRec2020, SkNamedGamut::kSRGB), in DEF_TEST() 83 SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kDisplayP3), in DEF_TEST() 125 SkColorSpace::MakeRGB(SkNamedTransferFn::kRec2020, SkNamedGamut::kSRGB), in DEF_TEST() 127 SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kDisplayP3), in DEF_TEST() 139 for (auto gamut : { SkNamedGamut::kSRGB, SkNamedGamut::kAdobeRGB, SkNamedGamut::kDisplayP3, in DEF_TEST() 146 for (auto gamut : { SkNamedGamut::kSRGB, SkNamedGamut::kDisplayP3, in DEF_TEST() 163 unsupportedCs.push_back(SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, gamut)); in DEF_TEST() 166 for (auto fn : { SkNamedTransferFn::kSRGB, SkNamedTransferFn::k2Dot2, in DEF_TEST()
|
D | NdkEncodeTest.cpp | 274 { SkColorSpace::MakeRGB(SkNamedTransferFn::kRec2020, SkNamedGamut::kSRGB), "bt709" }, in DEF_TEST() 276 { SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kDisplayP3), "p3" }, in DEF_TEST() 312 for (auto gamut : { SkNamedGamut::kSRGB, SkNamedGamut::kAdobeRGB, SkNamedGamut::kDisplayP3, in DEF_TEST() 319 for (auto gamut : { SkNamedGamut::kSRGB, SkNamedGamut::kDisplayP3, in DEF_TEST() 336 unsupportedCs.push_back(SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, gamut)); in DEF_TEST() 339 for (auto fn : { SkNamedTransferFn::kSRGB, SkNamedTransferFn::k2Dot2, in DEF_TEST()
|
/external/skia/src/ports/ |
D | SkNDKConversions.cpp | 59 { ADATASPACE_SRGB, SkNamedTransferFn::kSRGB, SkNamedGamut::kSRGB }, 60 { ADATASPACE_SCRGB, SkNamedTransferFn::kSRGB, SkNamedGamut::kSRGB }, 61 { ADATASPACE_SCRGB_LINEAR, SkNamedTransferFn::kLinear, SkNamedGamut::kSRGB }, 62 { ADATASPACE_SRGB_LINEAR, SkNamedTransferFn::kLinear, SkNamedGamut::kSRGB }, 64 { ADATASPACE_DISPLAY_P3, SkNamedTransferFn::kSRGB, SkNamedGamut::kDisplayP3 }, 66 { ADATASPACE_BT709, SkNamedTransferFn::kRec2020, SkNamedGamut::kSRGB },
|
/external/skqp/src/core/ |
D | SkColorSpacePriv.h | 85 return transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.a, coeffs.a) && in is_almost_srgb() 86 transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.b, coeffs.b) && in is_almost_srgb() 87 transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.c, coeffs.c) && in is_almost_srgb() 88 transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.d, coeffs.d) && in is_almost_srgb() 89 transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.e, coeffs.e) && in is_almost_srgb() 90 transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.f, coeffs.f) && in is_almost_srgb() 91 transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.g, coeffs.g); in is_almost_srgb()
|
D | SkColorSpace.cpp | 48 if (xyz_almost_equal(toXYZ, SkNamedGamut::kSRGB)) { in MakeRGB() 51 tf = &SkNamedTransferFn::kSRGB.g; in MakeRGB() 55 if (xyz_almost_equal(toXYZ, SkNamedGamut::kSRGB)) { in MakeRGB() 73 static SkColorSpace* cs = SkColorSpaceSingletonFactory::Make(SkNamedTransferFn::kSRGB, in sk_srgb_singleton() 74 SkNamedGamut::kSRGB); in sk_srgb_singleton() 80 SkNamedGamut::kSRGB); in sk_srgb_linear_singleton() 161 return memcmp(fTransferFn, &SkNamedTransferFn::kSRGB.g, 7*sizeof(float)) == 0; in gammaCloseToSRGB() 184 return SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, gamut); in makeSRGBGamma() 241 return SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, profile.toXYZD50); in Make() 352 return make_named_tf(SkNamedTransferFn::kSRGB); in Deserialize()
|
/external/skia/src/core/ |
D | SkColorSpacePriv.h | 69 return transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.a, coeffs.a) && in is_almost_srgb() 70 transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.b, coeffs.b) && in is_almost_srgb() 71 transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.c, coeffs.c) && in is_almost_srgb() 72 transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.d, coeffs.d) && in is_almost_srgb() 73 transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.e, coeffs.e) && in is_almost_srgb() 74 transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.f, coeffs.f) && in is_almost_srgb() 75 transfer_fn_almost_equal(SkNamedTransferFn::kSRGB.g, coeffs.g); in is_almost_srgb()
|
D | SkColorSpace.cpp | 48 if (xyz_almost_equal(toXYZ, SkNamedGamut::kSRGB)) { in MakeRGB() 51 tf = &SkNamedTransferFn::kSRGB; in MakeRGB() 55 if (xyz_almost_equal(toXYZ, SkNamedGamut::kSRGB)) { in MakeRGB() 73 static SkColorSpace* cs = SkColorSpaceSingletonFactory::Make(SkNamedTransferFn::kSRGB, in sk_srgb_singleton() 74 SkNamedGamut::kSRGB); in sk_srgb_singleton() 80 SkNamedGamut::kSRGB); in sk_srgb_linear_singleton() 150 return memcmp(&fTransferFn, &SkNamedTransferFn::kSRGB, 7*sizeof(float)) == 0; in gammaCloseToSRGB() 169 return SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, fToXYZD50); in makeSRGBGamma() 217 return SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, profile.toXYZD50); in Make() 328 return make_named_tf(SkNamedTransferFn::kSRGB); in Deserialize()
|
/external/pdfium/core/fpdfapi/page/ |
D | cpdf_iccprofile.cpp | 15 static const char kSRGB[] = "sRGB IEC61966-2.1"; in DetectSRGB() local 16 return span.size() == 3144 && memcmp(&span[400], kSRGB, strlen(kSRGB)) == 0; in DetectSRGB()
|
/external/deqp-deps/amber/src/ |
D | type_test.cc | 222 EXPECT_TRUE(Type::IsInt(FormatMode::kSRGB)); in TEST_F() 234 EXPECT_FALSE(Type::IsSignedInt(FormatMode::kSRGB)); in TEST_F() 246 EXPECT_TRUE(Type::IsUnsignedInt(FormatMode::kSRGB)); in TEST_F() 258 EXPECT_FALSE(Type::IsFloat(FormatMode::kSRGB)); in TEST_F() 270 EXPECT_FALSE(Type::IsInt8(FormatMode::kSRGB, 8)); in TEST_F() 282 EXPECT_FALSE(Type::IsInt16(FormatMode::kSRGB, 16)); in TEST_F() 294 EXPECT_FALSE(Type::IsInt32(FormatMode::kSRGB, 32)); in TEST_F() 306 EXPECT_FALSE(Type::IsInt64(FormatMode::kSRGB, 64)); in TEST_F() 318 EXPECT_TRUE(Type::IsUint8(FormatMode::kSRGB, 8)); in TEST_F() 330 EXPECT_TRUE(Type::IsUint16(FormatMode::kSRGB, 16)); in TEST_F() [all …]
|
D | type_parser_test.cc | 191 {FormatComponentType::kA, FormatMode::kSRGB, 8}, in TEST_F() 192 {FormatComponentType::kB, FormatMode::kSRGB, 8}, in TEST_F() 193 {FormatComponentType::kG, FormatMode::kSRGB, 8}, in TEST_F() 194 {FormatComponentType::kR, FormatMode::kSRGB, 8}, in TEST_F() 299 {FormatComponentType::kB, FormatMode::kSRGB, 8}, in TEST_F() 300 {FormatComponentType::kG, FormatMode::kSRGB, 8}, in TEST_F() 301 {FormatComponentType::kR, FormatMode::kSRGB, 8}, in TEST_F() 302 {FormatComponentType::kA, FormatMode::kSRGB, 8}, in TEST_F() 367 {FormatComponentType::kB, FormatMode::kSRGB, 8}, in TEST_F() 368 {FormatComponentType::kG, FormatMode::kSRGB, 8}, in TEST_F() [all …]
|
/external/skqp/gm/ |
D | tosrgb_colorfilter.cpp | 29 auto rec2020 = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kRec2020); 39 auto narrow = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, narrowGamutRGBMatrix);
|
D | makecolorspace.cpp | 52 sk_sp<SkColorSpace> wideGamut = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, in onDraw() 92 auto rec2020 = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kRec2020);
|
/external/skia/modules/svg/src/ |
D | SkSVGFilterContext.cpp | 23 } else if (src == SkSVGColorspace::kSRGB && dst == SkSVGColorspace::kLinearRGB) { in ConvertFilterColorspace() 26 SkASSERT(src == SkSVGColorspace::kLinearRGB && dst == SkSVGColorspace::kSRGB); in ConvertFilterColorspace() 69 SkSVGColorspace inputCS = SkSVGColorspace::kSRGB; in getInput()
|
D | SkSVGFilter.cpp | 32 SkSVGColorspace cs = SkSVGColorspace::kSRGB; in buildFilterDAG() 61 if (cs != SkSVGColorspace::kSRGB) { in buildFilterDAG()
|
/external/skia/gm/ |
D | colorspace.cpp | 15 SkNamedTransferFn::kSRGB, 25 SkNamedGamut::kSRGB,
|
D | makecolorspace.cpp | 48 sk_sp<SkColorSpace> wideGamut = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, 85 auto rec2020 = SkColorSpace::MakeRGB(SkNamedTransferFn::kSRGB, SkNamedGamut::kRec2020);
|
/external/skqp/include/core/ |
D | SkColorSpace.h | 43 static constexpr skcms_TransferFunction kSRGB = variable 56 static constexpr skcms_Matrix3x3 kSRGB = {{ variable
|
/external/skia/include/core/ |
D | SkColorSpace.h | 42 static constexpr skcms_TransferFunction kSRGB = variable 64 static constexpr skcms_Matrix3x3 kSRGB = {{ variable
|
/external/skia/fuzz/ |
D | FuzzCreateDDL.cpp | 66 skcmsFn = SkNamedTransferFn::kSRGB; in gen_fuzzed_imageinfo() 109 skcmsMat = SkNamedGamut::kSRGB; in gen_fuzzed_imageinfo()
|
/external/skia/modules/svg/include/ |
D | SkSVGFilterContext.h | 27 , fPreviousResult({nullptr, filterEffectsRegion, SkSVGColorspace::kSRGB}) {} in SkSVGFilterContext()
|