Home
last modified time | relevance | path

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

12345

/external/chromium_org/third_party/skia/include/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 …]
/external/skia/include/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 …]
/external/skia/include/images/
DSkDecodingImageGenerator.h55 Options(int sampleSize, bool dither) in Options()
57 , fDitherImage(dither) in Options()
61 Options(int sampleSize, bool dither, SkColorType colorType) in Options()
63 , fDitherImage(dither) in Options()
67 Options(int sampleSize, bool dither, SkColorType colorType, in Options()
70 , fDitherImage(dither) in Options()
/external/chromium_org/third_party/skia/include/images/
DSkDecodingImageGenerator.h55 Options(int sampleSize, bool dither) in Options()
57 , fDitherImage(dither) in Options()
61 Options(int sampleSize, bool dither, SkColorType colorType) in Options()
63 , fDitherImage(dither) in Options()
67 Options(int sampleSize, bool dither, SkColorType colorType, in Options()
70 , fDitherImage(dither) in Options()
/external/qemu/distrib/jpeg-6b/
Djmorecfg.h33 #define DITHER_565_R(r, dither) ((r) + ((dither)&0xFF)) argument
34 #define DITHER_565_G(g, dither) ((g) + (((dither)&0xFF)>>1)) argument
35 #define DITHER_565_B(b, dither) ((b) + ((dither)&0xFF)) argument
/external/chromium_org/third_party/skia/src/core/
DSkBlitRow_D16.cpp101 unsigned dither = DITHER_VALUE(x); in S32_D565_Opaque_Dither() local
102 *dst++ = SkDitherRGB32To565(c, dither); in S32_D565_Opaque_Dither()
120 int dither = DITHER_VALUE(x); in S32_D565_Blend_Dither() local
124 sr = SkDITHER_R32To565(sr, dither); in S32_D565_Blend_Dither()
125 sg = SkDITHER_G32To565(sg, dither); in S32_D565_Blend_Dither()
126 sb = SkDITHER_B32To565(sb, dither); in S32_D565_Blend_Dither()
187 int dither = DITHER_VALUE(x); in S32A_D565_Blend_Dither() local
192 sr = SkDITHER_R32To565(sr, dither); in S32A_D565_Blend_Dither()
193 sg = SkDITHER_G32To565(sg, dither); in S32A_D565_Blend_Dither()
194 sb = SkDITHER_B32To565(sb, dither); in S32A_D565_Blend_Dither()
/external/skia/src/core/
DSkBlitRow_D16.cpp101 unsigned dither = DITHER_VALUE(x); in S32_D565_Opaque_Dither() local
102 *dst++ = SkDitherRGB32To565(c, dither); in S32_D565_Opaque_Dither()
120 int dither = DITHER_VALUE(x); in S32_D565_Blend_Dither() local
124 sr = SkDITHER_R32To565(sr, dither); in S32_D565_Blend_Dither()
125 sg = SkDITHER_G32To565(sg, dither); in S32_D565_Blend_Dither()
126 sb = SkDITHER_B32To565(sb, dither); in S32_D565_Blend_Dither()
187 int dither = DITHER_VALUE(x); in S32A_D565_Blend_Dither() local
192 sr = SkDITHER_R32To565(sr, dither); in S32A_D565_Blend_Dither()
193 sg = SkDITHER_G32To565(sg, dither); in S32A_D565_Blend_Dither()
194 sb = SkDITHER_B32To565(sb, dither); in S32A_D565_Blend_Dither()
/external/jpeg/
Djmorecfg.h36 #define DITHER_565_R(r, dither) ((r) + ((dither)&0xFF)) argument
37 #define DITHER_565_G(g, dither) ((g) + (((dither)&0xFF)>>1)) argument
38 #define DITHER_565_B(b, dither) ((b) + ((dither)&0xFF)) argument
/external/chromium_org/third_party/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.cpp1068 unsigned dither = DITHER_VALUE(x); in S32_D565_Opaque_Dither_SSE2() local
1069 *dst++ = SkDitherRGB32To565(c, dither); in S32_D565_Opaque_Dither_SSE2()
1075 __m128i dither; in S32_D565_Opaque_Dither_SSE2() local
1093 dither = _mm_loadu_si128((__m128i*) dither_value); in S32_D565_Opaque_Dither_SSE2()
1112 sr = _mm_add_epi16(sr, dither); in S32_D565_Opaque_Dither_SSE2()
1125 sg = _mm_add_epi16(sg, _mm_srli_epi16(dither, 1)); in S32_D565_Opaque_Dither_SSE2()
1138 sb = _mm_add_epi16(sb, dither); in S32_D565_Opaque_Dither_SSE2()
1160 unsigned dither = DITHER_VALUE(x); in S32_D565_Opaque_Dither_SSE2() local
1161 *dst++ = SkDitherRGB32To565(c, dither); in S32_D565_Opaque_Dither_SSE2()
1208 __m128i dither, dither_cur; in S32A_D565_Opaque_Dither_SSE2() local
[all …]
DSkBlitRow_opts_arm_neon.cpp625 int dither = DITHER_VALUE(x); in S32_D565_Blend_Dither_neon() local
629 sr = SkDITHER_R32To565(sr, dither); in S32_D565_Blend_Dither_neon()
630 sg = SkDITHER_G32To565(sg, dither); in S32_D565_Blend_Dither_neon()
631 sb = SkDITHER_B32To565(sb, dither); in S32_D565_Blend_Dither_neon()
1313 unsigned dither = DITHER_VALUE(x); in S32A_D565_Opaque_Dither_neon() local
1315 int d = SkAlphaMul(dither, alpha); in S32A_D565_Opaque_Dither_neon()
1414 unsigned dither = DITHER_VALUE(myx); in S32_D565_Opaque_Dither_neon() local
1415 uint16_t val = SkDitherRGB32To565(c, dither); in S32_D565_Opaque_Dither_neon()
1418 c, dither, val, dst[i], dstart[i]); in S32_D565_Opaque_Dither_neon()
1441 unsigned dither = DITHER_VALUE(x); in S32_D565_Opaque_Dither_neon() local
[all …]
/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.cpp1068 unsigned dither = DITHER_VALUE(x); in S32_D565_Opaque_Dither_SSE2() local
1069 *dst++ = SkDitherRGB32To565(c, dither); in S32_D565_Opaque_Dither_SSE2()
1075 __m128i dither; in S32_D565_Opaque_Dither_SSE2() local
1093 dither = _mm_loadu_si128((__m128i*) dither_value); in S32_D565_Opaque_Dither_SSE2()
1112 sr = _mm_add_epi16(sr, dither); in S32_D565_Opaque_Dither_SSE2()
1125 sg = _mm_add_epi16(sg, _mm_srli_epi16(dither, 1)); in S32_D565_Opaque_Dither_SSE2()
1138 sb = _mm_add_epi16(sb, dither); in S32_D565_Opaque_Dither_SSE2()
1160 unsigned dither = DITHER_VALUE(x); in S32_D565_Opaque_Dither_SSE2() local
1161 *dst++ = SkDitherRGB32To565(c, dither); in S32_D565_Opaque_Dither_SSE2()
1208 __m128i dither, dither_cur; in S32A_D565_Opaque_Dither_SSE2() local
[all …]
DSkBlitRow_opts_arm_neon.cpp625 int dither = DITHER_VALUE(x); in S32_D565_Blend_Dither_neon() local
629 sr = SkDITHER_R32To565(sr, dither); in S32_D565_Blend_Dither_neon()
630 sg = SkDITHER_G32To565(sg, dither); in S32_D565_Blend_Dither_neon()
631 sb = SkDITHER_B32To565(sb, dither); in S32_D565_Blend_Dither_neon()
1313 unsigned dither = DITHER_VALUE(x); in S32A_D565_Opaque_Dither_neon() local
1315 int d = SkAlphaMul(dither, alpha); in S32A_D565_Opaque_Dither_neon()
1414 unsigned dither = DITHER_VALUE(myx); in S32_D565_Opaque_Dither_neon() local
1415 uint16_t val = SkDitherRGB32To565(c, dither); in S32_D565_Opaque_Dither_neon()
1418 c, dither, val, dst[i], dstart[i]); in S32_D565_Opaque_Dither_neon()
1441 unsigned dither = DITHER_VALUE(x); in S32_D565_Opaque_Dither_neon() local
[all …]
/external/robolectric/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/chromium_org/gpu/command_buffer/client/
Dclient_context_state_impl_autogen.h19 dither(true), in EnableFlags()
51 if (enable_flags.dither != enabled) { in SetCapabilityState()
53 enable_flags.dither = enabled; in SetCapabilityState()
102 *enabled = enable_flags.dither; in GetEnabled()
Dclient_context_state_autogen.h20 bool dither; member
/external/chromium_org/third_party/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/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/skia/gm/
Dcmykjpeg.cpp27 bool dither = false; in onOnceBeforeDraw() local
45 codec->setDitherImage(dither); in onOnceBeforeDraw()
/external/chromium_org/third_party/skia/gm/
Dcmykjpeg.cpp27 bool dither = false; in onOnceBeforeDraw() local
45 codec->setDitherImage(dither); in onOnceBeforeDraw()
/external/glide/library/src/main/java/com/bumptech/glide/request/target/
DSquaringDrawable.java46 public void setDither(boolean dither) { in setDither() argument
47 wrapped.setDither(dither); in setDither()
/external/skia/include/gpu/
DGrPaint.h84 void setDither(bool dither) { fDither = dither; } in setDither() argument
/external/chromium_org/third_party/skia/include/gpu/
DGrPaint.h84 void setDither(bool dither) { fDither = dither; } in setDither() argument
/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/
Darith_routines.h39 const WebRtc_Word16 *dither, /* input: dither vector */

12345