Searched defs:shift (Results 76 - 100 of 657) sorted by last modified time

1234567891011>>

/external/skia/src/animator/
H A DSkAnimatorScript2.cpp290 int shift = 16; local
292 result |= SkClampMax(params->begin()[index].fS32, 255) << shift;
293 shift -= 8;
/external/skia/src/core/
H A DSkBitmap_scroll.cpp26 int shift = this->bytesPerPixel() >> 1; local
83 src -= dx << shift;
86 dst += dx << shift;
96 width <<= shift; // now width is the number of bytes to move per line local
H A DSkEdge.cpp16 the points into FDot6. This is modulated by the shift parameter, which
20 or pt * 256 for antialiasing. This is implemented as 1 << (shift + 6).
23 or pt >> 8 for antialiasing. This is implemented as pt >> (10 - shift).
28 // away data in value, so just perform a modify up-shift
35 int shift) {
39 float scale = float(1 << (shift + 6));
135 /* We store 1<<shift in a (signed) byte, so its maximum value is 1<<6 == 64.
159 // shift down dist (it is currently in dot6)
165 // each subdivision (shift value) cuts this dist (error) by 1/4
169 int SkQuadraticEdge::setQuadratic(const SkPoint pts[3], int shift) argument
34 setLine(const SkPoint& p0, const SkPoint& p1, const SkIRect* clip, int shift) argument
266 int shift = fCurveShift; local
319 setCubic(const SkPoint pts[4], const SkIRect* clip, int shift) argument
[all...]
H A DSkEdgeBuilder.cpp75 static void setShiftedClip(SkRect* dst, const SkIRect& src, int shift) { argument
76 dst->set(SkIntToScalar(src.fLeft >> shift),
77 SkIntToScalar(src.fTop >> shift),
78 SkIntToScalar(src.fRight >> shift),
79 SkIntToScalar(src.fBottom >> shift));
H A DSkFloat.cpp32 int SkFloat::GetShift(int32_t packed, int shift) argument
37 int exp = get_unsigned_exp(packed) - EXP_BIAS - shift;
60 int32_t SkFloat::SetShift(int value, int shift) argument
74 shift += bias;
81 shift -= zeros;
86 shift += EXP_BIAS;
87 if (shift < 0) // underflow
91 if (shift > 255) // overflow
93 shift = 255;
97 packed |= shift << 2
[all...]
H A DSkFloatBits.cpp84 // apply the sign before we right-shift
114 // apply the sign before we right-shift
144 // apply the sign before we right-shift
160 int shift = EXP_BIAS; local
171 shift += bias;
176 shift -= zeros;
181 SkASSERT(shift >= 0 && shift <= 255);
184 data.fSignBitInt = (sign << 31) | (shift << 23) | (value & ~MATISSA_MAGIC_BIG);
193 int shift local
[all...]
H A DSkScalerContext.cpp562 int shift = 7; local
563 for (int i = 0; i < leftOverBits; ++i, --shift) {
564 bits |= convert_8_to_1(*src++) << shift;
H A DSkScan_AntiPath.cpp568 static int overflows_short_shift(int value, int shift) { argument
569 const int s = 16 + shift;
575 when left-shifted by shift?
577 static int rect_overflows_short_shift(SkIRect rect, int shift) { argument
H A DSkScan_Path.cpp318 void setBlitter(SkBlitter* blitter, const SkIRect& clip, int shift) { argument
320 fFirstX = clip.fLeft << shift;
321 fLastX = clip.fRight << shift;
/external/skia/src/effects/
H A DSkColorMatrixFilter.cpp30 const int shift = state.fShift; local
32 result[0] = rowmul4(&array[0], r, g, b, a) >> shift;
33 result[1] = rowmul4(&array[5], r, g, b, a) >> shift;
34 result[2] = rowmul4(&array[10], r, g, b, a) >> shift;
35 result[3] = rowmul4(&array[15], r, g, b, a) >> shift;
53 const int shift = state.fShift; local
55 result[0] = rowmul3(&array[0], r, g, b) >> shift;
56 result[1] = rowmul3(&array[5], r, g, b) >> shift;
57 result[2] = rowmul3(&array[10], r, g, b) >> shift;
76 const int shift local
101 const int shift = state.fShift; local
[all...]
/external/skia/src/image/
H A DSkSurface_Raster.cpp42 int shift = 0; local
45 shift = 0;
48 shift = 1;
51 shift = 2;
61 uint64_t minRB = (uint64_t)info.fWidth << shift;
66 size_t alignedRowBytes = rowBytes >> shift << shift;
/external/skia/src/images/
H A DSkImageDecoder_libico.cpp47 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors);
50 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors);
53 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors);
56 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors);
59 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors);
196 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) = NULL;
295 int shift = 7 - (andPixelNo & 0x7); local
296 int m = 1 << shift;
299 placePixel(pixelNo, buf, xorOffset, x, y, w, bm, alphaByte, m, shift, colors);
314 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColo
312 editPixelBit1(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument
341 editPixelBit4(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument
361 editPixelBit8(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument
371 editPixelBit24(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument
385 editPixelBit32(const int pixelNo, const unsigned char* buf, const int xorOffset, int& x, int y, const int w, SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) argument
[all...]
/external/skia/src/opts/
H A DSkColor_opts_SSE2.h85 const __m128i& b, int shift) {
87 prod = _mm_add_epi16(prod, _mm_set1_epi16(1 << (shift - 1)));
88 prod = _mm_add_epi16(prod, _mm_srli_epi16(prod, shift));
89 prod = _mm_srli_epi16(prod, shift);
84 SkMul16ShiftRound_SSE2(const __m128i& a, const __m128i& b, int shift) argument
/external/skia/src/ports/
H A DSkFontHost_FreeType_common.cpp287 int shift = 7; local
288 for (int i = 0; i < leftOverBits; ++i, --shift) {
289 bits |= convert_8_to_1(*src++) << shift;
554 funcs.shift = 0;
/external/skia/tests/
H A DPathCoverageTest.cpp50 int shift = 30 - SkCLZ(distance); local
52 shift &= ~(shift>>31);
53 if (shift > MAX_COEFF_SHIFT) {
54 shift = MAX_COEFF_SHIFT;
56 return 1 << shift;
H A DRandomTest.cpp59 static void test_random_byte(skiatest::Reporter* reporter, int shift) { argument
65 bins[(rand.nextU() >> shift) & 0xff]++;
93 // we are using the random bit generated from a single shift position to generate
102 static double test_single_gorilla(skiatest::Reporter* reporter, int shift) { argument
117 value |= ((rnd >> shift) & 0x1);
124 value |= ((rnd >> shift) & 0x1);
H A DRegionTest.cpp198 int shift = 32 - bits; local
199 rect->set(rand.nextU() >> shift, rand.nextU() >> shift,
200 rand.nextU() >> shift, rand.nextU() >> shift);
/external/sonivox/arm-fm-22k/lib_src/
H A Deas_pcm.c376 /* calculate shift for frequencies > 1.0 */
456 * pitch - pitch shift in cents
1096 /*lint -e{703} use shift for performance */
1099 /*lint -e{703} use shift for performance */
1149 /*lint -e{704} use shift instead of division */
1153 /*lint -e{704} use shift instead of division */
1169 /*lint -e{704} use shift instead of division */
1173 /*lint -e{704} use shift instead of division */
1207 /*lint -e{704} use shift instead of division */
1211 /*lint -e{704} use shift instea
1359 EAS_INT shift; local
1382 temp <<= shift; local
[all...]
/external/skia/bench/
H A DRectBench.cpp29 RectBench(int shift, int stroke = 0) argument
30 : fShift(shift)
117 OvalBench(int shift, int stroke = 0) : RectBench(shift, stroke) {} argument
127 RRectBench(int shift, int stroke = 0) : RectBench(shift, stroke) {} argument
/external/skia/include/core/
H A DSkMath.h56 * Computes (numer1 << shift) / denom in full 64 intermediate precision.
60 int32_t SkDivBits(int32_t numer, int32_t denom, int shift);
185 * Return a*b/((1 << shift) - 1), rounding any fractional bits.
186 * Only valid if a and b are unsigned and <= 32767 and shift is > 0 and <= 8
188 static inline unsigned SkMul16ShiftRound(U16CPU a, U16CPU b, int shift) { argument
191 SkASSERT(shift > 0 && shift <= 8);
192 unsigned prod = SkMulS16(a, b) + (1 << (shift - 1));
193 return (prod + (prod >> shift)) >> shift;
[all...]
H A DSkTypes.h406 unsigned shift) {
408 return (bits & ~(1 << shift)) | ((int)cond << shift);
405 SkSetClearShift(uint32_t bits, bool cond, unsigned shift) argument
/external/robolectric/lib/main/
H A Djavassist-3.14.0-GA.jarMETA-INF/ META-INF/MANIFEST.MF javassist/ javassist/bytecode/ javassist/bytecode/analysis/ javassist/bytecode/annotation/ javassist/ ...
/external/qemu/android/
H A Dsockets.c336 int shift = 4*ndigits; local
339 while (shift >= 0) {
340 buf = format_char(buf, end, hex[(val >> shift) & 15]);
341 shift -= 4;
/external/qemu/audio/
H A Daudio.c709 int bits = 8, sign = 0, shift = 0; local
721 shift = 1;
728 shift = 2;
736 info->shift = (as->nchannels == 2) + shift;
737 info->align = (1 << info->shift) - 1;
738 info->bytes_per_second = info->freq << info->shift;
749 memset (buf, 0x00, len << info->shift);
754 memset (buf, 0x80, len << info->shift);
761 int shift local
778 int shift = info->nchannels - 1; local
[all...]
H A Daudio_int.h64 int shift; member in struct:audio_pcm_info

Completed in 2047 milliseconds

1234567891011>>