Home
last modified time | relevance | path

Searched refs:y1 (Results 1 – 25 of 604) sorted by relevance

12345678910>>...25

/external/libvncserver/libvncserver/
Ddraw.c3 void rfbFillRect(rfbScreenInfoPtr s,int x1,int y1,int x2,int y2,rfbPixel col) in rfbFillRect() argument
11 for(j=y1;j<y2;j++) in rfbFillRect()
14 rfbMarkRectAsModified(s,x1,y1,x2,y2); in rfbFillRect()
31 void rfbDrawLine(rfbScreenInfoPtr s,int x1,int y1,int x2,int y2,rfbPixel col) in rfbDrawLine() argument
40 #define SWAPPOINTS { i=x1; x1=x2; x2=i; i=y1; y1=y2; y2=i; } in rfbDrawLine()
41 if(abs(x1-x2)<abs(y1-y2)) { in rfbDrawLine()
42 if(y1>y2) in rfbDrawLine()
44 for(i=y1;i<=y2;i++) in rfbDrawLine()
45 SETPIXEL(x1+(i-y1)*(x2-x1)/(y2-y1),i); in rfbDrawLine()
48 rfbMarkRectAsModified(s,x1,y1,x2+1,y2+1); in rfbDrawLine()
[all …]
Dfont.c50 int x1,int y1,int x2,int y2, in rfbDrawCharWithClip() argument
73 if(y1>y) { y1-=y; data+=(width+7)/8; height-=y1; y+=y1; } else y1=0; in rfbDrawCharWithClip()
79 for(j=y1;j<height;j++) { in rfbDrawCharWithClip()
106 int x1,int y1,int x2,int y2, in rfbDrawStringWithClip() argument
110 x+=rfbDrawCharWithClip(rfbScreen,font,x,y,*string,x1,y1,x2,y2, in rfbDrawStringWithClip()
131 void rfbFontBBox(rfbFontDataPtr font,unsigned char c,int* x1,int* y1,int* x2,int* y2) in rfbFontBBox() argument
134 *y1+=-font->metaData[c*5+4]-font->metaData[c*5+2]+1; in rfbFontBBox()
136 *y2=*y1+font->metaData[c*5+2]+1; in rfbFontBBox()
144 int *x1, int *y1, int *x2, int *y2) in rfbWholeFontBBox() argument
149 (*x1)=(*y1)=INT_MAX; (*x2)=(*y2)=1-(INT_MAX); in rfbWholeFontBBox()
[all …]
Dselbox.c12 int x1,y1,x2,y2,textH,pageH; member
57 int y1 = m->y1+line*m->textH, y2 = y1+m->textH; in selPaintLine() local
60 rfbFillRect(m->screen,m->x1,y1,m->x2,y2,invert?m->colour:m->backColour); in selPaintLine()
64 m->x1,y1,m->x2,y2, in selPaintLine()
97 rfbDoCopyRect(m->screen,m->x1,m->y1,m->x2,m->y1+lineStart*m->textH, in selSelect()
103 m->x1,m->y1+lineEnd*m->textH,m->x2,m->y2, in selSelect()
189 if(x>=m->x1 && x<m->x2 && y>=m->y1 && y<m->y2) in selPtrAddEvent()
190 selSelect(m,m->displayStart+(y-m->y1)/m->textH); in selPtrAddEvent()
205 int x1,int y1,int x2,int y2, in rfbSelectBox() argument
226 if(y2-y1<selData.textH*2+3*border) in rfbSelectBox()
[all …]
/external/libvpx/libvpx/vp8/encoder/x86/
Dquantize_sse4.c34 __m128i sz0, x0, sz1, x1, y0, y1, x_minus_zbin0, x_minus_zbin1, dqcoeff0, in vp8_regular_quantize_b_sse4_1() local
82 y1 = _mm_mulhi_epi16(x1, quant1); in vp8_regular_quantize_b_sse4_1()
85 y1 = _mm_add_epi16(y1, x1); in vp8_regular_quantize_b_sse4_1()
90 y1 = _mm_mulhi_epi16(y1, quant_shift1); in vp8_regular_quantize_b_sse4_1()
94 y1 = _mm_xor_si128(y1, sz1); in vp8_regular_quantize_b_sse4_1()
96 y1 = _mm_sub_epi16(y1, sz1); in vp8_regular_quantize_b_sse4_1()
102 SELECT_EOB(4, 0, x_minus_zbin1, y1, qcoeff1); in vp8_regular_quantize_b_sse4_1()
107 SELECT_EOB(9, 1, x_minus_zbin1, y1, qcoeff1); in vp8_regular_quantize_b_sse4_1()
108 SELECT_EOB(10, 4, x_minus_zbin1, y1, qcoeff1); in vp8_regular_quantize_b_sse4_1()
109 SELECT_EOB(11, 5, x_minus_zbin1, y1, qcoeff1); in vp8_regular_quantize_b_sse4_1()
[all …]
Dvp8_quantize_sse2.c40 __m128i sz0, x0, sz1, x1, y0, y1, x_minus_zbin0, x_minus_zbin1; in vp8_regular_quantize_b_sse2() local
90 y1 = _mm_mulhi_epi16(x1, quant1); in vp8_regular_quantize_b_sse2()
93 y1 = _mm_add_epi16(y1, x1); in vp8_regular_quantize_b_sse2()
98 y1 = _mm_mulhi_epi16(y1, quant_shift1); in vp8_regular_quantize_b_sse2()
102 y1 = _mm_xor_si128(y1, sz1); in vp8_regular_quantize_b_sse2()
104 y1 = _mm_sub_epi16(y1, sz1); in vp8_regular_quantize_b_sse2()
107 _mm_store_si128((__m128i *)(y + 8), y1); in vp8_regular_quantize_b_sse2()
130 y1 = _mm_load_si128((__m128i *)(d->qcoeff + 8)); in vp8_regular_quantize_b_sse2()
134 y1 = _mm_mullo_epi16(y1, dequant1); in vp8_regular_quantize_b_sse2()
137 _mm_store_si128((__m128i *)(d->dqcoeff + 8), y1); in vp8_regular_quantize_b_sse2()
[all …]
/external/libvncserver/examples/
Dzippy.c13 void blank_framebuffer(char* frame_buffer, int x1, int y1, int x2, int y2);
15 void draw_primary_colors (char* frame_buffer, int x1, int y1, int x2, int y2);
16 void draw_primary_colours_generic(rfbScreenInfoPtr s,int x1,int y1,int x2,int y2);
17 void draw_primary_colours_generic_fast(rfbScreenInfoPtr s,int x1,int y1,int x2,int y2);
49 void blank_framebuffer(char* frame_buffer, int x1, int y1, int x2, int y2) in blank_framebuffer() argument
55 void draw_primary_colors (char* frame_buffer, int x1, int y1, int x2, int y2) in draw_primary_colors() argument
58 for (i=y1; i < y2; i++){ in draw_primary_colors()
81 void draw_primary_colours_generic(rfbScreenInfoPtr s,int x1,int y1,int x2,int y2) in draw_primary_colours_generic() argument
85 for(j=y1;j<y2;j++) in draw_primary_colours_generic()
87 if(j<y1*2/3+y2/3) in draw_primary_colours_generic()
[all …]
Dexample.c98 static void drawline(unsigned char* buffer,int rowstride,int bpp,int x1,int y1,int x2,int y2) in drawline() argument
101 i=x1-x2; j=y1-y2; in drawline()
104 buffer[y1*rowstride+x1*bpp+i]=0xff; in drawline()
110 if(y1>y2) { i=y2; y2=y1; y1=i; i=x2; x2=x1; x1=i; } in drawline()
111 for(j=y1;j<=y2;j++) in drawline()
113 buffer[j*rowstride+(x1+(j-y1)*(x2-x1)/(y2-y1))*bpp+i]=0xff; in drawline()
115 if(x1>x2) { i=y2; y2=y1; y1=i; i=x2; x2=x1; x1=i; } in drawline()
118 buffer[(y1+(i-x1)*(y2-y1)/(x2-x1))*rowstride+i*bpp+j]=0xff; in drawline()
130 int i,j,x1,x2,y1,y2; in doptr() local
135 x1=x; y1=y; in doptr()
[all …]
/external/libldac/src/
Dsigana_ldac.c37 SCALAR y0, y1, y2; in calc_mdct_pseudo_spectrum_ldac() local
40 y1 = p_spec[0]; in calc_mdct_pseudo_spectrum_ldac()
42 tmp = y1 * y1 + y2 * y2; in calc_mdct_pseudo_spectrum_ldac()
48 y0 = y1; in calc_mdct_pseudo_spectrum_ldac()
49 y1 = y2; in calc_mdct_pseudo_spectrum_ldac()
51 tmp = y1 * y1 + (y0-y2) * (y0-y2); in calc_mdct_pseudo_spectrum_ldac()
57 y0 = y1; in calc_mdct_pseudo_spectrum_ldac()
58 y1 = y2; in calc_mdct_pseudo_spectrum_ldac()
60 tmp = y1 * y1 + (y0-y2) * (y0-y2); in calc_mdct_pseudo_spectrum_ldac()
65 tmp = y1 * y1 + y2 * y2; in calc_mdct_pseudo_spectrum_ldac()
Dsigana_fixp_ldac.c193 INT32 y0, y1, y2; in calc_mdct_pseudo_spectrum_ldac() local
199 y1 = p_spec[0]; in calc_mdct_pseudo_spectrum_ldac()
201 acc1 = (INT64)y1 * (INT64)y1; in calc_mdct_pseudo_spectrum_ldac()
211 y0 = y1; in calc_mdct_pseudo_spectrum_ldac()
212 y1 = y2; in calc_mdct_pseudo_spectrum_ldac()
214 acc1 = (INT64)y1 * (INT64)y1; in calc_mdct_pseudo_spectrum_ldac()
224 y0 = y1; in calc_mdct_pseudo_spectrum_ldac()
225 y1 = y2; in calc_mdct_pseudo_spectrum_ldac()
227 acc1 = (INT64)y1 * (INT64)y1; in calc_mdct_pseudo_spectrum_ldac()
236 acc1 = (INT64)y1 * (INT64)y1; in calc_mdct_pseudo_spectrum_ldac()
/external/skia/src/core/
DSkEdge.cpp35 SkFDot6 x0, y0, x1, y1; in setLine() local
42 y1 = SkScalarRoundToFDot6(p1.fY, shift); in setLine()
48 y1 = int(p1.fY * scale); in setLine()
54 if (y0 > y1) { in setLine()
56 SkTSwap(y0, y1); in setLine()
61 int bot = SkFDot6Round(y1); in setLine()
72 SkFixed slope = SkFDot6Div(x1 - x0, y1 - y0); in setLine()
90 int SkEdge::updateLine(SkFixed x0, SkFixed y0, SkFixed x1, SkFixed y1) in updateLine() argument
97 y1 >>= 10; in updateLine()
99 SkASSERT(y0 <= y1); in updateLine()
[all …]
/external/pdfium/third_party/agg23/
Dagg_basics.h67 T y1; member
72 x1(x1_), y1(y1_), x2(x2_), y2(y2_) {} in rect_base()
81 if(y1 > y2) { in normalize()
82 t = y1; in normalize()
83 y1 = y2; in normalize()
99 if(y1 < r.y1) { in clip()
100 y1 = r.y1; in clip()
102 return x1 <= x2 && y1 <= y2; in clip()
106 return x1 <= x2 && y1 <= y2; in is_valid()
122 if(r.y1 < r2.y1) { in intersect_rectangles()
[all …]
Dagg_clip_liang_barsky.h32 ((y < clip_box.y1) << 3); in clipping_flags()
35 inline unsigned clip_liang_barsky(T x1, T y1, T x2, T y2, in clip_liang_barsky() argument
46 height -= y1; in clip_liang_barsky()
66 deltay = (y1 > clip_box.y1) ? -nearzero : nearzero; in clip_liang_barsky()
70 yin = (FX_FLOAT)clip_box.y1; in clip_liang_barsky()
74 yout = (FX_FLOAT)clip_box.y1; in clip_liang_barsky()
76 FX_FLOAT tiny = (yin - y1) / deltay; in clip_liang_barsky()
93 FX_FLOAT touty = (yout - y1) / deltay; in clip_liang_barsky()
100 *y++ = (T)(y1 + (deltay * tinx)); in clip_liang_barsky()
110 *y++ = (T)(y1 + (deltay * toutx)); in clip_liang_barsky()
Dagg_curves.h25 curve4_points(FX_FLOAT x1, FX_FLOAT y1, in curve4_points()
31 cp[1] = y1; in curve4_points()
39 void init(FX_FLOAT x1, FX_FLOAT y1, in init()
45 cp[1] = y1; in init()
68 curve4_div(FX_FLOAT x1, FX_FLOAT y1, in curve4_div() argument
74 init(x1, y1, x2, y2, x3, y3, x4, y4); in curve4_div()
86 void init(FX_FLOAT x1, FX_FLOAT y1,
124 void bezier(FX_FLOAT x1, FX_FLOAT y1,
128 void recursive_bezier(FX_FLOAT x1, FX_FLOAT y1,
142 curve4(FX_FLOAT x1, FX_FLOAT y1, in curve4() argument
[all …]
Dagg_curves.cpp30 void curve4_div::init(FX_FLOAT x1, FX_FLOAT y1, in init() argument
38 bezier(x1, y1, x2, y2, x3, y3, x4, y4); in init()
41 void curve4_div::recursive_bezier(FX_FLOAT x1, FX_FLOAT y1, in recursive_bezier() argument
51 FX_FLOAT y12 = (y1 + y2) / 2; in recursive_bezier()
63 FX_FLOAT dy = y4 - y1; in recursive_bezier()
70 FXSYS_fabs(y1 + y3 - y2 - y2) + in recursive_bezier()
99 recursive_bezier(x1, y1, x12, y12, x123, y123, x1234, y1234, level + 1); in recursive_bezier()
102 void curve4_div::bezier(FX_FLOAT x1, FX_FLOAT y1, in bezier() argument
107 m_points.add(point_type(x1, y1)); in bezier()
108 recursive_bezier(x1, y1, x2, y2, x3, y3, x4, y4, 0); in bezier()
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/solvers/
DSecantSolver.java173 double y1 = f.value(x1); in solve() local
176 if (y0 * y1 >= 0) { in solve()
178 LocalizedFormats.SAME_SIGN_AT_ENDPOINTS, min, max, y0, y1); in solve()
186 if (FastMath.abs(y2) < FastMath.abs(y1)) { in solve()
190 y0 = y1; in solve()
191 y1 = y2; in solve()
194 if (FastMath.abs(y1) <= functionValueAccuracy) { in solve()
204 if (FastMath.abs(y1) > FastMath.abs(y0)) { in solve()
208 delta = (x0 - x1) / (1 - y0 / y1); in solve()
216 y0 = y1; in solve()
[all …]
DMullerSolver.java210 double y1 = f.value(x1); in solve() local
227 final double d01 = (y1 - y0) / (x1 - x0); in solve()
228 final double d12 = (y2 - y1) / (x2 - x1); in solve()
231 final double delta = c1 * c1 - 4 * y1 * d012; in solve()
232 final double xplus = x1 + (-2.0 * y1) / (c1 + FastMath.sqrt(delta)); in solve()
233 final double xminus = x1 + (-2.0 * y1) / (c1 - FastMath.sqrt(delta)); in solve()
260 y0 = x < x1 ? y0 : y1; in solve()
262 y2 = x > x1 ? y2 : y1; in solve()
263 x1 = x; y1 = y; in solve()
274 y1 = f.value(x1); in solve()
[all …]
/external/llvm/test/Verifier/
Ddominates.ll15 %y1 = invoke i32 @g() to label %bb1 unwind label %bb2
19 %y2 = phi i32 [%y1, %bb0]
24 ; CHECK-NEXT: %y1 = invoke i32 @g()
26 ; CHECK-NEXT: %y2 = phi i32 [ %y1, %bb0 ]
31 %y1 = invoke i32 @g() to label %bb1 unwind label %bb2
39 %y3 = phi i32 [%y1, %bb2]
42 ; CHECK-NEXT: %y1 = invoke i32 @g()
44 ; CHECK-NEXT: %y3 = phi i32 [ %y1, %bb2 ]
51 %y3 = phi i32 [%y1, %bb0]
52 %y1 = add i32 %x, 1
[all …]
/external/mesa3d/src/gallium/state_trackers/vega/
Dbezier.c46 left->y1 = bez->y1; in split_left()
49 left->y2 = bez->y1 + t * (bez->y2 - bez->y1); in split_left()
64 left->y4 = bez->y1 = left->y3 + t * (bez->y2 - left->y3); in split_left()
82 first_half->y2 = (bez->y1 + bez->y2) * 0.5; in split()
84 first_half->y1 = bez->y1; in split()
88 first_half->y4 = second_half->y1 = in split()
95 polygon_vertex_append(poly, bez->x1, bez->y1); in bezier_to_polygon()
110 double y4y1 = b->y4 - b->y1; in bezier_add_to_polygon()
115 d = ABS((x4x1)*(b->y1 - b->y2) - (y4y1)*(b->x1 - b->x2)) in bezier_add_to_polygon()
116 + ABS((x4x1)*(b->y1 - b->y3) - (y4y1)*(b->x1 - b->x3)); in bezier_add_to_polygon()
[all …]
Dpath.c365 VGfloat x0, y0, x1, y1, x2, y2, x3, y3; in path_get_fill_polygons() local
464 y1 = data[1]; in path_get_fill_polygons()
469 map_if_relative(ox, oy, relative, &x1, &y1); in path_get_fill_polygons()
478 matrix_map_point(matrix, x1, y1, &x1, &y1); in path_get_fill_polygons()
481 bezier_init(&bezier, x0, y0, x1, y1, in path_get_fill_polygons()
492 y1 = data[1]; in path_get_fill_polygons()
495 map_if_relative(ox, oy, relative, &x1, &y1); in path_get_fill_polygons()
498 py = y1; in path_get_fill_polygons()
501 y2 = (y3 + 2*y1) / 3.f; in path_get_fill_polygons()
503 y1 = (y0 + 2*y1) / 3.f; in path_get_fill_polygons()
[all …]
/external/fonttools/Lib/fontTools/pens/
DpointInsidePen.py89 x1, y1 = self._getCurrentPoint()
94 if y1 < y and y2 < y:
96 if y1 >= y and y2 >= y:
100 dy = y2 - y1
101 t = (y - y1) / dy
105 self._addIntersection(y2 > y1)
109 x1, y1 = self._getCurrentPoint()
116 if y1 < y and y2 < y and y3 < y and y4 < y:
118 if y1 >= y and y2 >= y and y3 >= y and y4 >= y:
121 dy = y1
[all …]
/external/llvm/test/Transforms/ObjCARC/
Dprovenance.ll13 %y1 = load i8, i8* %a
14 call void @g(i8 %y1)
39 ; CHECK: y1 and y2 are related.
40 ; CHECK: y1 and y3 are related.
42 ; CHECK: x0 and y1 are not related.
45 ; CHECK: l_objc_msgSend_fixup_ and y1 are not related.
48 ; CHECK: x1 and y1 are not related.
49 ; CHECK: x2 and y1 are not related.
50 ; CHECK: x3 and y1 are not related.
51 ; CHECK: x4 and y1 are not related.
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_rect.h36 int y0, y1; member
47 a->y1 < b->y0 || in u_rect_test_intersection()
48 b->y1 < a->y0)); in u_rect_test_intersection()
62 if (b->y1 > a->y1) b->y1 = a->y1; in u_rect_find_intersection()
74 b->x0 = b->x1 = b->y0 = b->y1 = 0; in u_rect_possible_intersection()
Du_format_yuv.c555 uint8_t y0, y1, u, v; in util_format_uyvy_unpack_rgba_float() local
567 y1 = (value >> 24) & 0xff; in util_format_uyvy_unpack_rgba_float()
573 util_format_yuv_to_rgb_float(y1, u, v, &dst[0], &dst[1], &dst[2]); in util_format_uyvy_unpack_rgba_float()
588 y1 = (value >> 24) & 0xff; in util_format_uyvy_unpack_rgba_float()
611 uint8_t y0, y1, u, v; in util_format_uyvy_unpack_rgba_8unorm() local
623 y1 = (value >> 24) & 0xff; in util_format_uyvy_unpack_rgba_8unorm()
629 util_format_yuv_to_rgb_8unorm(y1, u, v, &dst[0], &dst[1], &dst[2]); in util_format_uyvy_unpack_rgba_8unorm()
644 y1 = (value >> 24) & 0xff; in util_format_uyvy_unpack_rgba_8unorm()
666 uint8_t y0, y1, u, v; in util_format_uyvy_pack_rgba_float() local
670 uint8_t y0, y1, u0, u1, v0, v1, u, v; in util_format_uyvy_pack_rgba_float() local
[all …]
/external/tremolo/Tremolo/
Dasm_arm.h73 int x1, y1, l; in XPROD32() local
79 : "=&r" (l), "=&r" (x1), "=&r" (y1), "=r" (a) in XPROD32()
84 *y = y1; in XPROD32()
92 int x1, y1, l; in XPROD31() local
98 : "=&r" (l), "=&r" (x1), "=&r" (y1), "=r" (a) in XPROD31()
103 *y = y1 << 1; in XPROD31()
111 int x1, y1, l; in XNPROD31() local
117 : "=&r" (l), "=&r" (x1), "=&r" (y1) in XNPROD31()
122 *y = y1 << 1; in XNPROD31()
/external/libpng/contrib/tools/
Dgenpng.c179 double x1, y1, x2, y2; member
347 square_check(double x, double y, double x1, double y1, double x2, double y2) in square_check() argument
361 return ((x<x1) ^ (x<x2)) & ((y<y1) ^ (y<y2)); in square_check()
367 return square_check(x, y, arg->x1, arg->y1, arg->x2, arg->y2); in inside_square_filled()
387 double cy = (arg->y1+arg->y2)/2; in square_check_line()
388 double wy = fabs(arg->y1-arg->y2)/2; in square_check_line()
459 circle_check(double x, double y, double x1, double y1, double x2, double y2) in circle_check() argument
461 if (square_check(x, y, x1, y1, x2, y2)) in circle_check()
465 const double cy = (y1 + y2)/2; in circle_check()
467 const double dy = y1 - y2; in circle_check()
[all …]

12345678910>>...25