Home
last modified time | relevance | path

Searched refs:srgb (Results 1 – 25 of 118) sorted by relevance

12345

/external/skia/tests/
DSkColorSpaceXformStepsTest.cpp13 auto srgb = SkColorSpace::MakeSRGB(), in DEF_TEST() local
16 srgb1 = srgb ->makeLinearGamma(), in DEF_TEST()
36 { adobe, srgb, premul, premul, in DEF_TEST()
44 { srgb, adobe, premul, premul, true,true,true,true,true }, in DEF_TEST()
47 { adobe, srgb, unpremul, premul, false,true,true,true,true }, in DEF_TEST()
48 { srgb, adobe, unpremul, premul, false,true,true,true,true }, in DEF_TEST()
51 { adobe, srgb, opaque, premul, false,true,true,true,false }, in DEF_TEST()
52 { srgb, adobe, opaque, premul, false,true,true,true,false }, in DEF_TEST()
56 { srgb, srgb22, premul, premul, in DEF_TEST()
64 { srgb22, srgb, premul, premul, true,true,false,true,true }, in DEF_TEST()
[all …]
DColorSpaceTest.cpp149 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); in DEF_TEST() local
181 REPORTER_ASSERT(r, SkColorSpace::Equals(srgb.get(), srgb.get())); in DEF_TEST()
186 REPORTER_ASSERT(r, !SkColorSpace::Equals(nullptr, srgb.get())); in DEF_TEST()
187 REPORTER_ASSERT(r, !SkColorSpace::Equals(srgb.get(), nullptr)); in DEF_TEST()
188 REPORTER_ASSERT(r, !SkColorSpace::Equals(z30.get(), srgb.get())); in DEF_TEST()
191 REPORTER_ASSERT(r, !SkColorSpace::Equals(srgb.get(), rgb4.get())); in DEF_TEST()
292 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); in DEF_TEST() local
305 REPORTER_ASSERT(r, srgb->toXYZD50Hash() == strange->toXYZD50Hash()); in DEF_TEST()
326 sk_sp<SkColorSpace> srgb = SkColorSpace::Make(*skcms_sRGB_profile()); in DEF_TEST() local
327 REPORTER_ASSERT(r, srgb->isSRGB()); in DEF_TEST()
DNonlinearBlendingTest.cpp14 auto srgb = SkColorSpace::MakeSRGB(); in DEF_TEST() local
18 srgb->toProfile(&srgb_profile); in DEF_TEST()
39 SkColorSpaceXformSteps steps(srgb.get(), kUnpremul_SkAlphaType, in DEF_TEST()
62 srgb.get(), kPremul_SkAlphaType); in DEF_TEST()
DSRGBReadWritePixelsTest.cpp20 float srgb_to_linear(float srgb) { in srgb_to_linear() argument
21 if (srgb <= 0.04045f) { in srgb_to_linear()
22 return srgb / 12.92f; in srgb_to_linear()
24 return powf((srgb + 0.055f) / 1.055f, 2.4f); in srgb_to_linear()
98 static bool check_srgb_to_linear_conversion(uint32_t srgb, uint32_t linear, float error) { in check_srgb_to_linear_conversion() argument
99 return check_conversion<srgb_to_linear>(srgb, linear, error); in check_srgb_to_linear_conversion()
102 static bool check_linear_to_srgb_conversion(uint32_t linear, uint32_t srgb, float error) { in check_linear_to_srgb_conversion() argument
103 return check_conversion<linear_to_srgb>(linear, srgb, error); in check_linear_to_srgb_conversion()
DApplyGammaTest.cpp43 static float srgb_to_linear(float srgb) { in srgb_to_linear() argument
44 if (srgb <= 0.04045f) { in srgb_to_linear()
45 return srgb / 12.92f; in srgb_to_linear()
47 return powf((srgb + 0.055f) / 1.055f, 2.4f); in srgb_to_linear()
/external/skqp/tests/
DSkColorSpaceXformStepsTest.cpp13 auto srgb = SkColorSpace::MakeSRGB(), in DEF_TEST() local
16 srgb1 = srgb ->makeLinearGamma(), in DEF_TEST()
36 { adobe, srgb, premul, premul, in DEF_TEST()
44 { srgb, adobe, premul, premul, true,true,true,true,true }, in DEF_TEST()
47 { adobe, srgb, unpremul, premul, false,true,true,true,true }, in DEF_TEST()
48 { srgb, adobe, unpremul, premul, false,true,true,true,true }, in DEF_TEST()
51 { adobe, srgb, opaque, premul, false,true,true,true,false }, in DEF_TEST()
52 { srgb, adobe, opaque, premul, false,true,true,true,false }, in DEF_TEST()
56 { srgb, srgb22, premul, premul, in DEF_TEST()
64 { srgb22, srgb, premul, premul, true,true,false,true,true }, in DEF_TEST()
[all …]
DColorSpaceTest.cpp149 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); in DEF_TEST() local
181 REPORTER_ASSERT(r, SkColorSpace::Equals(srgb.get(), srgb.get())); in DEF_TEST()
186 REPORTER_ASSERT(r, !SkColorSpace::Equals(nullptr, srgb.get())); in DEF_TEST()
187 REPORTER_ASSERT(r, !SkColorSpace::Equals(srgb.get(), nullptr)); in DEF_TEST()
188 REPORTER_ASSERT(r, !SkColorSpace::Equals(z30.get(), srgb.get())); in DEF_TEST()
191 REPORTER_ASSERT(r, !SkColorSpace::Equals(srgb.get(), rgb4.get())); in DEF_TEST()
292 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); in DEF_TEST() local
305 REPORTER_ASSERT(r, srgb->toXYZD50Hash() == strange->toXYZD50Hash()); in DEF_TEST()
326 sk_sp<SkColorSpace> srgb = SkColorSpace::Make(*skcms_sRGB_profile()); in DEF_TEST() local
327 REPORTER_ASSERT(r, srgb->isSRGB()); in DEF_TEST()
DNonlinearBlendingTest.cpp14 auto srgb = SkColorSpace::MakeSRGB(); in DEF_TEST() local
18 srgb->toProfile(&srgb_profile); in DEF_TEST()
39 SkColorSpaceXformSteps steps(srgb.get(), kUnpremul_SkAlphaType, in DEF_TEST()
62 srgb.get(), kPremul_SkAlphaType); in DEF_TEST()
DSRGBReadWritePixelsTest.cpp20 float srgb_to_linear(float srgb) { in srgb_to_linear() argument
21 if (srgb <= 0.04045f) { in srgb_to_linear()
22 return srgb / 12.92f; in srgb_to_linear()
24 return powf((srgb + 0.055f) / 1.055f, 2.4f); in srgb_to_linear()
98 static bool check_srgb_to_linear_conversion(uint32_t srgb, uint32_t linear, float error) { in check_srgb_to_linear_conversion() argument
99 return check_conversion<srgb_to_linear>(srgb, linear, error); in check_srgb_to_linear_conversion()
102 static bool check_linear_to_srgb_conversion(uint32_t linear, uint32_t srgb, float error) { in check_linear_to_srgb_conversion() argument
103 return check_conversion<linear_to_srgb>(linear, srgb, error); in check_linear_to_srgb_conversion()
DApplyGammaTest.cpp43 static float srgb_to_linear(float srgb) { in srgb_to_linear() argument
44 if (srgb <= 0.04045f) { in srgb_to_linear()
45 return srgb / 12.92f; in srgb_to_linear()
47 return powf((srgb + 0.055f) / 1.055f, 2.4f); in srgb_to_linear()
/external/mesa3d/src/mesa/main/
Dformats.csv48 # - color space: rgb, srgb, yub, sz
149 MESA_FORMAT_A8B8G8R8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , un8 , wzyx, srgb
150 MESA_FORMAT_B8G8R8A8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , un8 , zyxw, srgb
151 MESA_FORMAT_A8R8G8B8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , un8 , yzwx, srgb
152 MESA_FORMAT_B8G8R8X8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , x8 , zyx1, srgb
153 MESA_FORMAT_X8R8G8B8_SRGB , packed, 1, 1, 1, x8 , un8 , un8 , un8 , yzw1, srgb
154 MESA_FORMAT_R8G8B8A8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , un8 , xyzw, srgb
155 MESA_FORMAT_R8G8B8X8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , x8 , xyz1, srgb
156 MESA_FORMAT_X8B8G8R8_SRGB , packed, 1, 1, 1, x8 , un8 , un8 , un8 , wzy1, srgb
157 MESA_FORMAT_L8A8_SRGB , packed, 1, 1, 1, un8 , un8 , , , xxxy, srgb
[all …]
/external/mesa3d/src/intel/isl/
Disl_format_layout.csv113 B8G8R8A8_UNORM_SRGB , 32, 1, 1, 1, un8, un8, un8, un8, , , , srgb,
115 R10G10B10A2_UNORM_SRGB , 32, 1, 1, 1, un10, un10, un10, un2, , , , srgb,
119 R8G8B8A8_UNORM_SRGB , 32, 1, 1, 1, un8, un8, un8, un8, , , , srgb,
129 B10G10R10A2_UNORM_SRGB , 32, 1, 1, 1, un10, un10, un10, un2, , , , srgb,
149 B8G8R8X8_UNORM_SRGB , 32, 1, 1, 1, un8, un8, un8, x8, , , , srgb,
151 R8G8B8X8_UNORM_SRGB , 32, 1, 1, 1, un8, un8, un8, x8, , , , srgb,
165 B5G6R5_UNORM_SRGB , 16, 1, 1, 1, un5, un6, un5, , , , , srgb,
167 B5G5R5A1_UNORM_SRGB , 16, 1, 1, 1, un5, un5, un5, un1, , , , srgb,
169 B4G4R4A4_UNORM_SRGB , 16, 1, 1, 1, un4, un4, un4, un4, , , , srgb,
188 L8A8_UNORM_SRGB , 16, 1, 1, 1, , , , un8, un8, , , srgb,
[all …]
/external/skqp/tools/fiddle/
Dfiddle_main.h39 DrawOptions(int w, int h, bool r, bool g, bool p, bool k, bool srgb, bool f16, in DrawOptions()
51 , srgb(srgb) in DrawOptions()
61 SkASSERT(srgb || !f16); in DrawOptions()
68 bool srgb; member
/external/skia/tools/fiddle/
Dfiddle_main.h39 DrawOptions(int w, int h, bool r, bool g, bool p, bool k, bool srgb, bool f16, in DrawOptions()
51 , srgb(srgb) in DrawOptions()
61 SkASSERT(srgb || !f16); in DrawOptions()
68 bool srgb; member
/external/mesa3d/src/gallium/auxiliary/util/
Du_format.csv115 PIPE_FORMAT_L8_SRGB , plain, 1, 1, un8 , , , , xxx1, srgb
116 PIPE_FORMAT_L8A8_SRGB , plain, 1, 1, un8 , un8 , , , xxxy, srgb
117 PIPE_FORMAT_R8G8B8_SRGB , plain, 1, 1, un8 , un8 , un8 , , xyz1, srgb
118 PIPE_FORMAT_R8G8B8A8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , xyzw, srgb
119 PIPE_FORMAT_A8B8G8R8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , wzyx, srgb
120 PIPE_FORMAT_X8B8G8R8_SRGB , plain, 1, 1, x8 , un8 , un8 , un8 , wzy1, srgb
121 PIPE_FORMAT_B8G8R8A8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , zyxw, srgb
122 PIPE_FORMAT_B8G8R8X8_SRGB , plain, 1, 1, un8 , un8 , un8 , x8 , zyx1, srgb
123 PIPE_FORMAT_A8R8G8B8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , yzwx, srgb
124 PIPE_FORMAT_X8R8G8B8_SRGB , plain, 1, 1, x8 , un8 , un8 , un8 , yzw1, srgb
[all …]
/external/mesa3d/src/amd/vulkan/
Dvk_format_layout.csv19 VK_FORMAT_R8_SRGB , plain, 1, 1, un8 , , , , x001, srgb
26 VK_FORMAT_R8G8_SRGB , plain, 1, 1, un8 , un8 , , , xy01, srgb
33 VK_FORMAT_R8G8B8_SRGB , plain, 1, 1, un8 , un8 , un8 , , xyz1, srgb
40 VK_FORMAT_B8G8R8_SRGB , plain, 1, 1, un8 , un8 , un8 , , zyx1, srgb
47 VK_FORMAT_R8G8B8A8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , xyzw, srgb
54 VK_FORMAT_B8G8R8A8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , zyxw, srgb
61 VK_FORMAT_A8B8G8R8_SRGB_PACK32 , plain, 1, 1, un8 , un8 , un8 , un8 , xyzw, srgb
136 VK_FORMAT_BC1_RGB_SRGB_BLOCK , s3tc, 4, 4, x64 , , , , xyz1, srgb
138 VK_FORMAT_BC1_RGBA_SRGB_BLOCK , s3tc, 4, 4, x64 , , , , xyzw, srgb
140 VK_FORMAT_BC2_SRGB_BLOCK , s3tc, 4, 4, x128, , , , xyzw, srgb
[all …]
/external/skqp/src/gpu/effects/
DGrSRGBEffect.cpp92 static inline float srgb_to_linear(float srgb) { in srgb_to_linear() argument
93 return (srgb <= 0.04045f) ? srgb / 12.92f : powf((srgb + 0.055f) / 1.055f, 2.4f); in srgb_to_linear()
/external/skia/src/gpu/effects/
DGrSRGBEffect.cpp93 static inline float srgb_to_linear(float srgb) { in srgb_to_linear() argument
94 return (srgb <= 0.04045f) ? srgb / 12.92f : powf((srgb + 0.055f) / 1.055f, 2.4f); in srgb_to_linear()
/external/virglrenderer/src/gallium/auxiliary/util/
Du_format.csv114 PIPE_FORMAT_L8_SRGB , plain, 1, 1, un8 , , , , xxx1, srgb
115 PIPE_FORMAT_L8A8_SRGB , plain, 1, 1, un8 , un8 , , , xxxy, srgb
116 PIPE_FORMAT_R8G8B8_SRGB , plain, 1, 1, un8 , un8 , un8 , , xyz1, srgb
117 PIPE_FORMAT_R8G8B8A8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , xyzw, srgb
118 PIPE_FORMAT_A8B8G8R8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , wzyx, srgb
119 PIPE_FORMAT_X8B8G8R8_SRGB , plain, 1, 1, x8 , un8 , un8 , un8 , wzy1, srgb
120 PIPE_FORMAT_B8G8R8A8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , zyxw, srgb
121 PIPE_FORMAT_B8G8R8X8_SRGB , plain, 1, 1, un8 , un8 , un8 , x8 , zyx1, srgb
122 PIPE_FORMAT_A8R8G8B8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , yzwx, srgb
123 PIPE_FORMAT_X8R8G8B8_SRGB , plain, 1, 1, x8 , un8 , un8 , un8 , yzw1, srgb
[all …]
/external/skia/src/core/
DSkColorSpaceXformer.cpp142 void SkColorSpaceXformer::apply(SkColor* xformed, const SkColor* srgb, int n) { in apply() argument
143 fFromSRGBSrc.pixels = const_cast<SkColor*>(srgb); in apply()
148 SkColor SkColorSpaceXformer::apply(SkColor srgb) { in apply() argument
150 this->apply(&xformed, &srgb, 1); in apply()
/external/skqp/src/core/
DSkColorSpaceXformer.cpp142 void SkColorSpaceXformer::apply(SkColor* xformed, const SkColor* srgb, int n) { in apply() argument
143 fFromSRGBSrc.pixels = const_cast<SkColor*>(srgb); in apply()
148 SkColor SkColorSpaceXformer::apply(SkColor srgb) { in apply() argument
150 this->apply(&xformed, &srgb, 1); in apply()
/external/skia/gm/
Dcolor4f.cpp96 auto srgb = SkColorSpace::MakeSRGB(); variable
97 auto spin = srgb->makeColorSpin(); // RGB -> GBR
112 SkShader::MakeColorShader(c4, srgb),
Dmakecolorspace.cpp31 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); in make_color_space() local
33 srgb = SkColorSpace::MakeSRGBLinear(); in make_color_space()
35 return SkImageMakeRasterCopyAndAssignColorSpace(xform.get(), srgb.get()); in make_color_space()
/external/skqp/gm/
Dcolor4f.cpp96 auto srgb = SkColorSpace::MakeSRGB(); variable
97 auto spin = srgb->makeColorSpin(); // RGB -> GBR
112 SkShader::MakeColorShader(c4, srgb),
Dmakecolorspace.cpp31 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); in make_color_space() local
33 srgb = SkColorSpace::MakeSRGBLinear(); in make_color_space()
35 return SkImageMakeRasterCopyAndAssignColorSpace(xform.get(), srgb.get()); in make_color_space()

12345