Home
last modified time | relevance | path

Searched full:srgb (Results 1 – 25 of 1258) sorted by relevance

12345678910>>...51

/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()
55 // Now let's go between sRGB and sRGB with a 2.2 gamma, the gamut staying the same. in DEF_TEST()
56 { srgb, srgb22, premul, premul, in DEF_TEST()
[all …]
DSRGBReadWritePixelsTest.cpp19 /** convert 0..1 srgb value to 0..1 linear */
20 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()
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) { 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()
[all …]
/external/skia/tests/
DSkColorSpaceXformStepsTest.cpp13 auto srgb = SkColorSpace::MakeSRGB(), in DEF_TEST() local
16 srgb1 = srgb ->makeLinearGamma(), in DEF_TEST()
37 { adobe, srgb, premul, premul, in DEF_TEST()
45 { srgb, adobe, premul, premul, true,true,true,true,true }, in DEF_TEST()
48 { adobe, srgb, unpremul, premul, false,true,true,true,true }, in DEF_TEST()
49 { srgb, adobe, unpremul, premul, false,true,true,true,true }, in DEF_TEST()
52 { adobe, srgb, opaque, premul, false,true,true,true,false }, in DEF_TEST()
53 { srgb, adobe, opaque, premul, false,true,true,true,false }, in DEF_TEST()
56 // Now let's go between sRGB and sRGB with a 2.2 gamma, the gamut staying the same. in DEF_TEST()
57 { srgb, srgb22, premul, premul, in DEF_TEST()
[all …]
DSRGBReadWritePixelsTest.cpp21 /** convert 0..1 srgb value to 0..1 linear */
22 float srgb_to_linear(float srgb) { in srgb_to_linear() argument
23 if (srgb <= 0.04045f) { in srgb_to_linear()
24 return srgb / 12.92f; in srgb_to_linear()
26 return powf((srgb + 0.055f) / 1.055f, 2.4f); in srgb_to_linear()
30 /** convert 0..1 linear value to 0..1 srgb */
100 static bool check_srgb_to_linear_conversion(uint32_t srgb, uint32_t linear, float error) { in check_srgb_to_linear_conversion() argument
101 return check_conversion<srgb_to_linear>(srgb, linear, error); in check_srgb_to_linear_conversion()
104 static bool check_linear_to_srgb_conversion(uint32_t linear, uint32_t srgb, float error) { in check_linear_to_srgb_conversion() argument
105 return check_conversion<linear_to_srgb>(linear, srgb, error); in check_linear_to_srgb_conversion()
[all …]
/external/ImageMagick/tests/
Dcli-colorspace.tap38 too_light=`eval ${MAGICK} "$in" -set colorspace RGB -colorspace sRGB "$out"`
42 printf "$format2" "Average \"rose:\" Color" "$average" "sRGB(rose)"
43 printf "$format2" "Too Dark Color" "$too_dark" "sRGB(rose)->RGB result"
44 printf "$format2" "Too Light Color" "$too_light" "RGB(rose)->sRGB result"
74 test="sRGB"
98 test_color RGB sRGB && echo "ok" || echo "not ok"
100 test_color XYZ sRGB && echo "ok" || echo "not ok"
101 test_color XYZ RGB sRGB && echo "ok" || echo "not ok"
102 test_color RGB XYZ sRGB && echo "ok" || echo "not ok"
104 test_color LAB sRGB && echo "ok" || echo "not ok"
[all …]
/external/pdfium/third_party/lcms/
D0019-utf8.patch74 //sRGB Curves are defined by:
76 -//If R?sRGB,G?sRGB, B?sRGB < 0.04045
77 +//If R'sRGB,G'sRGB, B'sRGB < 0.04045
79 -// R = R?sRGB / 12.92
80 -// G = G?sRGB / 12.92
81 -// B = B?sRGB / 12.92
82 +// R = R'sRGB / 12.92
83 +// G = G'sRGB / 12.92
84 +// B = B'sRGB / 12.92
87 -//else if R?sRGB,G?sRGB, B?sRGB >= 0.04045
[all …]
/external/angle/src/libANGLE/renderer/vulkan/shaders/src/
DImageCopy.frag65 // Whether source or destination are sRGB. They are brought to linear space for alpha
66 // premultiply/unmultiply, as well as to ensure the copy doesn't change values due to sRGB
80 // sRGB transform: y = sRGB(x) where x is linear and y is the sRGB encoding:
96 float sRGBToLinear(float sRGB)
98 // sRGB inverse transform: x = sRGB^(-1)(y) where x is linear and y is the sRGB encoding:
102 if (sRGB <= 0.04045)
104 return sRGB / 12.92;
108 return pow((sRGB + 0.055f) / 1.055f, 2.4f);
142 // Note: sRGB formats are unorm, so SrcIsFloat must be necessarily set
146 // If src is sRGB, then texelFetch has performed an sRGB->linear transformation. We need to
[all …]
/external/mesa3d/src/mesa/main/
Dformat_fallback.py45 if fmt.colorspace != 'srgb':
49 ('SRGB', 'RGB'),
50 ('SRGB', 'UNORM'),
66 # Every sRGB format MUST have a UNORM equivalent
107 * For an sRGB format, return the corresponding linear color space format.
108 * For non-sRGB formats, return the format as-is.
114 %for unorm, srgb in unorm_to_srgb_map:
115 case ${srgb}:
124 * For a linear format, return the corresponding sRGB color space format.
125 * For an sRGB format, return the format as-is.
[all …]
Dformats.csv48 # - color space: rgb, srgb, yub, sz
141 # Packed sRGB formats
142 MESA_FORMAT_A8B8G8R8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , un8 , wzyx, srgb
143 MESA_FORMAT_B8G8R8A8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , un8 , zyxw, srgb
144 MESA_FORMAT_A8R8G8B8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , un8 , yzwx, srgb
145 MESA_FORMAT_B8G8R8X8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , x8 , zyx1, srgb
146 MESA_FORMAT_X8R8G8B8_SRGB , packed, 1, 1, 1, x8 , un8 , un8 , un8 , yzw1, srgb
147 MESA_FORMAT_R8G8B8A8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , un8 , xyzw, srgb
148 MESA_FORMAT_R8G8B8X8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , x8 , xyz1, srgb
149 MESA_FORMAT_X8B8G8R8_SRGB , packed, 1, 1, 1, x8 , un8 , un8 , un8 , wzy1, srgb
[all …]
/external/libcups/examples/
Dipp-everywhere.test376 NAME "Print color.jpg-4x6 @ 150dpi, srgb-8"
377 SKIP-IF-MISSING pwg-raster-samples-150dpi/srgb-8/color.jpg-4x6-srgb-8-150dpi.pwg
389 FILE pwg-raster-samples-150dpi/srgb-8/color.jpg-4x6-srgb-8-150dpi.pwg
396 NAME "Print color.jpg-4x6 @ 150dpi, srgb-8, deflate"
397 SKIP-IF-MISSING pwg-raster-samples-150dpi/srgb-8/color.jpg-4x6-srgb-8-150dpi.pwg
412 FILE pwg-raster-samples-150dpi/srgb-8/color.jpg-4x6-srgb-8-150dpi.pwg
419 NAME "Print color.jpg-4x6 @ 150dpi, srgb-8, gzip"
420 SKIP-IF-MISSING pwg-raster-samples-150dpi/srgb-8/color.jpg-4x6-srgb-8-150dpi.pwg
435 FILE pwg-raster-samples-150dpi/srgb-8/color.jpg-4x6-srgb-8-150dpi.pwg
442 NAME "Print color.jpg-4x6 @ 150dpi, srgb-16"
[all …]
/external/lottie/lottie/src/main/java/com/airbnb/lottie/utils/
DGammaEvaluator.java12 // Opto-electronic conversion function for the sRGB color space
13 // Takes a gamma-encoded sRGB value and converts it to a linear sRGB value
20 // Electro-optical conversion function for the sRGB color space
21 // Takes a linear sRGB value and converts it to a gamma-encoded sRGB value
22 private static float EOCF_sRGB(float srgb) { in EOCF_sRGB() argument
24 return srgb <= 0.04045f ? srgb / 12.92f : (float) Math.pow((srgb + 0.055f) / 1.055f, 2.4f); in EOCF_sRGB()
41 // convert from sRGB to linear in evaluate()
56 // convert back to sRGB in the [0..255] range in evaluate()
/external/mesa3d/.gitlab-ci/
Ddeqp-freedreno-a630-bypass-fails.txt47 dEQP-GLES31.functional.blend_equation_advanced.srgb.colorburn,Fail
48 dEQP-GLES31.functional.blend_equation_advanced.srgb.colordodge,Fail
49 dEQP-GLES31.functional.blend_equation_advanced.srgb.darken,Fail
50 dEQP-GLES31.functional.blend_equation_advanced.srgb.difference,Fail
51 dEQP-GLES31.functional.blend_equation_advanced.srgb.exclusion,Fail
52 dEQP-GLES31.functional.blend_equation_advanced.srgb.hardlight,Fail
53 dEQP-GLES31.functional.blend_equation_advanced.srgb.hsl_color,Fail
54 dEQP-GLES31.functional.blend_equation_advanced.srgb.hsl_hue,Fail
55 dEQP-GLES31.functional.blend_equation_advanced.srgb.hsl_luminosity,Fail
56 dEQP-GLES31.functional.blend_equation_advanced.srgb.hsl_saturation,Fail
[all …]
/external/mesa3d/include/android_stub/android/
Ddata_space.h37 * It is safest to assume the buffer is an image with sRGB primaries and
48 * The red, green, and blue components are stored in extended sRGB space,
53 * A pixel value of 1.0, 1.0, 1.0 corresponds to sRGB white (D65) at 80 nits.
60 * sRGB gamma encoding:
62 * The red, green and blue components are stored in sRGB space, and
63 * converted to linear space when read, using the SRGB transfer function
77 * The red, green, and blue components are stored in extended sRGB space,
78 * and gamma-encoded using the SRGB transfer function.
82 * A pixel value of 1.0, 1.0, 1.0 corresponds to sRGB white (D65) at 80 nits.
92 * but sRGB transfer function.
[all …]
/external/mesa3d/src/util/format/
Du_format.csv49 # - color space: rgb, srgb, yuv, zs
124 # SRGB formats
125 PIPE_FORMAT_L8_SRGB , plain, 1, 1, 1, un8 , , , , xxx1, srgb
126 PIPE_FORMAT_R8_SRGB , plain, 1, 1, 1, un8 , , , , x001, srgb
127 PIPE_FORMAT_L8A8_SRGB , plain, 1, 1, 1, un8 , un8 , , , xxxy, srgb
128 PIPE_FORMAT_R8G8_SRGB , plain, 1, 1, 1, un8 , un8 , , , xy01, srgb
129 PIPE_FORMAT_R8G8B8_SRGB , plain, 1, 1, 1, un8 , un8 , un8 , , xyz1, srgb
130 PIPE_FORMAT_B8G8R8_SRGB , plain, 1, 1, 1, un8 , un8 , un8 , , zyx1, srgb
131 PIPE_FORMAT_R8G8B8A8_SRGB , plain, 1, 1, 1, un8 , un8 , un8 , un8 , xyzw, srgb
132 PIPE_FORMAT_A8B8G8R8_SRGB , plain, 1, 1, 1, un8 , un8 , un8 , un8 , wzyx, srgb
[all …]
/external/libpng/contrib/libtests/
Dpngstest.c47 #include "../tools/sRGB.h"
60 * misbehavior, such as using a simple power law to correct sRGB to linear.
149 /* sRGB support: use exact calculations rounded to the nearest int, see the
172 sRGB(double linear /*range 0.0 .. 1.0*/) in sRGB() function
180 return sRGB(fixed_linear / 65535.); in isRGB()
194 return sRGB((double)component / alpha);
235 * sRGB transform, given an 8-bit value which might be either sRGB or power-law.
359 printf(" --sRGB-16bit"); in print_opts()
377 "sRGB-gray",
378 "sRGB-gray+alpha",
[all …]
Dpngstest-errors.h19 { /* input: sRGB-gray */
24 }, { /* input: sRGB-gray+alpha */
29 }, { /* input: sRGB-rgb */
34 }, { /* input: sRGB-rgb+alpha */
59 }, { /* input: color-mapped-sRGB-gray */
64 }, { /* input: color-mapped-sRGB-gray+alpha */
69 }, { /* input: color-mapped-sRGB-rgb */
74 }, { /* input: color-mapped-sRGB-rgb+alpha */
103 { /* input: sRGB-gray */
105 }, { /* input: sRGB-gray+alpha */
[all …]
/external/virglrenderer/src/gallium/auxiliary/util/
Du_format.csv113 # SRGB formats
114 PIPE_FORMAT_L8_SRGB , plain, 1, 1, un8 , , , , xxx1, srgb
115 PIPE_FORMAT_R8_SRGB , plain, 1, 1, un8 , , , , x001, 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
[all …]
/external/oboe/samples/RhythmGame/third_party/glm/gtc/
Dcolor_space.hpp33 /// Convert a linear color to sRGB color using a standard gamma correction.
34 /// IEC 61966-2-1:1999 specification https://www.w3.org/Graphics/Color/srgb
38 /// Convert a linear color to sRGB color using a custom gamma correction.
39 /// IEC 61966-2-1:1999 specification https://www.w3.org/Graphics/Color/srgb
43 /// Convert a sRGB color to linear color using a standard gamma correction.
44 /// IEC 61966-2-1:1999 specification https://www.w3.org/Graphics/Color/srgb
48 /// Convert a sRGB color to linear color using a custom gamma correction.
49 // IEC 61966-2-1:1999 specification https://www.w3.org/Graphics/Color/srgb
/external/ImageMagick/www/
Dcolor-thresholding.html95 …e in the sRGB colorspace. Use the <code>-colorspace</code> to perform the thresholding in an alte…
97 …colorspace. For example, one might naively think that <code>sRGB(0,0,0)</code> to <code>sRGB(255,2…
107sRGB color (somewhere on the image -- in this case the yellow of the flowers) and offset it low an…
109 <ul><pre class="code">magick monet.jpg -color-threshold 'sRGB(163,112,0)-sRGB(203,152,40)' monet.gi…
115 <p>Now, pick two RGB colors: <code>sRGB(159,150,0)</code> and <code>sRGB(205,100,45):</code></p>
117 <ul><pre class="code">magick monet.jpg -color-threshold 'sRGB(159,150,0)-sRGB(205,100,45)' monet.gi…
121sRGB color and convert it to HSV and offset its values low and high to generate the start and stop…
124 magick xc:"srgb(183,132,20)" -colorspace HSV txt:
135 …V, and apply the RGB start and stop colors. Choose <code>sRGB(158,77,33)</code> and <code>sRGB(21…
137 <ul><pre class="code">magick monet.jpg -colorspace HSV -color-threshold "sRGB(158,77,33)-sRGB(213,2…
[all …]
Dcolor-management.html95sRGB on the Internet, most image formats use SRGB as the default working color space. If the colo…
97 … a profile or a declaration of colorspace, ImageMagick assumes non-linear sRGB. Most image proces…
99 <pre class="highlight"><code>magick myimage.jpg -colorspace RGB -resize 200% -colorspace sRGB mybig…
101 <p>To declare that an image is linear RGB rather than sRGB, you can use the set option:</p>
107sRGB, such as PNG and GIF. Therefore, if the above command is run with a JPG or TIF output format,…
122 …rating channels. Normally, the conversion to separate each channel of an sRGB color image produce…
136 magick myimage_channels_*.png -set colorspace RGB -combine -colorspace sRGB myimage2.png
139 <p>When converting to another colorspace and back, such as between sRGB and HSL, the following two …
142 magick myimage_channels_*.png -set colorspace HSL -combine -colorspace sRGB myimage2.png</code></pr…
145 magick myimage_channels_*.png -set colorspace HSL -combine -colorspace RGB -set colorspace sRGB myi…
[all …]
/external/libpng/contrib/tools/
DmakesRGB.c1 /* makesRGB.c -- build sRGB-to-linear and linear-to-sRGB conversion tables
10 * Make a table to convert 8-bit sRGB encoding values into the closest 16-bit
14 * approximation to the 8-bit sRGB encoded value. Calculate the error in these
27 #include "sRGB.h"
49 sRGB(unsigned int i) in sRGB() function
127 double lo = 255 * sRGB(i << 15); in main()
128 double hi = 255 * sRGB((i+1) << 15); in main()
155 unsigned int iexact = nearbyint(255*sRGB(i)); in main()
227 unsigned int iexact = nearbyint(255*sRGB(i)); in main()
308 unsigned int iexact = nearbyint(255*sRGB(i)); in main()
[all …]
/external/skqp/gm/
Dtosrgb_colorfilter.cpp28 auto srgb = SkColorSpace::MakeSRGB(); variable
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.
/external/mesa3d/src/intel/isl/
Disl_format_layout.csv113 …8R8A8_UNORM_SRGB , 32, 1, 1, 1, un8, un8, un8, un8, , , , bgra, srgb,
115 …G10B10A2_UNORM_SRGB , 32, 1, 1, 1, un10, un10, un10, un2, , , , rgba, srgb,
119 …8B8A8_UNORM_SRGB , 32, 1, 1, 1, un8, un8, un8, un8, , , , rgba, srgb,
129 …G10R10A2_UNORM_SRGB , 32, 1, 1, 1, un10, un10, un10, un2, , , , bgra, srgb,
150 …8R8X8_UNORM_SRGB , 32, 1, 1, 1, un8, un8, un8, x8, , , , bgra, srgb,
152 …8B8X8_UNORM_SRGB , 32, 1, 1, 1, un8, un8, un8, x8, , , , rgba, srgb,
166 …6R5_UNORM_SRGB , 16, 1, 1, 1, un5, un6, un5, , , , , bgr, srgb,
168 …5R5A1_UNORM_SRGB , 16, 1, 1, 1, un5, un5, un5, un1, , , , bgra, srgb,
170 …4R4A4_UNORM_SRGB , 16, 1, 1, 1, un4, un4, un4, un4, , , , bgra, srgb,
189 …8_UNORM_SRGB , 16, 1, 1, 1, , , , un8, un8, , , la, srgb,
[all …]
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_format_srgb.c31 * 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
83 * Convert srgb int values to linear float values.
149 * Convert linear float values to srgb int values.
[all …]
/external/mesa3d/.gitlab-ci/piglit/
Dquick_gl.txt937 spec/ext_framebuffer_multisample/accuracy 16 srgb: skip
938 spec/ext_framebuffer_multisample/accuracy 16 srgb depthstencil: skip
939 spec/ext_framebuffer_multisample/accuracy 16 srgb depthstencil linear: skip
940 spec/ext_framebuffer_multisample/accuracy 16 srgb linear: skip
941 spec/ext_framebuffer_multisample/accuracy 16 srgb small: skip
942 spec/ext_framebuffer_multisample/accuracy 16 srgb small depthstencil: skip
943 spec/ext_framebuffer_multisample/accuracy 16 srgb small depthstencil linear: skip
944 spec/ext_framebuffer_multisample/accuracy 16 srgb small linear: skip
961 spec/ext_framebuffer_multisample/accuracy 2 srgb: skip
962 spec/ext_framebuffer_multisample/accuracy 2 srgb linear: skip
[all …]

12345678910>>...51