/external/skia/include/core/ |
SkDither.h | 71 static inline SkPMColor SkDitherARGB32For565(SkPMColor c, unsigned dither) 73 SkASSERT(dither <= SK_DitherValueMax565); 76 dither = SkAlphaMul(dither, SkAlpha255To256(sa)); 81 sr = SkDITHER_R32_FOR_565(sr, dither); 82 sg = SkDITHER_G32_FOR_565(sg, dither); 83 sb = SkDITHER_B32_FOR_565(sb, dither); 88 static inline SkPMColor SkDitherRGB32For565(SkPMColor c, unsigned dither) 90 SkASSERT(dither <= SK_DitherValueMax565); 95 sr = SkDITHER_R32_FOR_565(sr, dither); [all...] |
/external/jpeg/ |
jmorecfg.h | 31 #define DITHER_565_R(r, dither) ((r) + ((dither)&0xFF)) 32 #define DITHER_565_G(g, dither) ((g) + (((dither)&0xFF)>>1)) 33 #define DITHER_565_B(b, dither) ((b) + ((dither)&0xFF))
|
/external/qemu/distrib/jpeg-6b/ |
jmorecfg.h | 33 #define DITHER_565_R(r, dither) ((r) + ((dither)&0xFF)) 34 #define DITHER_565_G(g, dither) ((g) + (((dither)&0xFF)>>1)) 35 #define DITHER_565_B(b, dither) ((b) + ((dither)&0xFF))
|
/external/skia/include/images/ |
SkImageRef.h | 42 void setDitherImage(bool dither) { fDoDither = dither; }
|
SkImageDecoder.h | 62 /** Returns true if the decoder should try to dither the resulting image. 67 /** Set to true if the the decoder should try to dither the resulting image. 70 void setDitherImage(bool dither) { fDitherImage = dither; }
|
/external/skia/src/core/ |
SkBlitRow_D16.cpp | 100 unsigned dither = DITHER_VALUE(x); local 101 *dst++ = SkDitherRGB32To565(c, dither); 119 int dither = DITHER_VALUE(x); local 123 sr = SkDITHER_R32To565(sr, dither); 124 sg = SkDITHER_G32To565(sg, dither); 125 sb = SkDITHER_B32To565(sb, dither); 186 int dither = DITHER_VALUE(x); local 191 sr = SkDITHER_R32To565(sr, dither); 192 sg = SkDITHER_G32To565(sg, dither); 193 sb = SkDITHER_B32To565(sb, dither); [all...] |
SkBlitRow_D4444.cpp | 107 unsigned dither = DITHER_VALUE(x); local 108 *dst++ = SkDitherARGB32To4444(c, dither); 164 // need DitherExpand888To4444(expand, dither) 198 // no dither 205 // dither
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
ProxyDrawable.java | 73 public void setDither(boolean dither) { 75 mProxy.setDither(dither);
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
ProgramStoreTest.java | 35 for (int dither = 0; dither <= 1; dither++) { 36 boolean isDither = (dither == 1);
|
/gdk/samples/PhotoEditor/jni/ |
whiteblack.cpp | 89 int32_t dither = random() % 256; local 90 int32_t diff_red = red * dither >> 8; 91 int32_t diff_green = green * dither >> 8; 92 int32_t diff_blue = blue * dither >> 8;
|
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/ |
UT_program_store.java | 114 boolean dither) { 123 _RS_ASSERT("ps.isDitherEnabled() == dither", ps.isDitherEnabled() == dither); 139 for (int dither = 0; dither <= 1; dither++) { 140 boolean isDither = (dither == 1);
|
/external/skia/tests/ |
BlitRowTest.cpp | 146 bool dither = (k & 1) != 0; local 153 paint.setDither(dither); 158 SkDebugf("--- src index %d dither %d blend %d\n", j, dither, blend); 241 bool dither = (k & 1) != 0; local 243 paint.setDither(dither); 260 str.printf("Diagonal config=%s bg=0x%x dither=%d alpha=0x%x src=0x%x", 261 gConfigName[gDstConfig[i]], bgColor, dither, alpha, c);
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
NinePatchDrawable.java | 264 public void setDither(boolean dither) { 265 if (mPaint == null && dither == DEFAULT_DITHER) { 266 // Fast common case -- leave at default dither. 269 getPaint().setDither(dither); 292 final boolean dither = a.getBoolean( 296 if (dither) { 326 padding, layoutInsets, dither), r); 413 NinePatchState(NinePatch ninePatch, Rect rect, Rect layoutInsets, boolean dither) { 417 mDither = dither;
|
PictureDrawable.java | 98 public void setDither(boolean dither) {}
|
ShapeDrawable.java | 278 public void setDither(boolean dither) { 279 mShapeState.mPaint.setDither(dither); 326 boolean dither = a.getBoolean(com.android.internal.R.styleable.ShapeDrawable_dither, false); 327 mShapeState.mPaint.setDither(dither);
|
/packages/apps/Settings/src/com/android/settings/drawable/ |
DrawableWrapper.java | 64 public void setDither(boolean dither) { 65 mDrawable.setDither(dither);
|
/system/core/libpixelflinger/ |
buffer.cpp | 39 int sh, int sl, int dh, int dl, int ch, int cl, int dither); 167 int dither = -1; local 169 dither = c->ditherMatrix[ (x & GGL_DITHER_MASK) + 196 v = downshift_component(v, u, pixelSize, 0, h, l, 0, 0, dither); 327 int dither) 336 if (dither>=0) { 339 if (shift >= 0) v += (dither >> shift) << sl; 340 else v += (dither << (-shift)) << sl; 344 // -> this is not really needed if we don't dither
|
/external/skia/src/opts/ |
SkBlitRow_opts_arm.cpp | 303 /* dither matrix for Neon, derived from gDitherMatrix_3Bit_16. 304 * each dither value is spaced out into byte lanes, and repeated 319 /* select row and offset for dither array */ 326 "vld1.8 {d31}, [%[dstart]] \n\t" // load dither values 327 "vshr.u8 d30, d31, #1 \n\t" // calc. green dither values 336 "vaddl.u8 q8, d0, d31 \n\t" // add in dither to red and widen 337 "vaddl.u8 q9, d1, d30 \n\t" // add in dither to green and widen 338 "vaddl.u8 q10, d2, d31 \n\t" // add in dither to blue and widen 387 int dither = DITHER_VALUE(x); local 391 sr = SkDITHER_R32To565(sr, dither); 1660 unsigned dither = DITHER_VALUE(x); local 1763 unsigned dither = DITHER_VALUE(myx); local 1790 unsigned dither = DITHER_VALUE(x); local [all...] |
/system/core/libpixelflinger/codeflinger/ |
load_store.cpp | 244 pixel_t& d, int component, component_t s, const reg_t& dither) 263 // see if we need to dither 348 if (shift>0) ADD(AL, 0, ireg, ireg, reg_imm(dither.reg, LSR, shift)); 349 else if (shift<0) ADD(AL, 0, ireg, ireg, reg_imm(dither.reg, LSL,-shift)); 350 else ADD(AL, 0, ireg, ireg, dither.reg);
|
GGLAssembler.cpp | 206 // update the dither index. 261 parts.dither = reg_t(regs.obtain()); 262 AND(AL, 0, parts.dither.reg, parts.count.reg, imm(mask)); 263 ADD(AL, 0, parts.dither.reg, parts.dither.reg, ctxtReg); 264 LDRB(AL, parts.dither.reg, parts.dither.reg, 370 // DD = dither offset 474 downshift(pixel, component, temp, parts.dither); [all...] |
/frameworks/ex/carousel/java/com/android/ex/carousel/ |
CarouselRS.java | 445 final boolean dither = true; 452 .setDitherEnabled(dither) 461 .setDitherEnabled(dither) 470 .setDitherEnabled(dither) 571 final boolean dither = true; 581 .setDitherEnabled(dither) [all...] |
/external/quake/quake/src/QW/client/ |
vid_x.c | 948 static int dither;
variable 952 if (dither == 0)
955 dither = 1;
961 if (dither)
964 dither = 0;
|
/external/quake/quake/src/WinQuake/ |
vid_sunx.cpp | 1105 static int dither; variable 1109 if (dither == 0) 1112 dither = 1; 1118 if (dither) 1121 dither = 0;
|
vid_sunxil.cpp | 1165 static int dither; variable 1169 if (dither == 0) { 1171 dither = 1; 1177 if (dither) { 1179 dither = 0;
|
vid_x.cpp | 1040 static int dither; variable 1044 if (dither == 0) 1047 dither = 1; 1053 if (dither) 1056 dither = 0;
|