/external/skqp/tests/ |
ApplyGammaTest.cpp | 19 /** convert 0..1 linear value to 0..1 srgb */ 28 /** convert 0..1 srgb value to 0..1 linear */ 29 static float srgb_to_linear(float srgb) { 30 if (srgb <= 0.04045f) { 31 return srgb / 12.92f; 33 return powf((srgb + 0.055f) / 1.055f, 2.4f); 47 // need to unpremul before we can perform srgb magic
|
SRGBTest.cpp | 32 uint8_t srgb = linear_to_srgb(f); local 34 REPORTER_ASSERT(r, srgb >= prev); 35 prev = srgb;
|
/external/skia/gm/ |
gamma.cpp | 127 // sRGB sources decoded to linear before computing mipmaps? 132 // 50% grey via paint color. Paint color (SkColor) is specified to be sRGB! 150 // Shallow gradient around 50% (perceptual) gray. Endpoints are SkColor, so sRGB. 163 // Shallow 3-stop gradient around 50% (perceptual) gray. Endpoints are SkColor, so sRGB. 176 // Shallow N-stop gradient around 50% (perceptual) gray. Endpoints are SkColor, so sRGB. 191 // 50% grey from sRGB bitmap, with drawBitmap 192 nextBitmap(srgbGreyBmp, "sRGB BMP"); 199 // Bitmap wrapped in a shader (sRGB): 202 nextRect("sRGB BMP", "Shader");
|
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),
|
/external/skia/site/user/sample/ |
color.md | 65 The most common transfer function, sRGB, is actually free on GPU! GPU hardware can transform sRGB 66 to linear on reads and linear to sRGB on writes. 90 **SkColor** (stored on **SkPaint**) is assumed to be in the sRGB color space - meaning that it 91 is in the sRGB gamut and encoded with the sRGB transfer function. 107 // Remember that SkColor is always assumed to be sRGB as a convenience 137 bitmap.allocPixels(info); // Good: S32 is shorthand for 8888, sRGB 144 // sRGB, 8888
|
/external/skqp/gm/ |
gamma.cpp | 127 // sRGB sources decoded to linear before computing mipmaps? 132 // 50% grey via paint color. Paint color (SkColor) is specified to be sRGB! 150 // Shallow gradient around 50% (perceptual) gray. Endpoints are SkColor, so sRGB. 163 // Shallow 3-stop gradient around 50% (perceptual) gray. Endpoints are SkColor, so sRGB. 176 // Shallow N-stop gradient around 50% (perceptual) gray. Endpoints are SkColor, so sRGB. 191 // 50% grey from sRGB bitmap, with drawBitmap 192 nextBitmap(srgbGreyBmp, "sRGB BMP"); 199 // Bitmap wrapped in a shader (sRGB): 202 nextRect("sRGB BMP", "Shader");
|
/external/skqp/site/user/sample/ |
color.md | 65 The most common transfer function, sRGB, is actually free on GPU! GPU hardware can transform sRGB 66 to linear on reads and linear to sRGB on writes. 90 **SkColor** (stored on **SkPaint**) is assumed to be in the sRGB color space - meaning that it 91 is in the sRGB gamut and encoded with the sRGB transfer function. 107 // Remember that SkColor is always assumed to be sRGB as a convenience 137 bitmap.allocPixels(info); // Good: S32 is shorthand for 8888, sRGB 144 // sRGB, 8888
|
/external/libpng/contrib/libtests/ |
gentests.sh | 68 for gamma in "" --sRGB --linear --1.8 73 --sRGB) 74 gname="-srgb";;
|
/external/skia/src/effects/ |
SkToSRGBColorFilter.cpp | 24 // Linear and sRGB will return true to isNumericalTransferFn(), so we check them first. 40 // Step 2: Transform to sRGB gamut, without clamping. 48 // Step 3: Back to sRGB encoding.
|
/external/skia/tests/ |
SRGBTest.cpp | 32 uint8_t srgb = linear_to_srgb(f); local 34 REPORTER_ASSERT(r, srgb >= prev); 35 prev = srgb;
|
/external/skqp/src/effects/ |
SkToSRGBColorFilter.cpp | 24 // Linear and sRGB will return true to isNumericalTransferFn(), so we check them first. 40 // Step 2: Transform to sRGB gamut, without clamping. 48 // Step 3: Back to sRGB encoding.
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
lp_bld_format_srgb.c | 31 * Format conversion code for srgb formats. 33 * Functions for converting from srgb to linear and vice versa. 36 * srgb->linear: 40 * linear->srgb: 56 * 1) For srgb->linear, it is required that the error on the srgb side is 58 * to srgb from linear using the ideal conversion, it would not be off by 61 * 2) linear->srgb is permitted 0.6f which luckily looks like quite a large 63 * 3) Additionally, all srgb values converted to linear and back must result 82 * Convert srgb int values to linear float values [all...] |
/frameworks/base/graphics/java/android/graphics/ |
Color.java | 52 * <p>A color int always defines a color in the {@link ColorSpace.Named#SRGB sRGB} 137 * <p class="note"><b>sRGB color space:</b> for compatibility reasons and ease of 138 * use, color longs encoding {@link ColorSpace.Named#SRGB sRGB} colors do not 151 * <tr><td colspan="4">{@link ColorSpace.Named#SRGB sRGB} color space</td></tr> 175 * this doesn't quite hold for the special case of sRGB colors).</p> 194 * color space. To encode sRGB colors, use {@link #pack(float, float, float)} 229 * // sRGB [all...] |
/external/ImageMagick/PerlMagick/t/reference/composite/ |
Out.miff | 4 colorspace=sRGB
|
Xor.miff | 4 colorspace=sRGB
|
/external/ImageMagick/PerlMagick/t/reference/filter/ |
AdaptiveThreshold.miff | 4 colorspace=sRGB
|
Segment.miff | 4 colorspace=sRGB
|
/external/ImageMagick/PerlMagick/t/reference/read/ |
granite.miff | 4 colorspace=sRGB
|
input_tim.miff | 4 colorspace=sRGB
|
/external/libpng/contrib/oss-fuzz/ |
png.dict | 34 section_sRGB="sRGB"
|
/external/libpng/contrib/testpngs/ |
makepngs.sh | 47 for g in none sRGB linear 1.8 78 mpg none gray-alpha 8 # required: code coverage, sRGB opaque component 86 mpg sRGB palette 1 # required: code coverage 87 mpg sRGB rgb-alpha 16 # required: code coverage: pngread.c:2422 untested
|
/external/mesa3d/src/gallium/state_trackers/nine/ |
surface9.h | 39 struct pipe_surface *surface[2]; /* created on-demand (linear, sRGB) */ 94 NineSurface9_GetSurface( struct NineSurface9 *This, int sRGB ) 96 assert(This->surface[sRGB]); 97 return This->surface[sRGB];
|
/external/mesa3d/src/gallium/tests/graw/ |
SConscript | 29 'tex-srgb',
|
/external/pdfium/core/fpdfapi/page/ |
cpdf_iccprofile.cpp | 16 return dwSize == 3144 && memcmp(pData + 0x190, "sRGB IEC61966-2.1", 17) == 0;
|
/external/skia/include/effects/ |
SkToSRGBColorFilter.h | 18 * Color filter that converts from supplied color space to sRGB (both gamut and transfer function).
|