/external/skia/include/core/ |
H A D | SkDither.h | 71 static inline SkPMColor SkDitherARGB32For565(SkPMColor c, unsigned dither) argument 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) argument 90 SkASSERT(dither <= SK_DitherValueMax565); 95 sr = SkDITHER_R32_FOR_565(sr, dither); 102 SkDitherRGBTo565(U8CPU r, U8CPU g, U8CPU b, unsigned dither) argument 112 SkDitherRGB32To565(SkPMColor c, unsigned dither) argument 126 SkDitherARGB32To565(U8CPU sa, SkPMColor c, unsigned dither) argument 143 SkDitherARGB32To4444(U8CPU a, U8CPU r, U8CPU g, U8CPU b, unsigned dither) argument 156 SkDitherARGB32To4444(SkPMColor c, unsigned dither) argument [all...] |
H A D | SkImageDecoder.h | 90 /** Returns true if the decoder should try to dither the resulting image. 95 /** Set to true if the the decoder should try to dither the resulting image. 98 void setDitherImage(bool dither) { fDitherImage = dither; } argument
|
/external/skia/include/images/ |
H A D | SkDecodingImageGenerator.h | 35 * dither the resulting image when decoding to a smaller 55 Options(int sampleSize, bool dither) argument 57 , fDitherImage(dither) 61 Options(int sampleSize, bool dither, SkColorType colorType) argument 63 , fDitherImage(dither) 67 Options(int sampleSize, bool dither, SkColorType colorType, argument 70 , fDitherImage(dither)
|
/external/jpeg/ |
H A D | jmorecfg.h | 36 #define DITHER_565_R(r, dither) ((r) + ((dither)&0xFF)) 37 #define DITHER_565_G(g, dither) ((g) + (((dither)&0xFF)>>1)) 38 #define DITHER_565_B(b, dither) ((b) + ((dither)&0xFF))
|
H A D | jquant1.c | 55 * We use a standard 16x16 ordered dither array. The basic concept of ordered 59 * "dither" value to the input pixel and then round the result to the nearest 60 * output value. The dither value is equivalent to (0.5 - threshold) times 63 * worse, since the dither may be too much or too little at a given point. 65 * The normal calculation would be to form pixel value + dither, range-limit 71 #define ODITHER_SIZE 16 /* dimension of dither matrix */ 80 /* Bayer's order-4 dither array. Generated by the code given in 159 int row_index; /* cur row's vertical index in dither matrix */ 160 ODITHER_MATRIX_PTR odither[MAX_Q_COMPS]; /* one dither array per component */ 339 /* For ordered dither, w 523 int * dither; /* points to active row of dither matrix */ local [all...] |
/external/skia/gm/ |
H A D | cmykjpeg.cpp | 27 bool dither = false; variable 39 codec->setDitherImage(dither);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
H A D | ShadowPaint.java | 31 private boolean dither; field in class:ShadowPaint 206 public void setDither(boolean dither) { argument 207 this.dither = dither; 212 return dither;
|
/external/skia/src/core/ |
H A D | SkBlitRow_D16.cpp | 98 unsigned dither = DITHER_VALUE(x); local 99 *dst++ = SkDitherRGB32To565(c, dither); 117 int dither = DITHER_VALUE(x); local 121 sr = SkDITHER_R32To565(sr, dither); 122 sg = SkDITHER_G32To565(sg, dither); 123 sb = SkDITHER_B32To565(sb, dither); 184 int dither = DITHER_VALUE(x); local 189 sr = SkDITHER_R32To565(sr, dither); 190 sg = SkDITHER_G32To565(sg, dither); 191 sb = SkDITHER_B32To565(sb, dither); [all...] |
/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/ |
H A D | arith_routines.h | 39 const WebRtc_Word16 *dither, /* input: dither vector */
|
/external/skia/src/opts/ |
H A D | SkBlitRow_opts_mips_dsp.cpp | 271 int dither[4]; local 275 dither[i] = (dither_scan >> ((x & 3) << 2)) & 0xF; 290 "lw %[t0], 0(%[dither]) \n\t" 291 "lw %[t1], 4(%[dither]) \n\t" 296 "lw %[t0], 8(%[dither]) \n\t" 297 "lw %[t1], 12(%[dither]) \n\t" 362 : [dither] "r" (dither) 370 unsigned dither = DITHER_VALUE(x); local 371 *dst++ = SkDitherRGB32To565(c, dither); 388 int dither[4]; local 520 int dither = DITHER_VALUE(x); local [all...] |
H A D | SkBlitRow_opts_SSE2.cpp | 874 unsigned dither = DITHER_VALUE(x); local 875 *dst++ = SkDitherRGB32To565(c, dither); 881 __m128i dither; local 899 dither = _mm_loadu_si128((__m128i*) dither_value); 916 // SkDITHER_R32To565(sr, dither) 918 sr = _mm_add_epi16(sr, dither); 929 // SkDITHER_R32To565(sg, dither) 931 sg = _mm_add_epi16(sg, _mm_srli_epi16(dither, 1)); 942 // SkDITHER_R32To565(sb, dither) 944 sb = _mm_add_epi16(sb, dither); 966 unsigned dither = DITHER_VALUE(x); local 1014 __m128i dither, dither_cur; local [all...] |
H A D | SkBlitRow_opts_arm_neon.cpp | 726 /* dither matrix for Neon, derived from gDitherMatrix_3Bit_16. 727 * each dither value is spaced out into byte lanes, and repeated 749 /* select row and offset for dither array */ 752 uint8x8_t vdither = vld1_u8(dstart); // load dither values 753 uint8x8_t vdither_g = vshr_n_u8(vdither, 1); // calc. green dither values 770 // Load source and add dither 798 vsrc_dit_g = vaddl_u8(vsrc_g, vdither_g); // add in dither to green and widen 799 vsrc_dit_r = vaddl_u8(vsrc_r, vdither); // add in dither to red and widen 800 vsrc_dit_b = vaddl_u8(vsrc_b, vdither); // add in dither to blue and widen 857 int dither local 1420 unsigned dither = DITHER_VALUE(x); local 1527 unsigned dither = DITHER_VALUE(x); local [all...] |
/external/skia/include/gpu/ |
H A D | GrPaint.h | 62 void setDither(bool dither) { fDither = dither; } argument
|
/external/skia/tests/ |
H A D | BlitRowTest.cpp | 138 bool dither = (k & 1) != 0; local 145 paint.setDither(dither); 150 SkDebugf("--- src index %d dither %d blend %d\n", j, dither, blend); 232 bool dither = (k & 1) != 0; local 234 paint.setDither(dither); 250 ERRORF(reporter, "Diagonal colortype=%s bg=0x%x dither=%d" 252 gColorTypeName[gDstColorType[i]], bgColor, dither,
|
/external/eigen/bench/btl/data/ |
H A D | mk_new_gnuplot.sh | 52 convert -background white -density 120 -rotate 90 -resize 800 +dither -colors 256 -quality 0 ../${DIR}/$WHAT.ps -background white -flatten ../${DIR}/$WHAT.png
|
/external/glide/library/src/main/java/com/bumptech/glide/request/target/ |
H A D | SquaringDrawable.java | 51 public void setDither(boolean dither) { argument 52 wrapped.setDither(dither);
|
/external/mesa3d/src/gallium/state_trackers/vega/ |
H A D | image.h | 80 VGboolean dither);
|
H A D | api_images.c | 275 VGboolean dither) 291 width, height, dither); local 272 vegaCopyImage(VGImage dst, VGint dx, VGint dy, VGImage src, VGint sx, VGint sy, VGint width, VGint height, VGboolean dither) argument
|
/external/skia/bench/ |
H A D | GradientBench.cpp | 228 GradientBench(GradType gradType, GradData data, bool dither) { argument 233 fDither = dither; 234 if (dither) {
|
/external/mesa3d/src/gallium/include/pipe/ |
H A D | p_state.h | 272 unsigned dither:1; member in struct:pipe_blend_state
|
/external/webp/src/utils/ |
H A D | quant_levels_dec.c | 137 const uint8_t* const dither = kOrderedDither[p->row_ % DSIZE]; local 146 dst[x] = clip_8b(c + dither[x % DSIZE]);
|
/external/mesa3d/src/mesa/state_tracker/ |
H A D | st_atom_blend.c | 267 blend->dither = 1;
|
/external/skia/src/images/ |
H A D | SkScaledBitmapSampler.cpp | 194 // Unpremul, dither, and skip zeroes have no effect 553 // Ignore dither and skip zeroes 575 // Ignore skip and dither. 791 // Each column represents a different combination of dither and unpremul. 792 // D = dither ~D = no dither 857 for (int dither = 0; dither <= 1; ++dither) { 863 dummyDecoder.setDitherImage(SkToBool(dither)); [all...] |
/external/skia/src/gpu/gl/ |
H A D | GrGLGpu.h | 230 void flushDither(bool dither);
|
/external/mesa3d/src/gallium/drivers/r300/ |
H A D | r300_state.c | 231 uint32_t dither = 0; /* R300_RB3D_DITHER_CTL: 0x4e50 */ local 381 * out and never dither. 385 if (state->dither) { 386 dither = R300_RB3D_DITHER_CTL_DITHER_MODE_LUT | 409 OUT_CB_REG(R300_RB3D_DITHER_CTL, dither); 421 OUT_CB_REG(R300_RB3D_DITHER_CTL, dither); 431 OUT_CB_REG(R300_RB3D_DITHER_CTL, dither);
|