HomeSort by relevance Sort by last modified time
    Searched full:dither (Results 1 - 25 of 174) sorted by null

1 2 3 4 5 6 7

  /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...]
  /frameworks/base/libs/hwui/
Dither.h 30 class Dither {
32 Dither(): mInitialized(false), mDitherTexture(0) { }
Dither.cpp 18 #include "Dither.h"
34 void Dither::bindDitherTexture() {
63 void Dither::clear() {
73 void Dither::setupProgram(Program* program, GLuint* textureUnit) {
Android.mk 16 Dither.cpp \
  /external/skia/src/core/
SkDither.cpp 10 /* The base dither matrix we use to derive optimized ones for 565 and 4444
25 For simplicity, we store 3 bits, and have the dither macros for green know
26 this, and they shift the dither value down by 1 to make it 2 bits.
45 #else // used packed shorts for a scanlines worth of dither values
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
  /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);
  /cts/tests/res/drawable/
ninepatchdrawable.xml 20 android:dither="true"
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
ProgramStoreTest.java 35 for (int dither = 0; dither <= 1; dither++) {
36 boolean isDither = (dither == 1);
  /frameworks/base/core/res/res/drawable/
dark_header_dither.xml 19 android:dither="true"
light_header_dither.xml 19 android:dither="true"
settings_header.xml 19 android:dither="true"
title_bar.xml 19 android:dither="true"
  /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;
  /sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/layout/refactoring/testdata/
drawable2-expected-completion51.txt 3 android:dither : Enables or disables dithering. [boolean]
  /development/samples/ApiDemos/src/com/example/android/apis/graphics/
ProxyDrawable.java 73 public void setDither(boolean dither) {
75 mProxy.setDither(dither);
  /external/jpeg/
djpeg.1 55 equivalent to \fB\-dct fast \-nosmooth \-onepass \-dither ordered\fR.
126 .B \-dither fs
129 .B \-dither ordered
132 .B \-dither none
135 is slow but usually produces the best results. Ordered dither is a compromise
138 Ordered dither is only available in
210 .B \-onepass \-dither ordered
212 .B \-dither none
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, we pad the color index tables by MAXJSAMPLE i
523 int * dither; \/* points to active row of dither matrix *\/ local
    [all...]
  /external/qemu/distrib/jpeg-6b/
djpeg.1 55 equivalent to \fB\-dct fast \-nosmooth \-onepass \-dither ordered\fR.
126 .B \-dither fs
129 .B \-dither ordered
132 .B \-dither none
135 is slow but usually produces the best results. Ordered dither is a compromise
138 Ordered dither is only available in
210 .B \-onepass \-dither ordered
212 .B \-dither none
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, we pad the color index tables by MAXJSAMPLE i
523 int * dither; \/* points to active row of dither matrix *\/ local
    [all...]
  /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);
  /cts/tests/res/xml/
bitmapdrawable.xml 21 android:dither="true"
  /system/media/audio_utils/include/audio_utils/
primitives.h 26 * Dither and clamp pairs of 32-bit input samples (sums) to 16-bit output samples (out).
32 * The name "dither" is a misnomer; the current implementation does not actually dither
53 * The current implementation truncates the sum rather than dither, but this may change.
  /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;

Completed in 1073 milliseconds

1 2 3 4 5 6 7