/external/skia/tests/ |
SkColorSpaceXformStepsTest.cpp | 13 auto srgb = SkColorSpace::MakeSRGB(), local 16 srgb1 = srgb ->makeLinearGamma(), 36 { adobe, srgb, premul, premul, 44 { srgb, adobe, premul, premul, true,true,true,true,true }, 47 { adobe, srgb, unpremul, premul, false,true,true,true,true }, 48 { srgb, adobe, unpremul, premul, false,true,true,true,true }, 51 { adobe, srgb, opaque, premul, false,true,true,true,false }, 52 { srgb, adobe, opaque, premul, false,true,true,true,false }, 55 // Now let's go between sRGB and sRGB with a 2.2 gamma, the gamut staying the same [all...] |
NonlinearBlendingTest.cpp | 14 auto srgb = SkColorSpace::MakeSRGB(); local 18 srgb->toProfile(&srgb_profile); 39 SkColorSpaceXformSteps steps(srgb.get(), kUnpremul_SkAlphaType, 62 srgb.get(), kPremul_SkAlphaType);
|
ApplyGammaTest.cpp | 33 /** convert 0..1 linear value to 0..1 srgb */ 42 /** convert 0..1 srgb value to 0..1 linear */ 43 static float srgb_to_linear(float srgb) { 44 if (srgb <= 0.04045f) { 45 return srgb / 12.92f; 47 return powf((srgb + 0.055f) / 1.055f, 2.4f); 61 // need to unpremul before we can perform srgb magic
|
ColorSpaceTest.cpp | 149 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); local 181 REPORTER_ASSERT(r, SkColorSpace::Equals(srgb.get(), srgb.get())); 186 REPORTER_ASSERT(r, !SkColorSpace::Equals(nullptr, srgb.get())); 187 REPORTER_ASSERT(r, !SkColorSpace::Equals(srgb.get(), nullptr)); 188 REPORTER_ASSERT(r, !SkColorSpace::Equals(z30.get(), srgb.get())); 191 REPORTER_ASSERT(r, !SkColorSpace::Equals(srgb.get(), rgb4.get())); 214 // sRGB primaries (D65) 292 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); local 305 REPORTER_ASSERT(r, srgb->toXYZD50Hash() == strange->toXYZD50Hash()) 326 sk_sp<SkColorSpace> srgb = SkColorSpace::Make(*skcms_sRGB_profile()); local [all...] |
SRGBReadWritePixelsTest.cpp | 19 /** convert 0..1 srgb value to 0..1 linear */ 20 float srgb_to_linear(float srgb) { 21 if (srgb <= 0.04045f) { 22 return srgb / 12.92f; 24 return powf((srgb + 0.055f) / 1.055f, 2.4f); 28 /** convert 0..1 linear value to 0..1 srgb */ 98 static bool check_srgb_to_linear_conversion(uint32_t srgb, uint32_t linear, float error) { 99 return check_conversion<srgb_to_linear>(srgb, linear, error); 102 static bool check_linear_to_srgb_conversion(uint32_t linear, uint32_t srgb, float error) { 103 return check_conversion<linear_to_srgb>(linear, srgb, error) [all...] |
/external/skqp/tests/ |
SkColorSpaceXformStepsTest.cpp | 13 auto srgb = SkColorSpace::MakeSRGB(), local 16 srgb1 = srgb ->makeLinearGamma(), 36 { adobe, srgb, premul, premul, 44 { srgb, adobe, premul, premul, true,true,true,true,true }, 47 { adobe, srgb, unpremul, premul, false,true,true,true,true }, 48 { srgb, adobe, unpremul, premul, false,true,true,true,true }, 51 { adobe, srgb, opaque, premul, false,true,true,true,false }, 52 { srgb, adobe, opaque, premul, false,true,true,true,false }, 55 // Now let's go between sRGB and sRGB with a 2.2 gamma, the gamut staying the same [all...] |
NonlinearBlendingTest.cpp | 14 auto srgb = SkColorSpace::MakeSRGB(); local 18 srgb->toProfile(&srgb_profile); 39 SkColorSpaceXformSteps steps(srgb.get(), kUnpremul_SkAlphaType, 62 srgb.get(), kPremul_SkAlphaType);
|
ApplyGammaTest.cpp | 33 /** convert 0..1 linear value to 0..1 srgb */ 42 /** convert 0..1 srgb value to 0..1 linear */ 43 static float srgb_to_linear(float srgb) { 44 if (srgb <= 0.04045f) { 45 return srgb / 12.92f; 47 return powf((srgb + 0.055f) / 1.055f, 2.4f); 61 // need to unpremul before we can perform srgb magic
|
ColorSpaceTest.cpp | 149 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); local 181 REPORTER_ASSERT(r, SkColorSpace::Equals(srgb.get(), srgb.get())); 186 REPORTER_ASSERT(r, !SkColorSpace::Equals(nullptr, srgb.get())); 187 REPORTER_ASSERT(r, !SkColorSpace::Equals(srgb.get(), nullptr)); 188 REPORTER_ASSERT(r, !SkColorSpace::Equals(z30.get(), srgb.get())); 191 REPORTER_ASSERT(r, !SkColorSpace::Equals(srgb.get(), rgb4.get())); 214 // sRGB primaries (D65) 292 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); local 305 REPORTER_ASSERT(r, srgb->toXYZD50Hash() == strange->toXYZD50Hash()) 326 sk_sp<SkColorSpace> srgb = SkColorSpace::Make(*skcms_sRGB_profile()); local [all...] |
/external/skia/tools/fiddle/ |
fiddle_main.h | 39 DrawOptions(int w, int h, bool r, bool g, bool p, bool k, bool srgb, bool f16, 51 , srgb(srgb) 61 SkASSERT(srgb || !f16); 68 bool srgb; member in struct:DrawOptions
|
/external/skqp/tools/fiddle/ |
fiddle_main.h | 39 DrawOptions(int w, int h, bool r, bool g, bool p, bool k, bool srgb, bool f16, 51 , srgb(srgb) 61 SkASSERT(srgb || !f16); 68 bool srgb; member in struct:DrawOptions
|
/external/mesa3d/src/mesa/main/ |
formats.csv | 48 # - color space: rgb, srgb, yub, sz 148 # Packed sRGB formats 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 [all...] |
format_fallback.py | 45 if fmt.colorspace != 'srgb': 49 ('SRGB', 'RGB'), 50 ('SRGB', 'UNORM'), 66 # Every sRGB format MUST have a UNORM equivalent 93 * For an sRGB format, return the corresponding linear color space format. 94 * For non-sRGB formats, return the format as-is. 100 %for unorm, srgb in unorm_to_srgb_map: 101 case ${srgb}: 110 * For a linear format, return the corresponding sRGB color space format. 111 * For an sRGB format, return the format as-is [all...] |
/external/skia/bench/ |
GrMipMapBench.cpp | 37 auto srgb = SkColorSpace::MakeSRGB(); variable 39 SkImageInfo::Make(fW, fH, kRGBA_8888_SkColorType, kPremul_SkAlphaType, srgb);
|
/external/skia/gm/ |
tosrgb_colorfilter.cpp | 28 auto srgb = SkColorSpace::MakeSRGB(); local 31 // NarrowGamut RGB (an artifically smaller than sRGB gamut) 43 // Transforming sRGB -> sRGB should do nothing. Top two squares should look identical. 44 paint.setColorFilter(SkToSRGBColorFilter::Make(srgb)); 47 // Rec2020 -> sRGB should produce more vivid colors. 51 // Narrow -> sRGB should produce more muted colors.
|
color4f.cpp | 72 // even if it holds sRGB values. 96 auto srgb = SkColorSpace::MakeSRGB(); local 97 auto spin = srgb->makeColorSpin(); // RGB -> GBR 112 SkShader::MakeColorShader(c4, srgb),
|
makecolorspace.cpp | 29 // Assign an sRGB color space on the xformed image, so we can see the effects of the xform 31 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); local 33 srgb = SkColorSpace::MakeSRGBLinear(); 35 return SkImageMakeRasterCopyAndAssignColorSpace(xform.get(), srgb.get());
|
/external/skqp/bench/ |
GrMipMapBench.cpp | 37 auto srgb = SkColorSpace::MakeSRGB(); variable 39 SkImageInfo::Make(fW, fH, kRGBA_8888_SkColorType, kPremul_SkAlphaType, srgb);
|
/external/skqp/gm/ |
tosrgb_colorfilter.cpp | 28 auto srgb = SkColorSpace::MakeSRGB(); local 31 // NarrowGamut RGB (an artifically smaller than sRGB gamut) 43 // Transforming sRGB -> sRGB should do nothing. Top two squares should look identical. 44 paint.setColorFilter(SkToSRGBColorFilter::Make(srgb)); 47 // Rec2020 -> sRGB should produce more vivid colors. 51 // Narrow -> sRGB should produce more muted colors.
|
color4f.cpp | 72 // even if it holds sRGB values. 96 auto srgb = SkColorSpace::MakeSRGB(); local 97 auto spin = srgb->makeColorSpin(); // RGB -> GBR 112 SkShader::MakeColorShader(c4, srgb),
|
makecolorspace.cpp | 29 // Assign an sRGB color space on the xformed image, so we can see the effects of the xform 31 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); local 33 srgb = SkColorSpace::MakeSRGBLinear(); 35 return SkImageMakeRasterCopyAndAssignColorSpace(xform.get(), srgb.get());
|
/external/mesa3d/src/gallium/auxiliary/util/ |
u_format.csv | 114 # SRGB formats 115 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 [all...] |
/external/skia/src/gpu/effects/ |
GrSRGBEffect.cpp | 93 static inline float srgb_to_linear(float srgb) { 94 return (srgb <= 0.04045f) ? srgb / 12.92f : powf((srgb + 0.055f) / 1.055f, 2.4f);
|
/external/skqp/src/gpu/effects/ |
GrSRGBEffect.cpp | 92 static inline float srgb_to_linear(float srgb) { 93 return (srgb <= 0.04045f) ? srgb / 12.92f : powf((srgb + 0.055f) / 1.055f, 2.4f);
|
/external/mesa3d/src/amd/vulkan/ |
vk_format_layout.csv | 19 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...] |