Home
last modified time | relevance | path

Searched refs:dither (Results 1 – 25 of 94) sorted by relevance

1234

/external/skia/src/core/
DSkDither.h71 static inline SkPMColor SkDitherARGB32For565(SkPMColor c, unsigned dither) in SkDitherARGB32For565() argument
73 SkASSERT(dither <= SK_DitherValueMax565); in SkDitherARGB32For565()
76 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); in SkDitherARGB32For565()
81 sr = SkDITHER_R32_FOR_565(sr, dither); in SkDitherARGB32For565()
82 sg = SkDITHER_G32_FOR_565(sg, dither); in SkDitherARGB32For565()
83 sb = SkDITHER_B32_FOR_565(sb, dither); in SkDitherARGB32For565()
88 static inline SkPMColor SkDitherRGB32For565(SkPMColor c, unsigned dither) in SkDitherRGB32For565() argument
90 SkASSERT(dither <= SK_DitherValueMax565); in SkDitherRGB32For565()
95 sr = SkDITHER_R32_FOR_565(sr, dither); in SkDitherRGB32For565()
96 sg = SkDITHER_G32_FOR_565(sg, dither); in SkDitherRGB32For565()
[all …]
DSkBlitRow_D16.cpp98 unsigned dither = DITHER_VALUE(x); in S32_D565_Opaque_Dither() local
99 *dst++ = SkDitherRGB32To565(c, dither); in S32_D565_Opaque_Dither()
117 int dither = DITHER_VALUE(x); in S32_D565_Blend_Dither() local
121 sr = SkDITHER_R32To565(sr, dither); in S32_D565_Blend_Dither()
122 sg = SkDITHER_G32To565(sg, dither); in S32_D565_Blend_Dither()
123 sb = SkDITHER_B32To565(sb, dither); in S32_D565_Blend_Dither()
184 int dither = DITHER_VALUE(x); in S32A_D565_Blend_Dither() local
189 sr = SkDITHER_R32To565(sr, dither); in S32A_D565_Blend_Dither()
190 sg = SkDITHER_G32To565(sg, dither); in S32A_D565_Blend_Dither()
191 sb = SkDITHER_B32To565(sb, dither); in S32A_D565_Blend_Dither()
/external/skia/src/opts/
DSkBlitRow_opts_mips_dsp.cpp271 int dither[4]; in S32_D565_Opaque_Dither_mips_dsp() local
275 dither[i] = (dither_scan >> ((x & 3) << 2)) & 0xF; in S32_D565_Opaque_Dither_mips_dsp()
362 : [dither] "r" (dither) in S32_D565_Opaque_Dither_mips_dsp()
370 unsigned dither = DITHER_VALUE(x); in S32_D565_Opaque_Dither_mips_dsp() local
371 *dst++ = SkDitherRGB32To565(c, dither); in S32_D565_Opaque_Dither_mips_dsp()
388 int dither[4]; in S32_D565_Blend_Dither_mips_dsp() local
391 dither[i] = (dither_scan >> ((x & 3) << 2)) & 0xF; in S32_D565_Blend_Dither_mips_dsp()
511 : [dither]"r"(dither), [alpha]"r"(alpha) in S32_D565_Blend_Dither_mips_dsp()
520 int dither = DITHER_VALUE(x); in S32_D565_Blend_Dither_mips_dsp() local
524 sr = SkDITHER_R32To565(sr, dither); in S32_D565_Blend_Dither_mips_dsp()
[all …]
DSkBlitRow_opts_SSE2.cpp829 unsigned dither = DITHER_VALUE(x); in S32_D565_Opaque_Dither_SSE2() local
830 *dst++ = SkDitherRGB32To565(c, dither); in S32_D565_Opaque_Dither_SSE2()
836 __m128i dither; in S32_D565_Opaque_Dither_SSE2() local
854 dither = _mm_loadu_si128((__m128i*) dither_value); in S32_D565_Opaque_Dither_SSE2()
873 sr = _mm_add_epi16(sr, dither); in S32_D565_Opaque_Dither_SSE2()
886 sg = _mm_add_epi16(sg, _mm_srli_epi16(dither, 1)); in S32_D565_Opaque_Dither_SSE2()
899 sb = _mm_add_epi16(sb, dither); in S32_D565_Opaque_Dither_SSE2()
921 unsigned dither = DITHER_VALUE(x); in S32_D565_Opaque_Dither_SSE2() local
922 *dst++ = SkDitherRGB32To565(c, dither); in S32_D565_Opaque_Dither_SSE2()
969 __m128i dither, dither_cur; in S32A_D565_Opaque_Dither_SSE2() local
[all …]
DSkBlitRow_opts_arm_neon.cpp857 int dither = DITHER_VALUE(x); in S32_D565_Blend_Dither_neon() local
861 sr = SkDITHER_R32To565(sr, dither); in S32_D565_Blend_Dither_neon()
862 sg = SkDITHER_G32To565(sg, dither); in S32_D565_Blend_Dither_neon()
863 sb = SkDITHER_B32To565(sb, dither); in S32_D565_Blend_Dither_neon()
1420 unsigned dither = DITHER_VALUE(x); in S32A_D565_Opaque_Dither_neon() local
1422 int d = SkAlphaMul(dither, alpha); in S32A_D565_Opaque_Dither_neon()
1527 unsigned dither = DITHER_VALUE(x); in S32_D565_Opaque_Dither_neon() local
1528 *dst++ = SkDitherRGB32To565(c, dither); in S32_D565_Opaque_Dither_neon()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowPaint.java31 private boolean dither; field in ShadowPaint
206 public void setDither(boolean dither) { in setDither() argument
207 this.dither = dither; in setDither()
212 return dither; in isDither()
/external/skia/gm/
Dgradients.cpp104 GradientsGM(bool dither) : fDither(dither) { in GradientsGM() argument
164 GradientsLocalPerspectiveGM(bool dither) : fDither(dither) { in GradientsLocalPerspectiveGM() argument
223 GradientsViewPerspectiveGM(bool dither) : INHERITED(dither) { } in GradientsViewPerspectiveGM() argument
266 GradientsDegenrate2PointGM(bool dither) : fDither(dither) {} in GradientsDegenrate2PointGM() argument
311 ClampedGradientsGM(bool dither) : fDither(dither) {} in ClampedGradientsGM() argument
397 RadialGradient2GM(bool dither) : fDither(dither) {} in RadialGradient2GM() argument
471 RadialGradient3GM(bool dither) : fDither(dither) { } in RadialGradient3GM() argument
508 RadialGradient4GM(bool dither) : fDither(dither) { } in RadialGradient4GM() argument
546 LinearGradientGM(bool dither) : fDither(dither) { } in LinearGradientGM() argument
Dcmykjpeg.cpp27 bool dither = false; in onOnceBeforeDraw() local
39 codec->setDitherImage(dither); in onOnceBeforeDraw()
Dgradients_no_texture.cpp83 GradientsNoTextureGM(bool dither) : fDither(dither) { in GradientsNoTextureGM() argument
224 GradientsManyColorsGM(bool dither) : fDither(dither) {} in GradientsManyColorsGM() argument
Dshallowgradient.cpp40 ShallowGradientGM(MakeShaderProc proc, const char name[], bool dither) in ShallowGradientGM() argument
42 , fDither(dither) { in ShallowGradientGM()
/external/skia/tests/
DBlitRowTest.cpp138 bool dither = (k & 1) != 0; in test_00_FF() local
145 paint.setDither(dither); in test_00_FF()
150 SkDebugf("--- src index %d dither %d blend %d\n", j, dither, blend); in test_00_FF()
232 bool dither = (k & 1) != 0; in test_diagonal() local
234 paint.setDither(dither); in test_diagonal()
252 gColorTypeName[gDstColorType[i]], bgColor, dither, in test_diagonal()
/external/libjpeg-turbo/
Djdmerge.c446 #define DITHER_565_R(r, dither) ((r) + ((dither) & 0xFF)) argument
447 #define DITHER_565_G(g, dither) ((g) + (((dither) & 0xFF) >> 1)) argument
448 #define DITHER_565_B(b, dither) ((b) + ((dither) & 0xFF)) argument
Djdcolor.c594 #define DITHER_565_R(r, dither) ((r) + ((dither) & 0xFF)) argument
595 #define DITHER_565_G(g, dither) ((g) + (((dither) & 0xFF) >> 1)) argument
596 #define DITHER_565_B(b, dither) ((b) + ((dither) & 0xFF)) argument
/external/skia/src/effects/gradients/
DSkGradientShaderPriv.h129 GradientShaderCache(U8CPU alpha, bool dither, const SkGradientShaderBase& shader);
161 static void Build16bitCache(uint16_t[], SkColor c0, SkColor c1, int count, bool dither);
163 U8CPU alpha, uint32_t gradFlags, bool dither);
273 GradientShaderCache* refCache(U8CPU alpha, bool dither) const;
DSkGradientShader.cpp321 U8CPU alpha, bool dither, const SkGradientShaderBase& shader) in GradientShaderCache() argument
323 , fCacheDither(dither) in GradientShaderCache()
347 uint16_t cache[], SkColor c0, SkColor c1, int count, bool dither) { in Build16bitCache() argument
364 if (dither) { in Build16bitCache()
411 int count, U8CPU paintAlpha, uint32_t gradFlags, bool dither) { in Build32bitCache() argument
451 const SkUFixed bias0 = dither ? 0x2000 : 0x8000; in Build32bitCache()
452 const SkUFixed bias1 = dither ? 0x8000 : 0; in Build32bitCache()
453 const SkUFixed bias2 = dither ? 0xC000 : 0; in Build32bitCache()
454 const SkUFixed bias3 = dither ? 0x4000 : 0; in Build32bitCache()
620 bool dither) const { in refCache()
[all …]
DSkLinearGradient.cpp619 const float dither[2]) { in shade4_dx_clamp()
620 Sk4f dither0(dither[0]); in shade4_dx_clamp()
621 Sk4f dither1(dither[1]); in shade4_dx_clamp()
744 const float dither[2] = { dither0, dither1 }; in shade4_clamp() local
760 this->shade4_dx_clamp<true, true>(dstC, count, fx, dx, invDx, dither); in shade4_clamp()
762 this->shade4_dx_clamp<false, true>(dstC, count, fx, dx, invDx, dither); in shade4_clamp()
766 this->shade4_dx_clamp<true, false>(dstC, count, fx, dx, invDx, dither); in shade4_clamp()
768 this->shade4_dx_clamp<false, false>(dstC, count, fx, dx, invDx, dither); in shade4_clamp()
DSkLinearGradient.h55 float invDx, const float dither[2]);
/external/glide/library/src/main/java/com/bumptech/glide/request/target/
DSquaringDrawable.java51 public void setDither(boolean dither) { in setDither() argument
52 wrapped.setDither(dither); in setDither()
/external/skia/include/core/
DSkImageDecoder.h99 void setDitherImage(bool dither) { fDitherImage = dither; } in setDitherImage() argument
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/
Darith_routines.h39 const int16_t *dither, /* input: dither vector */
/external/deqp/android/cts/mnc/src/
Dgles3-pixelformat.txt11 dEQP-GLES3.functional.dither.*
/external/deqp/android/cts/master/src/
Dgles3-pixelformat.txt11 dEQP-GLES3.functional.dither.*
/external/eigen/bench/btl/data/
Dmk_new_gnuplot.sh52 convert -background white -density 120 -rotate 90 -resize 800 +dither -colors 256 -quality 0 ../${D…
/external/webp/src/utils/
Dquant_levels_dec.c137 const uint8_t* const dither = kOrderedDither[p->row_ % DSIZE]; in ApplyFilter() local
146 dst[x] = clip_8b(c + dither[x % DSIZE]); in ApplyFilter()
/external/skia/bench/
DGradientBench.cpp221 GradientBench(GradType gradType, GradData data, bool dither, bool force4f = false) in GradientBench() argument
228 if (dither) { in GradientBench()
236 fPaint.setDither(dither); in GradientBench()

1234