Searched defs:dither (Results 1 - 18 of 18) sorted by relevance

/external/skia/include/images/
H A DSkImageRef.h42 void setDitherImage(bool dither) { fDoDither = dither; } argument
H A DSkImageDecoder.h62 /** 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; } argument
/external/skia/src/core/
H A DSkBlitRow_D4444.cpp107 unsigned dither = DITHER_VALUE(x); local
108 *dst++ = SkDitherARGB32To4444(c, dither);
164 // need DitherExpand888To4444(expand, dither)
198 // no dither
205 // dither
H A DSkBlitRow_D16.cpp100 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...]
/external/skia/include/core/
H A DSkDither.h71 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...]
/external/skia/src/images/
H A DSkScaledBitmapSampler.cpp335 bool SkScaledBitmapSampler::begin(SkBitmap* dst, SrcConfig sc, bool dither, argument
338 // 8888 (no dither distinction)
367 if (dither) {
/external/skia/tests/
H A DBlitRowTest.cpp146 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);
/external/jpeg/
H A Djquant1.c55 * 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/qemu/distrib/jpeg-6b/
H A Djquant1.c55 * 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/quake/quake/src/QW/client/
H A Dvid_svgalib.c801 static int dither; variable
805 if (dither == 0)
808 dither = 1;
814 if (dither)
817 dither = 0;
H A Dvid_x.c948 static int dither; variable
952 if (dither == 0)
955 dither = 1;
961 if (dither)
964 dither = 0;
/external/quake/quake/src/WinQuake/
H A Dvid_svgalib.cpp788 static int dither; variable
792 if (dither == 0)
795 dither = 1;
801 if (dither)
804 dither = 0;
H A Dvid_x.cpp1040 static int dither; variable
1044 if (dither == 0)
1047 dither = 1;
1053 if (dither)
1056 dither = 0;
H A Dvid_sunx.cpp1105 static int dither; variable
1109 if (dither == 0)
1112 dither = 1;
1118 if (dither)
1121 dither = 0;
H A Dvid_sunxil.cpp1165 static int dither; variable
1169 if (dither == 0) {
1171 dither = 1;
1177 if (dither) {
1179 dither = 0;
/external/skia/src/opts/
H A DSkBlitRow_opts_arm.cpp303 /* 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...]
/external/webkit/Source/ThirdParty/ANGLE/src/libGLESv2/
H A DContext.h181 bool dither; member in struct:gl::State
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
H A Dorg.eclipse.swt.gtk.linux.x86_3.6.1.v3657a.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...

Completed in 893 milliseconds