Searched refs:dither (Results 1 - 20 of 20) sorted by relevance

/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...]
H A DSkPaint.h147 @param dither true to enable dithering, false to disable it
149 void setDither(bool dither);
/external/jpeg/
H A Djmorecfg.h31 #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))
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 Djmorecfg.h33 #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))
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/skia/src/core/
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...]
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
/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/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/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/quake/quake/src/QW/client/
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_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;
H A Dvid_x.cpp1040 static int dither; variable
1044 if (dither == 0)
1047 dither = 1;
1053 if (dither)
1056 dither = 0;
/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/webkit/Source/ThirdParty/ANGLE/src/libGLESv2/
H A DContext.h181 bool dither; member in struct:gl::State
H A DContext.cpp83 mState.dither = true;
640 if (mState.dither != enabled)
642 mState.dither = enabled;
649 return mState.dither;
1122 case GL_DITHER: *params = mState.dither; break;
1944 device->SetRenderState(D3DRS_DITHERENABLE, mState.dither ? TRUE : FALSE);
/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 366 milliseconds