HomeSort by relevance Sort by last modified time
    Searched full:srgb (Results 51 - 75 of 1466) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/skia/gm/
makecolorspace.cpp 31 // Assign an sRGB color space on the xformed image, so we can see the effects of the xform
33 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); local
35 srgb = SkColorSpace::MakeSRGBLinear();
37 return SkImageMakeRasterCopyAndAssignColorSpace(xform.get(), srgb.get());
gamut.cpp 121 // We want our colors in our wide gamut to be obviously visibly distorted from sRGB, so we use
122 // Wide Gamut RGB (with sRGB gamma, for HW acceleration) as the working space for this test:
154 // Make our two working surfaces (one sRGB, one Wide)
185 // will look desaturated, relative to sRGB).
208 // sRGB primaries, rendered as paint color
212 // sRGB primaries, rendered as bitmaps
220 // Various gradients involving sRGB primaries and white/black
  /external/skia/src/core/
SkPM4fPriv.h 47 srgb = { rgb[0], rgb[1], rgb[2], (int)(255.0f * px[3] + 0.5f) }; local
50 SkNx_cast<uint8_t>(srgb).store(&s32);
66 static inline float exact_srgb_to_linear(float srgb) {
67 assert_unit(srgb);
69 if (srgb <= 0.04045) {
70 linear = srgb / 12.92f;
72 linear = powf((srgb + 0.055f) / 1.055f, 2.4f);
183 // sRGB gamma, sRGB gamut.
  /external/skqp/gm/
makecolorspace.cpp 31 // Assign an sRGB color space on the xformed image, so we can see the effects of the xform
33 sk_sp<SkColorSpace> srgb = SkColorSpace::MakeSRGB(); local
35 srgb = SkColorSpace::MakeSRGBLinear();
37 return SkImageMakeRasterCopyAndAssignColorSpace(xform.get(), srgb.get());
gamut.cpp 120 // We want our colors in our wide gamut to be obviously visibly distorted from sRGB, so we use
121 // Wide Gamut RGB (with sRGB gamma, for HW acceleration) as the working space for this test:
153 // Make our two working surfaces (one sRGB, one Wide)
184 // will look desaturated, relative to sRGB).
207 // sRGB primaries, rendered as paint color
211 // sRGB primaries, rendered as bitmaps
219 // Various gradients involving sRGB primaries and white/black
  /external/skqp/src/core/
SkPM4fPriv.h 47 srgb = { rgb[0], rgb[1], rgb[2], (int)(255.0f * px[3] + 0.5f) }; local
50 SkNx_cast<uint8_t>(srgb).store(&s32);
66 static inline float exact_srgb_to_linear(float srgb) {
67 assert_unit(srgb);
69 if (srgb <= 0.04045) {
70 linear = srgb / 12.92f;
72 linear = powf((srgb + 0.055f) / 1.055f, 2.4f);
183 // sRGB gamma, sRGB gamut.
  /frameworks/base/libs/hwui/
FloatColor.h 29 // "color" is a gamma-encoded sRGB color
32 // gamma-encoded sRGB color
40 // "color" is a gamma-encoded sRGB color
43 // gamma-encoded sRGB color
Texture.cpp 247 sk_sp<SkColorSpace> sRGB) {
251 hasLinearBlending ? sRGB : nullptr));
304 // RGBA16F is always linear extended sRGB
312 // If an RGBA16F bitmap needs conversion, we know the target will be sRGB
315 // If the bitmap is sRGB we don't need conversion
331 mConnector.reset(new ColorSpaceConnector(src, ColorSpace::sRGB()));
333 // A non-sRGB color space might have a transfer function close enough to sRGB
334 // that we can save shader instructions by using an sRGB sampler
335 // This is only possible if we have hardware support for sRGB texture
    [all...]
  /external/mesa3d/src/intel/isl/
isl_format_layout.csv 113 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/tests/
SRGBReadWritePixelsTest.cpp 20 /** convert 0..1 srgb value to 0..1 linear */
21 float srgb_to_linear(float srgb) {
22 if (srgb <= 0.04045f) {
23 return srgb / 12.92f;
25 return powf((srgb + 0.055f) / 1.055f, 2.4f);
29 /** convert 0..1 linear value to 0..1 srgb */
99 static bool check_srgb_to_linear_conversion(uint32_t srgb, uint32_t linear, float error) {
100 return check_conversion<srgb_to_linear>(srgb, linear, error);
103 static bool check_linear_to_srgb_conversion(uint32_t linear, uint32_t srgb, float error) {
104 return check_conversion<linear_to_srgb>(linear, srgb, error)
    [all...]
  /external/libpng/contrib/libtests/
pngstest.c 47 #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*/)
180 return sRGB(fixed_linear / 65535.);
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");
377 "sRGB-gray"
    [all...]
pngstest-errors.h 19 { /* 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/skia/src/gpu/vk/
GrVkUtil.h 48 * Returns true if the given vulkan texture format is sRGB encoded.
49 * Also provides the non-sRGB version, if there is one.
  /external/skqp/src/gpu/
GrYUVProvider.cpp 123 // If we're decoding an sRGB image, the result of our linear math on the YUV planes is already
124 // in sRGB. (The encoding is just math on bytes, with no concept of color spaces.) So, we need
125 // to output the results of that math directly to the buffer that we will then consider sRGB.
126 // If we have sRGB write control, we can just tell the HW not to do the Linear -> sRGB step.
127 // Otherwise, we do our shader math to go from YUV -> sRGB, manually convert sRGB -> Linear,
128 // then let the HW convert Linear -> sRGB.
  /external/skqp/src/gpu/vk/
GrVkUtil.h 48 * Returns true if the given vulkan texture format is sRGB encoded.
49 * Also provides the non-sRGB version, if there is one.
  /external/mesa3d/src/util/
format_srgb.h 30 * SRGB translation.
72 * Convert a unclamped linear float to srgb value in the [0,255].
113 * Convert an 8-bit sRGB value from non-linear space to a
130 * Convert a 8bit normalized value from linear to srgb.
140 * Convert a 8bit normalized value from srgb to linear.
  /cts/tests/tests/graphics/src/android/graphics/cts/
BitmapColorSpaceTest.java 70 ColorSpace sRGB = ColorSpace.get(ColorSpace.Named.SRGB);
74 b = Bitmap.createBitmap(32, 32, Bitmap.Config.ARGB_8888, true, sRGB);
77 assertSame(sRGB, cs);
85 b = Bitmap.createBitmap(32, 32, Bitmap.Config.RGBA_F16, true, sRGB);
96 b = Bitmap.createBitmap(32, 32, Bitmap.Config.RGB_565, true, sRGB);
99 assertSame(sRGB, cs);
105 assertSame(sRGB, cs);
107 b = Bitmap.createBitmap(32, 32, Bitmap.Config.ALPHA_8, true, sRGB);
110 assertSame(sRGB, cs)
303 int srgb = b.getPixel(15, 15); local
    [all...]
ColorSpaceTest.java 39 // Column-major RGB->XYZ transform matrix for the sRGB color space
45 // Column-major XYZ->RGB transform matrix for the sRGB color space
52 // Column-major RGB->XYZ transform matrix for the sRGB color space and a D50 white point
144 ColorSpace cs = ColorSpace.get(ColorSpace.Named.SRGB);
305 assertEquals(3, ColorSpace.get(ColorSpace.Named.SRGB).getComponentCount());
316 assertTrue(ColorSpace.get(ColorSpace.Named.SRGB).isSrgb());
324 ColorSpace.Rgb cs = new ColorSpace.Rgb("My sRGB", SRGB_TO_XYZ,
331 assertFalse(ColorSpace.get(ColorSpace.Named.SRGB).isWideGamut());
343 ColorSpace.Rgb cs = (ColorSpace.Rgb) ColorSpace.get(ColorSpace.Named.SRGB);
359 ColorSpace.Rgb cs = (ColorSpace.Rgb) ColorSpace.get(ColorSpace.Named.SRGB);
    [all...]
  /external/skia/include/core/
SkColorSpace.h 83 * Create the sRGB color space.
88 * Colorspace with the sRGB primaries, but a linear (1.0) gamma. Commonly used for
97 * Transfer function is the canonical sRGB curve, which has a short linear segment
142 * Returns true if the color space gamma is near enough to be approximated as sRGB.
143 * This includes the canonical sRGB transfer function as well as a 2.2f exponential
189 * linear sRGB.
194 * Returns a color space with the same gamut as this one, with with the sRGB transfer
196 * sRGB.
211 * Returns true if the color space is sRGB.
218 * This does not consider a 2.2f exponential transfer function to be sRGB. While thes
    [all...]
  /external/skia/src/gpu/
GrYUVProvider.cpp 113 // config is sRGB then we must use a sRGB color space.
134 // If we're decoding an sRGB image, the result of our linear math on the YUV planes is already
135 // in sRGB. (The encoding is just math on bytes, with no concept of color spaces.) So, we need
136 // to output the results of that math directly to the buffer that we will then consider sRGB.
137 // If we have sRGB write control, we can just tell the HW not to do the Linear -> sRGB step.
138 // Otherwise, we do our shader math to go from YUV -> sRGB, manually convert sRGB -> Linear,
139 // then let the HW convert Linear -> sRGB
    [all...]
  /external/skqp/include/core/
SkColorSpace.h 83 * Create the sRGB color space.
88 * Colorspace with the sRGB primaries, but a linear (1.0) gamma. Commonly used for
97 * Transfer function is the canonical sRGB curve, which has a short linear segment
142 * Returns true if the color space gamma is near enough to be approximated as sRGB.
143 * This includes the canonical sRGB transfer function as well as a 2.2f exponential
189 * linear sRGB.
194 * Returns a color space with the same gamut as this one, with with the sRGB transfer
196 * sRGB.
211 * Returns true if the color space is sRGB.
218 * This does not consider a 2.2f exponential transfer function to be sRGB. While thes
    [all...]
  /external/ImageMagick/ImageMagick/script/
color-management.html 58 <p>The first major change was to swap -colorspace RGB and -colorspace sRGB. In earlier versions, RGB really meant non-linear sRGB. With the completion of the changes, RGB now means linear color and sRGB means non-linear color in terms of their respective colorspaces.</p>
60 <p>ImageMagick supports color profiles, however, for images without a profile or a declaration of colorspace, ImageMagick assumes non-linear sRGB. Most image processing algorithms assume a linear colorspace, therefore it might be prudent to convert to linear color or remove the gamma function before certain image processing algorithms are applied. For example,</p>
63 convert myimage.jpg -colorspace RGB -resize 200% -colorspace sRGB mybigimage.jpg
66 <p>To declare that an image is linear RGB rather than sRGB, you can use the set option:</p>
72 <p>Afterwards, the verbose information for the output file lists the colorspace as RGB. This only works on image types containing meta data that distinguishes between linear RGB and non-linear sRGB, such as PNG and GIF. Therefore, if the above command is run with a JPG or TIF output format, the verbose information for the colorspace still shows sRGB. In order to properly have the JPG output know that it is linear RGB, include an appropriate color profile.</p>
81 <p>The same concept is needed when separating channels. Normally, the conversion to separate each channel of an sRGB color image produces separate linear grayscale images. However the same concept can be applied, if it is desired to keep the separate channels as non-linear grayscale. For example, the following produces non-linear grayscale channels.</p>
94 <p>In the above example, the result is darker than the original, because the channels were separate as linear gray and subsequently combined as linear color. In order to return the channels back to sRGB, one must change the colorspace from RGB back to sRGB after the <code>-combine</code> step.</p
    [all...]
  /external/ImageMagick/www/
color-management.html 62 <p>The first major change was to swap -colorspace RGB and -colorspace sRGB. In earlier versions, RGB really meant non-linear sRGB. With the completion of the changes, RGB now means linear color and sRGB means non-linear color in terms of their respective colorspaces.</p>
64 <p>ImageMagick supports color profiles, however, for images without a profile or a declaration of colorspace, ImageMagick assumes non-linear sRGB. Most image processing algorithms assume a linear colorspace, therefore it might be prudent to convert to linear color or remove the gamma function before certain image processing algorithms are applied. For example,</p>
67 convert myimage.jpg -colorspace RGB -resize 200% -colorspace sRGB mybigimage.jpg
70 <p>To declare that an image is linear RGB rather than sRGB, you can use the set option:</p>
76 <p>Afterwards, the verbose information for the output file lists the colorspace as RGB. This only works on image types containing meta data that distinguishes between linear RGB and non-linear sRGB, such as PNG and GIF. Therefore, if the above command is run with a JPG or TIF output format, the verbose information for the colorspace still shows sRGB. In order to properly have the JPG output know that it is linear RGB, include an appropriate color profile.</p>
85 <p>The same concept is needed when separating channels. Normally, the conversion to separate each channel of an sRGB color image produces separate linear grayscale images. However the same concept can be applied, if it is desired to keep the separate channels as non-linear grayscale. For example, the following produces non-linear grayscale channels.</p>
98 <p>In the above example, the result is darker than the original, because the channels were separate as linear gray and subsequently combined as linear color. In order to return the channels back to sRGB, one must change the colorspace from RGB back to sRGB after the <code>-combine</code> step.</p
    [all...]
  /external/skqp/tools/flags/
SkCommonFlagsConfig.cpp 52 { "glsrgb", "gpu", "api=gl,color=srgb" },
55 { "glessrgb", "gpu", "api=gles,color=srgb" },
57 { "glsrgb", "gpu", "api=gl,color=srgb" },
62 { "glessrgb", "gpu", "api=gles,color=srgb" },
83 ,{ "vksrgb", "gpu", "api=vulkan,color=srgb" }
90 ,{ "mtlsrgb", "gpu", "api=metal,color=srgb" }
101 "Options: 565 8888 srgb f16 nonrendering null pdf pdfa skp pipe svg xps";
147 "\t gamut\ttype: string\tdefault: srgb.\n"
148 "\t Select color gamut for f16 or sRGB format buffers.\n"
209 // Subtle logic: If the config has a color space attached, we're going to be rendering to sRGB,
    [all...]
  /external/skia/tests/
ApplyGammaTest.cpp 34 /** convert 0..1 linear value to 0..1 srgb */
43 /** convert 0..1 srgb value to 0..1 linear */
44 static float srgb_to_linear(float srgb) {
45 if (srgb <= 0.04045f) {
46 return srgb / 12.92f;
48 return powf((srgb + 0.055f) / 1.055f, 2.4f);
62 // need to unpremul before we can perform srgb magic

Completed in 619 milliseconds

1 23 4 5 6 7 8 91011>>