HomeSort by relevance Sort by last modified time
    Searched refs:sRGB (Results 1 - 25 of 75) sorted by null

1 2 3

  /external/libpng/tests/
pngstest-sRGB 2 exec "${srcdir}/tests/pngstest" sRGB none
pngstest-sRGB-alpha 2 exec "${srcdir}/tests/pngstest" sRGB alpha
pngunknown-sAPI 2 exec ./pngunknown --strict bKGD=save cHRM=save gAMA=save all=discard iCCP=save sBIT=save sRGB=save "${srcdir}/pngtest.png"
pngstest 10 # gamma: one of; linear, 1.8, sRGB, none.
29 *-sRGB[.-]*)
30 test "$gamma" = "sRGB" && g="$f";;
  /external/ImageMagick/tests/
cli-colorspace.tap 38 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...]
  /frameworks/native/libs/ui/tests/
colorspace_test.cpp 41 ColorSpace sRGB("sRGB", sRGBToXYZ);
43 EXPECT_EQ(sRGBToXYZ, sRGB.getRGBtoXYZ());
44 EXPECT_EQ(XYZtoSRGB, sRGB.getXYZtoRGB());
54 ColorSpace sRGB("sRGB", sRGBToXYZ);
56 EXPECT_NEAR(0.640f, sRGB.getPrimaries()[0].x, 1e-5f);
57 EXPECT_NEAR(0.330f, sRGB.getPrimaries()[0].y, 1e-5f);
59 EXPECT_NEAR(0.300f, sRGB.getPrimaries()[1].x, 1e-5f);
60 EXPECT_NEAR(0.600f, sRGB.getPrimaries()[1].y, 1e-5f)
    [all...]
  /external/libpng/contrib/libtests/
gentests.sh 68 for gamma in "" --sRGB --linear --1.8
73 --sRGB)
74 gname="-srgb";;
pngstest.c 48 #include "../tools/sRGB.h"
61 * misbehavior, such as using a simple power law to correct sRGB to linear.
150 /* sRGB support: use exact calculations rounded to the nearest int, see the
173 sRGB(double linear /*range 0.0 .. 1.0*/)
181 return sRGB(fixed_linear / 65535.);
195 return sRGB((double)component / alpha);
236 * sRGB transform, given an 8-bit value which might be either sRGB or power-law.
360 printf(" --sRGB-16bit");
378 "sRGB-gray"
    [all...]
  /external/mesa3d/src/gallium/state_trackers/nine/
basetexture9.h 38 struct pipe_sampler_view *view[2]; /* linear and sRGB */
112 const int sRGB );
127 NineBaseTexture9_GetSamplerView( struct NineBaseTexture9 *This, const int sRGB )
129 if (!This->view[sRGB])
130 NineBaseTexture9_UpdateSamplerView(This, sRGB);
131 return This->view[sRGB];
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];
basetexture9.c 491 const int sRGB )
502 DBG("This=%p sRGB=%d\n", This, sRGB);
511 pipe_sampler_view_reference(&This->view[sRGB], NULL);
556 /* if requested and supported, convert to the sRGB format */
558 if (sRGB && srgb_format != PIPE_FORMAT_NONE &&
576 This->view[sRGB] = pipe->create_sampler_view(pipe, resource, &templ);
579 DBG("sampler view = %p(resource = %p)\n", This->view[sRGB], resource);
  /external/libpng/contrib/tools/
makesRGB.c 1 /* 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)
127 double lo = 255 * sRGB(i << 15);
128 double hi = 255 * sRGB((i+1) << 15);
155 unsigned int iexact = nearbyint(255*sRGB(i));
227 unsigned int iexact = nearbyint(255*sRGB(i))
    [all...]
  /external/swiftshader/src/Renderer/
Sampler.hpp 139 bool sRGB : 1;
165 void setReadSRGB(bool sRGB);
206 bool sRGB;
Sampler.cpp 61 sRGB = false;
96 state.sRGB = sRGB && Surface::isSRGBreadable(externalTextureFormat);
281 void Sampler::setReadSRGB(bool sRGB)
283 this->sRGB = sRGB;
PixelProcessor.hpp 230 void setReadSRGB(unsigned int sampler, bool sRGB);
244 void setWriteSRGB(bool sRGB);
VertexProcessor.hpp 257 void setReadSRGB(unsigned int sampler, bool sRGB);
Context.hpp 331 bool setWriteSRGB(bool sRGB);
  /cts/tests/tests/graphics/src/android/graphics/cts/
BitmapColorSpaceTest.java 66 ColorSpace sRGB = ColorSpace.get(ColorSpace.Named.SRGB);
70 b = Bitmap.createBitmap(32, 32, Bitmap.Config.ARGB_8888, true, sRGB);
73 assertSame(sRGB, cs);
81 b = Bitmap.createBitmap(32, 32, Bitmap.Config.RGBA_F16, true, sRGB);
92 b = Bitmap.createBitmap(32, 32, Bitmap.Config.RGB_565, true, sRGB);
95 assertSame(sRGB, cs);
101 assertSame(sRGB, cs);
103 b = Bitmap.createBitmap(32, 32, Bitmap.Config.ALPHA_8, true, sRGB);
106 assertSame(sRGB, cs)
299 int srgb = b.getPixel(15, 15); local
    [all...]
  /external/pdfium/core/fpdfapi/page/
cpdf_colorspace.h 50 bool sRGB() const;
  /frameworks/base/libs/hwui/
Texture.cpp 251 sk_sp<SkColorSpace> sRGB) {
254 bitmap.info().alphaType(), hasLinearBlending ? sRGB : nullptr));
309 // RGBA16F is always linear extended sRGB
317 // If an RGBA16F bitmap needs conversion, we know the target will be sRGB
320 // If the bitmap is sRGB we don't need conversion
336 mConnector.reset(new ColorSpaceConnector(src, ColorSpace::sRGB()));
338 // A non-sRGB color space might have a transfer function close enough to sRGB
339 // that we can save shader instructions by using an sRGB sampler
340 // This is only possible if we have hardware support for sRGB texture
    [all...]
Texture.h 52 bool hasLinearBlending, sk_sp<SkColorSpace> sRGB);
142 * to sRGB, or a valid pointer to a ColorSpaceConnector if a conversion
  /frameworks/base/core/jni/android/graphics/
Bitmap.cpp 462 auto sRGB = SkColorSpace::MakeSRGB();
463 auto xform = SkColorSpaceXform::New(sRGB.get(), colorSpace);
715 // they want linear sRGB.
719 // Skia needs a color space to convert to F16. nullptr should be treated as sRGB.
772 // Skia needs a color space to convert from F16. nullptr should be treated as sRGB.
    [all...]
  /frameworks/base/libs/hwui/renderthread/
OpenGLPipeline.cpp 373 // TODO: handle SRGB sanely
425 sk_sp<SkColorSpace> sRGB = SkColorSpace::MakeSRGB();
426 bitmap = uirenderer::Texture::uploadToN32(skBitmap, hasLinearBlending, std::move(sRGB));
  /frameworks/native/libs/ui/include/ui/
ColorSpace.h 233 static const ColorSpace sRGB();
  /frameworks/native/libs/ui/tools/
lutgen.cpp 54 cout << " sRGB" << endl;
82 return ColorSpace::sRGB();

Completed in 909 milliseconds

1 2 3