Home
last modified time | relevance | path

Searched refs:off (Results 1 – 25 of 45) sorted by relevance

12

/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DInterp.h52 int off = (int)(xfrac * CTAPS); in ciCalc() local
54 tmpf[0] = in[0] * ciTable[off + 40]; in ciCalc()
55 tmpf[0] += in[1] * ciTable[off]; in ciCalc()
56 tmpf[0] += in[2] * ciTable[40 - off]; in ciCalc()
57 tmpf[0] += in[3] * ciTable[80 - off]; in ciCalc()
59 tmpf[1] = in[0] * ciTable[off + 40]; in ciCalc()
60 tmpf[1] += in[1] * ciTable[off]; in ciCalc()
61 tmpf[1] += in[2] * ciTable[40 - off]; in ciCalc()
62 tmpf[1] += in[3] * ciTable[80 - off]; in ciCalc()
64 tmpf[2] = in[0] * ciTable[off + 40]; in ciCalc()
[all …]
DPyramid.cpp115 int off, off2, height, h, w; in BorderSpread() local
119 off = pyr->border - left; in BorderSpread()
120 off2 = pyr->width + off + pyr->border - right - 1; in BorderSpread()
123 base = pyr->ptr[-h] - off; in BorderSpread()
152 int off = in->border / 2; in BorderExpandOdd() local
155 for (j = -off; j < in->height + off; j++) { in BorderExpandOdd()
167 for (i = -off; i < scr->width + off; i++) { in BorderExpandOdd()
211 int off = scr->border - 2; in BorderReduceOdd() local
212 s = scr->ptr[-scr->border] - (off >> 1); in BorderReduceOdd()
214 ls = scr->ptr[scr->height + scr->border - 1] + scr->pitch - (off >> 1); in BorderReduceOdd()
[all …]
/packages/apps/TV/usbtuner/src/com/android/usbtuner/util/
DByteArrayBuffer.java56 public void append(final byte[] b, int off, int len) { in append() argument
60 if ((off < 0) || (off > b.length) || (len < 0) || in append()
61 ((off + len) < 0) || ((off + len) > b.length)) { in append()
71 System.arraycopy(b, off, this.buffer, this.len, len); in append()
84 public void append(final char[] b, int off, int len) { in append() argument
88 if ((off < 0) || (off > b.length) || (len < 0) || in append()
89 ((off + len) < 0) || ((off + len) > b.length)) { in append()
100 for (int i1 = off, i2 = oldlen; i2 < newlen; i1++, i2++) { in append()
/packages/apps/Gallery2/jni/filters/
Dfx.c19 __inline__ int interp(unsigned char *src, int p , int *off ,float dr,float dg, float db){ in interp() argument
21 float fr00 = (src[p+off[0]])*(1-dr)+(src[p+off[1]])*dr; in interp()
22 float fr01 = (src[p+off[2]])*(1-dr)+(src[p+off[3]])*dr; in interp()
23 float fr10 = (src[p+off[4]])*(1-dr)+(src[p+off[5]])*dr; in interp()
24 float fr11 = (src[p+off[6]])*(1-dr)+(src[p+off[7]])*dr; in interp()
47 int off[8] = { in JNIFUNCF() local
80 rgb[RED] = clamp(interp(lutrgb,p ,off,dr,dg,db)); in JNIFUNCF()
81 rgb[GREEN] = clamp(interp(lutrgb,p+1,off,dr,dg,db)); in JNIFUNCF()
82 rgb[BLUE] = clamp(interp(lutrgb,p+2,off,dr,dg,db)); in JNIFUNCF()
Dedge.c99 int off = k * 4; in JNIFUNCF() local
100 *(buf + buf_row_ring + off) = ret; in JNIFUNCF()
101 *(buf + buf_row_ring + off + 1) = ret; in JNIFUNCF()
102 *(buf + buf_row_ring + off + 2) = ret; in JNIFUNCF()
103 *(buf + buf_row_ring + off + 3) = *(ptr + loc + 3); in JNIFUNCF()
DredEyeMath.c104 void stuff(int r, int g, int b, unsigned char *img, int off) { in stuff() argument
105 img[off + 2] = b; in stuff()
106 img[off + 1] = g; in stuff()
107 img[off] = r; in stuff()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/
DByteArrayOutputStream.java140 public void write(byte[] b, int off, int len) { in write() argument
141 if ((off < 0) in write()
142 || (off > b.length) in write()
144 || ((off + len) > b.length) in write()
145 || ((off + len) < 0)) { in write()
156 System.arraycopy(b, off + len - remaining, currentBuffer, inBufferPos, part); in write()
DTeeOutputStream.java61 public synchronized void write(byte[] b, int off, int len) throws IOException { in write() argument
62 super.write(b, off, len); in write()
63 this.branch.write(b, off, len); in write()
DCountingOutputStream.java69 public void write(byte[] b, int off, int len) throws IOException { in write() argument
71 super.write(b, off, len); in write()
/packages/services/Telephony/src/org/apache/james/mime4j/
DRootInputStream.java90 public int read(byte[] b, int off, int len) throws IOException { in read() argument
95 int n = is.read(b, off, len); in read()
96 for (int i = off; i < off + n; i++) { in read()
DCloseShieldInputStream.java115 public int read(byte b[], int off, int len) throws IOException { in read() argument
117 return is.read(b, off, len); in read()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
DRootInputStream.java90 public int read(byte[] b, int off, int len) throws IOException { in read() argument
95 int n = is.read(b, off, len); in read()
96 for (int i = off; i < off + n; i++) { in read()
/packages/apps/Settings/src/com/android/settings/applications/
DLinearColorBar.java118 int off = getPaddingTop() - getPaddingBottom(); in updateIndicator() local
119 if (off < 0) off = 0; in updateIndicator()
120 mRect.top = off; in updateIndicator()
127 0, 0, 0, off-2, mRightColor &0xffffff, mRightColor, Shader.TileMode.CLAMP)); in updateIndicator()
130 0, 0, 0, off-2, mMiddleColor&0xffffff, mMiddleColor, Shader.TileMode.CLAMP)); in updateIndicator()
133 0, 0, 0, off/2, 0x00a0a0a0, 0xffa0a0a0, Shader.TileMode.CLAMP)); in updateIndicator()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/
DCountedDataInputStream.java51 public int read(byte[] b, int off, int len) throws IOException { in read() argument
52 int r = in.read(b, off, len); in read()
82 public void readOrThrow(byte[] b, int off, int len) throws IOException { in readOrThrow() argument
83 int r = read(b, off, len); in readOrThrow()
DByteBufferInputStream.java39 public int read(byte[] bytes, int off, int len) { in read() argument
45 mBuf.get(bytes, off, len); in read()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DCountedDataInputStream.java51 public int read(byte[] b, int off, int len) throws IOException { in read() argument
52 int r = in.read(b, off, len); in read()
82 public void readOrThrow(byte[] b, int off, int len) throws IOException { in readOrThrow() argument
83 int r = read(b, off, len); in readOrThrow()
DByteBufferInputStream.java39 public int read(byte[] bytes, int off, int len) { in read() argument
45 mBuf.get(bytes, off, len); in read()
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DCountedDataInputStream.java51 public int read(byte[] b, int off, int len) throws IOException { in read() argument
52 int r = in.read(b, off, len); in read()
84 public void readOrThrow(byte[] b, int off, int len) throws IOException { in readOrThrow() argument
85 int r = read(b, off, len); in readOrThrow()
DByteBufferInputStream.java39 public int read(byte[] bytes, int off, int len) { in read() argument
45 mBuf.get(bytes, off, len); in read()
/packages/apps/Camera2/src/com/android/camera/exif/
DCountedDataInputStream.java51 public int read(byte[] b, int off, int len) throws IOException { in read() argument
52 int r = in.read(b, off, len); in read()
82 public void readOrThrow(byte[] b, int off, int len) throws IOException { in readOrThrow() argument
83 int r = read(b, off, len); in readOrThrow()
DByteBufferInputStream.java39 public int read(byte[] bytes, int off, int len) { in read() argument
45 mBuf.get(bytes, off, len); in read()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DSpannableStringUtils.java109 int off = 0; in concatWithNonParagraphSuggestionSpansOnly() local
114 copyNonParagraphSuggestionSpansFrom((Spanned) text[i], 0, len, ss, off); in concatWithNonParagraphSuggestionSpansOnly() local
117 off += len; in concatWithNonParagraphSuggestionSpansOnly()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
Dgrad.rs34 float off;
68 grads[k].off = (y2 * y2 + x2 * x2 - x1 * x2 - y1 * y2) / denom;
107 float t = clamp(x*grad->dx+y*grad->dy+grad->off,0.f,1.0f);
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/
DAutoCloseInputStream.java110 public int read(byte[] b, int off, int len) throws IOException { in read() argument
111 int n = in.read(b, off, len); in read()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/
DPartialInputStream.java50 public int read(byte b[], int off, int len) throws IOException { in read() argument
52 …return super.read(b, off, len); //To change body of overridden methods use File | Settings | Fi… in read()

12