/external/chromium-trace/catapult/third_party/flot/ |
jquery.flot.image.min.js | 7 (function($){var options={series:{images:{show:false,alpha:1,anchor:"corner"}}};$.plot.image={};$.plot.image.loadDataImages=function(series,options,callback){var urls=[],points=[];var defaultShow=options.series.images.show;$.each(series,function(i,s){if(!(defaultShow||s.images.show))return;if(s.data)s=s.data;$.each(s,function(i,p){if(typeof p[0]=="string"){urls.push(p[0]);points.push(p)}})});$.plot.image.load(urls,function(loadedImages){$.each(points,function(i,p){var url=p[0];if(loadedImages[url])p[0]=loadedImages[url]});callback()})};$.plot.image.load=function(urls,callback){var missing=urls.length,loaded={};if(missing==0)callback({});$.each(urls,function(i,url){var handler=function(){--missing;loaded[url]=this;if(missing==0)callback(loaded)};$("<img />").load(handler).error(handler).attr("src",url)})};function drawSeries(plot,ctx,series){var plotOffset=plot.getPlotOffset();if(!series.images||!series.images.show)return;var points=series.datapoints.points,ps=series.datapoints.pointsize;for(var i=0;i<points.length;i+=ps){var img=points[i],x1=points[i+1],y1=points[i+2],x2=points[i+3],y2=points[i+4],xaxis=series.xaxis,yaxis=series.yaxis,tmp;if(!img||img.width<=0||img.height<=0)continue;if(x1>x2){tmp=x2;x2=x1;x1=tmp}if(y1>y2){tmp=y2;y2=y1;y1=tmp}if(series.images.anchor=="center"){tmp=.5*(x2-x1)/(img.width-1);x1-=tmp;x2+=tmp;tmp=.5*(y2-y1)/(img.height-1);y1-=tmp;y2+=tmp}if(x1==x2||y1==y2||x1>=xaxis.max||x2<=xaxis.min||y1>=yaxis.max||y2<=yaxis.min)continue;var sx1=0,sy1=0,sx2=img.width,sy2=img.height;if(x1<xaxis.min){sx1+=(sx2-sx1)*(xaxis.min-x1)/(x2-x1);x1=xaxis.min}if(x2>xaxis.max){sx2+=(sx2-sx1)*(xaxis.max-x2)/(x2-x1);x2=xaxis.max}if(y1<yaxis.min){sy2+=(sy1-sy2)*(yaxis.min-y1)/(y2-y1);y1=yaxis.min}if(y2>yaxis.max){sy1+=(sy1-sy2)*(yaxis.max-y2)/(y2-y1);y2=yaxis.max}x1=xaxis (…) [all...] |
/external/libvpx/libvpx/vp8/encoder/x86/ |
vp8_quantize_sse2.c | 43 __m128i sz0, x0, sz1, x1, y0, y1, x_minus_zbin0, x_minus_zbin1; local 93 y1 = _mm_mulhi_epi16(x1, quant1); 96 y1 = _mm_add_epi16(y1, x1); 101 y1 = _mm_mulhi_epi16(y1, quant_shift1); 105 y1 = _mm_xor_si128(y1, sz1); 107 y1 = _mm_sub_epi16(y1, sz1) 158 __m128i sz0, sz1, x0, x1, y0, y1, xdq0, xdq1, zeros, ones; local [all...] |
/external/opencv3/samples/cpp/ |
drawing.cpp | 27 int x1 = -width/2, x2 = width*3/2, y1 = -height/2, y2 = height*3/2; local 38 pt1.y = rng.uniform(y1, y2); 40 pt2.y = rng.uniform(y1, y2); 53 pt1.y = rng.uniform(y1, y2); 55 pt2.y = rng.uniform(y1, y2); 69 center.y = rng.uniform(y1, y2); 87 pt[0][0].y = rng.uniform(y1, y2); 89 pt[0][1].y = rng.uniform(y1, y2); 91 pt[0][2].y = rng.uniform(y1, y2); 93 pt[1][0].y = rng.uniform(y1, y2) [all...] |
/frameworks/base/libs/hwui/ |
Patch.cpp | 103 float y1 = 0.0f; local 114 y2 = y1 + floorf(segment * stretchY + 0.5f); 116 y2 = y1 + segment * rescaleY; 119 float vOffset = y1 == y2 ? 0.0f : 0.5 - (0.5 * segment / (y2 - y1)); 124 generateRow(xDivs, xCount, vertex, y1, y2, v1, v2, stretchX, rescaleX, 128 y1 = y2; 136 generateRow(xDivs, xCount, vertex, y1, y2, v1, 1.0f, stretchX, rescaleX, 148 float y1, float y2, float v1, float v2, float stretchX, float rescaleX, 172 generateQuad(vertex, x1, y1, x2, y2, u1, v1, u2, v2, quadCount) [all...] |
/external/libvncserver/examples/ |
example.c | 98 static void drawline(unsigned char* buffer,int rowstride,int bpp,int x1,int y1,int x2,int y2) 101 i=x1-x2; j=y1-y2; 104 buffer[y1*rowstride+x1*bpp+i]=0xff; 110 if(y1>y2) { i=y2; y2=y1; y1=i; i=x2; x2=x1; x1=i; } 111 for(j=y1;j<=y2;j++) 113 buffer[j*rowstride+(x1+(j-y1)*(x2-x1)/(y2-y1))*bpp+i]=0xff; 115 if(x1>x2) { i=y2; y2=y1; y1=i; i=x2; x2=x1; x1=i; 130 int i,j,x1,x2,y1,y2; local 201 int x1=cd->oldx,y1=cd->oldy,x2,y2; local [all...] |
/external/pdfium/third_party/agg23/ |
agg_basics.h | 67 T y1; member in struct:agg::rect_base 72 x1(x1_), y1(y1_), x2(x2_), y2(y2_) {} 81 if(y1 > y2) { 82 t = y1; 83 y1 = y2; 99 if(y1 < r.y1) { 100 y1 = r.y1; 102 return x1 <= x2 && y1 <= y2 [all...] |
agg_clip_liang_barsky.h | 31 ((y < clip_box.y1) << 3); 34 inline unsigned clip_liang_barsky(T x1, T y1, T x2, T y2, 40 FX_FLOAT deltay = (FX_FLOAT)(y2 - y1); 55 deltay = (y1 > clip_box.y1) ? -nearzero : nearzero; 59 yin = (FX_FLOAT)clip_box.y1; 63 yout = (FX_FLOAT)clip_box.y1; 65 FX_FLOAT tiny = FXSYS_Div(yin - y1, deltay); 82 FX_FLOAT touty = FXSYS_Div(yout - y1, deltay); 89 *y++ = (T)(y1 + FXSYS_Mul(deltay, tinx)) [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/solvers/ |
SecantSolver.java | 173 double y1 = f.value(x1); local 176 if (y0 * y1 >= 0) { 178 LocalizedFormats.SAME_SIGN_AT_ENDPOINTS, min, max, y0, y1); 186 if (FastMath.abs(y2) < FastMath.abs(y1)) { 190 y0 = y1; 191 y1 = y2; 194 if (FastMath.abs(y1) <= functionValueAccuracy) { 204 if (FastMath.abs(y1) > FastMath.abs(y0)) { 208 delta = (x0 - x1) / (1 - y0 / y1); 216 y0 = y1; [all...] |
/external/skia/include/c/ |
sk_path.h | 38 point (x0,y0), and ending at (x1,y1). If no sk_path_move_to() call 42 SK_API void sk_path_quad_to(sk_path_t*, float x0, float y0, float x1, float y1); 45 (x0,y01), and ending at (x1,y1) with weight w. If no 49 SK_API void sk_path_conic_to(sk_path_t*, float x0, float y0, float x1, float y1, float w); 52 (x0,y0) and (x1,y1), and ending at (x2,y2). If no 58 float x1, float y1,
|
/external/dng_sdk/source/ |
dng_1d_function.cpp | 48 real64 y1 = Evaluate (x1); local 53 if (Abs_real64 (y1 - y0) < kNearZero) 59 x1 + (y - y1) * (x1 - x0) / (y1 - y0), 65 y0 = y1; 68 y1 = y2;
|
/external/libvpx/libvpx/vp8/common/ |
textblit.c | 61 void vp8_blit_line(int x0, int x1, int y0, int y1, unsigned char *image, const int pitch) 63 int steep = abs(y1 - y0) > abs(x1 - x0); 75 x1 = y1; 76 y1 = t; 87 y0 = y1; 88 y1 = t; 92 deltay = abs(y1 - y0); 97 if (y0 < y1)
|
/external/libvpx/libvpx/vp9/common/ |
vp9_textblit.c | 60 void vp9_blit_line(int x0, int x1, int y0, int y1, unsigned char *image, 62 int steep = abs(y1 - y0) > abs(x1 - x0); 73 x1 = y1; 74 y1 = t; 84 y0 = y1; 85 y1 = t; 89 deltay = abs(y1 - y0); 94 if (y0 < y1)
|
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
convolve3x3.rs | 29 uint32_t y1 = min((int32_t)y+1, gHeight-1); 32 float4 sum = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[0]; 33 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y1)) * gCoeffs[1]; 34 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[2];
|
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/ |
convolve3x3.rs | 29 uint32_t y1 = min((int32_t)y+1, gHeight-1); 32 float4 sum = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[0]; 33 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y1)) * gCoeffs[1]; 34 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[2];
|
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
convolve3x3.rs | 29 uint32_t y1 = min((int32_t)y+1, gHeight-1); 32 float4 sum = convert_float4(rsGetElementAt_uchar4(gIn, x1, y1)) * gCoeffs[0]; 33 sum += convert_float4(rsGetElementAt_uchar4(gIn, x, y1)) * gCoeffs[1]; 34 sum += convert_float4(rsGetElementAt_uchar4(gIn, x2, y1)) * gCoeffs[2];
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/ |
textblit.c | 61 void vp8_blit_line(int x0, int x1, int y0, int y1, unsigned char *image, const int pitch) 63 int steep = abs(y1 - y0) > abs(x1 - x0); 75 x1 = y1; 76 y1 = t; 87 y0 = y1; 88 y1 = t; 92 deltay = abs(y1 - y0); 97 if (y0 < y1)
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/ |
vp9_textblit.c | 60 void vp9_blit_line(int x0, int x1, int y0, int y1, unsigned char *image, 62 int steep = abs(y1 - y0) > abs(x1 - x0); 73 x1 = y1; 74 y1 = t; 84 y0 = y1; 85 y1 = t; 89 deltay = abs(y1 - y0); 94 if (y0 < y1)
|
/prebuilts/go/darwin-x86/test/ |
undef.go | 26 y1 int 29 func foo1() *T1 { return &T1{y1: 99} } 30 var y1 = 2 var 31 func bar1() int { return y1 }
|
/prebuilts/go/linux-x86/test/ |
undef.go | 26 y1 int 29 func foo1() *T1 { return &T1{y1: 99} } 30 var y1 = 2 var 31 func bar1() int { return y1 }
|
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/elf/ |
equ-reloc.d | 8 0*0 [^ ]+ +(\.bss(\+0x0*4)?|y1)
|
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/sh/ |
sh4al-dsp.s | 15 nopy movx.w @r5+r8,y1 20 nopy movx.l @r4+r8,y1 32 movy.w @r7,y1 movx.w a1,@r4+r8 37 movy.l @r6,y1 43 movy.w y1,@r2 49 movy.l y1,@r2+ nopx 56 dcf pabs a0,y1 58 dct pabs y1,x0 69 pclr a0 pmuls x1,y1,a1 75 dct psub a1,y1,y [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/math/ |
GeometryUtils.java | 98 static public boolean colinear (float x1, float y1, float x2, float y2, float x3, float y3) {
99 float dx21 = x2 - x1, dy21 = y2 - y1;
105 static public Vector2 triangleCentroid (float x1, float y1, float x2, float y2, float x3, float y3, Vector2 centroid) {
107 centroid.y = (y1 + y2 + y3) / 3;
112 static public Vector2 triangleCircumcenter (float x1, float y1, float x2, float y2, float x3, float y3, Vector2 circumcenter) {
113 float dx21 = x2 - x1, dy21 = y2 - y1;
115 float dx13 = x1 - x3, dy13 = y1 - y3;
120 float sqr1 = x1 * x1 + y1 * y1, sqr2 = x2 * x2 + y2 * y2, sqr3 = x3 * x3 + y3 * y3;
125 static public float triangleArea (float x1, float y1, float x2, float y2, float x3, float y3) { 151 float y1 = polygon[i + 3]; local 161 float y1 = polygon[offset + 1]; local 183 int y1 = i + 1; local [all...] |
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/values/ |
MeshSpawnShapeValue.java | 18 float x1, y1, z1, field in class:MeshSpawnShapeValue.Triangle 21 public Triangle( float x1, float y1, float z1, 24 this.x1 = x1; this.y1 = y1; this.z1 = z1; 29 public static Vector3 pick(float x1, float y1, float z1, 34 y1 + a*(y2 - y1) + b*(y3 - y1), 41 y1 + a*(y2 - y1) + b*(y3 - y1) [all...] |
WeightMeshSpawnShapeValue.java | 53 float x1 = vertices[p1Offset], y1 = vertices[p1Offset+1], z1 = vertices[p1Offset+2], local 56 float area = Math.abs((x1*(y2 - y3) + x2*(y3 - y1) + x3*(y1-y2))/2f); 57 distribution.add(new Triangle(x1, y1, z1, x2, y2, z2, x3, y3, z3), area); 66 float x1 = vertices[p1Offset], y1 = vertices[p1Offset+1], z1 = vertices[p1Offset+2], local 69 float area = Math.abs((x1*(y2 - y3) + x2*(y3 - y1) + x3*(y1-y2))/2f); 70 distribution.add(new Triangle(x1, y1, z1, x2, y2, z2, x3, y3, z3), area); 83 t.y1 + a*(t.y2 - t.y1) + b*(t.y3 - t.y1) [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/X11/ |
Xregion.h | 53 short x1, x2, y1, y2; member in struct:__anon38214 94 (r1)->y2 > (r2)->y1 && \ 95 (r1)->y1 < (r2)->y2) 103 if((r)->y1 < (idRect)->extents.y1)\ 104 (idRect)->extents.y1 = (r)->y1;\ 131 ((R-1)->y1 == (Ry1)) &&\ 141 (r)->y1 = (ry1);\ 157 (r)->y1 = (ry1); [all...] |