Home
last modified time | relevance | path

Searched refs:xy (Results 1 - 25 of 359) sorted by relevance

12345678910>>...15

/third_party/skia/src/pathops/
H A DSkPathOpsLine.cpp21 double SkDLine::exactPoint(const SkDPoint& xy) const { in exactPoint()
22 if (xy == fPts[0]) { // do cheapest test first in exactPoint()
25 if (xy == fPts[1]) { in exactPoint()
31 double SkDLine::nearPoint(const SkDPoint& xy, bool* unequal) const { in nearPoint() argument
32 if (!AlmostBetweenUlps(fPts[0].fX, xy.fX, fPts[1].fX) in nearPoint()
33 || !AlmostBetweenUlps(fPts[0].fY, xy.fY, fPts[1].fY)) { in nearPoint()
39 SkDVector ab0 = xy - fPts[0]; in nearPoint()
49 double dist = realPt.distance(xy); // OPTIMIZATION: can we compare against distSq instead ? in nearPoint()
65 bool SkDLine::nearRay(const SkDPoint& xy) const { in nearRay()
69 SkDVector ab0 = xy in nearRay()
81 ExactPointH(const SkDPoint& xy, double left, double right, double y) ExactPointH() argument
93 NearPointH(const SkDPoint& xy, double left, double right, double y) NearPointH() argument
116 ExactPointV(const SkDPoint& xy, double top, double bottom, double x) ExactPointV() argument
128 NearPointV(const SkDPoint& xy, double top, double bottom, double x) NearPointV() argument
[all...]
H A DSkPathOpsLine.h24 double exactPoint(const SkDPoint& xy) const;
25 static double ExactPointH(const SkDPoint& xy, double left, double right, double y);
26 static double ExactPointV(const SkDPoint& xy, double top, double bottom, double x);
28 double nearPoint(const SkDPoint& xy, bool* unequal) const;
29 bool nearRay(const SkDPoint& xy) const;
30 static double NearPointH(const SkDPoint& xy, double left, double right, double y);
31 static double NearPointV(const SkDPoint& xy, double top, double bottom, double x);
H A DSkPathOpsCurve.cpp13 double SkDCurve::nearPoint(SkPath::Verb verb, const SkDPoint& xy, const SkDPoint& opp) const { in nearPoint() argument
21 if (!AlmostBetweenUlps(minX, xy.fX, maxX)) { in nearPoint()
30 if (!AlmostBetweenUlps(minY, xy.fY, maxY)) { in nearPoint()
34 SkDLine perp = {{ xy, { xy.fX + opp.fY - xy.fY, xy.fY + xy.fX - opp.fX }}}; in nearPoint()
39 double dist = xy.distance(i.pt(index)); in nearPoint()
/third_party/typescript/tests/baselines/reference/
H A DnarrowingByTypeofInSwitch.js157 function multipleGeneric<X extends L, Y extends R>(xy: X | Y): [X, string] | [Y, number] {
158 switch (typeof xy) {
159 case 'function': return [xy, xy(42)];
160 case 'object': return [xy, xy.y];
161 default: return assertNever(xy);
165 function multipleGenericFuse<X extends L | number, Y extends R | number>(xy: X | Y): [X, number] | [Y, string] | [(X | Y)] {
166 switch (typeof xy) {
167 case 'function': return [xy,
[all...]
/third_party/ffmpeg/libavcodec/
H A Dvc1_pred.c217 int xy, wrap, off = 0; in ff_vc1_pred_mv() local
241 xy = s->block_index[n]; in ff_vc1_pred_mv()
244 s->mv[0][n][0] = s->current_picture.motion_val[0][xy + v->blocks_off][0] = 0; in ff_vc1_pred_mv()
245 s->mv[0][n][1] = s->current_picture.motion_val[0][xy + v->blocks_off][1] = 0; in ff_vc1_pred_mv()
246 s->current_picture.motion_val[1][xy + v->blocks_off][0] = 0; in ff_vc1_pred_mv()
247 s->current_picture.motion_val[1][xy + v->blocks_off][1] = 0; in ff_vc1_pred_mv()
249 s->current_picture.motion_val[0][xy + 1 + v->blocks_off][0] = 0; in ff_vc1_pred_mv()
250 s->current_picture.motion_val[0][xy + 1 + v->blocks_off][1] = 0; in ff_vc1_pred_mv()
251 s->current_picture.motion_val[0][xy + wrap + v->blocks_off][0] = 0; in ff_vc1_pred_mv()
252 s->current_picture.motion_val[0][xy in ff_vc1_pred_mv()
474 int xy, wrap, off = 0; ff_vc1_pred_mv_intfr() local
695 int xy, wrap, off = 0; ff_vc1_pred_b_mv() local
[all...]
H A Dh263.c57 const int xy = s->block_index[0]; in ff_h263_update_motion_val() local
85 s->current_picture.motion_val[0][xy][0] = motion_x; in ff_h263_update_motion_val()
86 s->current_picture.motion_val[0][xy][1] = motion_y; in ff_h263_update_motion_val()
87 s->current_picture.motion_val[0][xy + 1][0] = motion_x; in ff_h263_update_motion_val()
88 s->current_picture.motion_val[0][xy + 1][1] = motion_y; in ff_h263_update_motion_val()
89 s->current_picture.motion_val[0][xy + wrap][0] = motion_x; in ff_h263_update_motion_val()
90 s->current_picture.motion_val[0][xy + wrap][1] = motion_y; in ff_h263_update_motion_val()
91 s->current_picture.motion_val[0][xy + 1 + wrap][0] = motion_x; in ff_h263_update_motion_val()
92 s->current_picture.motion_val[0][xy + 1 + wrap][1] = motion_y; in ff_h263_update_motion_val()
109 const int xy in ff_h263_loop_filter() local
[all...]
H A Dmotion_est.c501 const int xy= s->mb_x + s->mb_y*s->mb_stride; in set_p_mv_tables() local
503 s->p_mv_table[xy][0] = mx; in set_p_mv_tables()
504 s->p_mv_table[xy][1] = my; in set_p_mv_tables()
753 const int xy= s->mb_x + s->mb_y*mot_stride; in interlaced_search() local
772 av_assert1(field_select_tables[block][xy]==0 || field_select_tables[block][xy]==1); in interlaced_search()
773 if(field_select_tables[block][xy] != field_select) in interlaced_search()
777 P_LEFT[0] = mv_table[xy - 1][0]; in interlaced_search()
778 P_LEFT[1] = mv_table[xy - 1][1]; in interlaced_search()
785 P_TOP[0] = mv_table[xy in interlaced_search()
1070 const int xy= mb_x + mb_y*s->mb_stride; ff_pre_estimate_p_frame_motion() local
1247 const int xy = mb_y *mot_stride + mb_x; bidir_refine() local
1499 const int xy = mb_y*s->mb_stride + mb_x; ff_estimate_b_frame_motion() local
1618 int xy= y*s->mb_stride; ff_get_best_fcode() local
1671 int xy= y*2*wrap; ff_fix_long_p_mvs() local
1718 int xy= y*s->mb_stride; ff_fix_long_mvs() local
[all...]
H A Dh261.c35 int x, y, xy, yz; in h261_loop_filter() local
44 xy = y * stride + x; in h261_loop_filter()
46 temp[yz] = src[xy - stride] + 2 * src[xy] + src[xy + stride]; in h261_loop_filter()
54 xy = y * stride + x; in h261_loop_filter()
56 src[xy] = (temp[yz - 1] + 2 * temp[yz] + temp[yz + 1] + 8) >> 4; in h261_loop_filter()
H A Dmpegutils.c131 int xy = (mb_x * 2 + (i & 1) + in ff_print_debug_info2() local
133 int mx = motion_val[direction][xy][0]; in ff_print_debug_info2()
134 int my = motion_val[direction][xy][1]; in ff_print_debug_info2()
141 int xy = (mb_x * 2 + (mb_y * 2 + i) * mv_stride) << (mv_sample_log2 - 1); in ff_print_debug_info2() local
142 int mx = motion_val[direction][xy][0]; in ff_print_debug_info2()
143 int my = motion_val[direction][xy][1]; in ff_print_debug_info2()
154 int xy = (mb_x * 2 + i + mb_y * 2 * mv_stride) << (mv_sample_log2 - 1); in ff_print_debug_info2() local
155 int mx = motion_val[direction][xy][0]; in ff_print_debug_info2()
156 int my = motion_val[direction][xy][1]; in ff_print_debug_info2()
166 int xy in ff_print_debug_info2() local
[all...]
/third_party/musl/src/math/
H A Dfmaf.c42 double xy, result; in fmaf() local
46 xy = (double)x * y; in fmaf()
47 result = xy + z; in fmaf()
53 (result - xy == z && result - z == xy) || /* exact */ in fmaf()
65 result = xy + vz; in fmaf()
82 if (neg == (z > xy)) in fmaf()
83 err = xy - result + z; in fmaf()
85 err = z - result + xy; in fmaf()
/third_party/musl/porting/liteos_a/kernel/src/math/
H A Dfmaf.c42 double xy, result; in fmaf() local
46 xy = (double)x * y; in fmaf()
47 result = xy + z; in fmaf()
53 (result - xy == z && result - z == xy) || /* exact */ in fmaf()
65 result = xy + vz; in fmaf()
82 if (neg == (z > xy)) in fmaf()
83 err = xy - result + z; in fmaf()
85 err = z - result + xy; in fmaf()
/third_party/skia/src/core/
H A DSkBitmapProcState_matrixProcs.cpp76 uint32_t xy[], int count, int x, int y) { in nofilter_scale()
83 *xy++ = tiley(mapper.fixedY(), s.fPixmap.height() - 1); in nofilter_scale()
90 memset(xy, 0, count * sizeof(uint16_t)); in nofilter_scale()
101 decal_nofilter_scale(xy, fixedFx, fixedDx, count); in nofilter_scale()
108 *xy++ = pack_two_shorts(tilex(SkFractionalIntToFixed(fx ), maxX), in nofilter_scale()
113 auto xx = (uint16_t*)xy; in nofilter_scale()
122 uint32_t xy[], int count, int x, int y) { in nofilter_affine()
135 *xy++ = (tiley(SkFractionalIntToFixed(fy), maxY) << 16) in nofilter_affine()
167 uint32_t xy[], int count, int x, int y) { in filter_scale()
177 *xy in filter_scale()
75 nofilter_scale(const SkBitmapProcState& s, uint32_t xy[], int count, int x, int y) nofilter_scale() argument
121 nofilter_affine(const SkBitmapProcState& s, uint32_t xy[], int count, int x, int y) nofilter_affine() argument
166 filter_scale(const SkBitmapProcState& s, uint32_t xy[], int count, int x, int y) filter_scale() argument
203 filter_affine(const SkBitmapProcState& s, uint32_t xy[], int count, int x, int y) filter_affine() argument
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/shaders/src/third_party/ffx_spd/
H A Dffx_spd.h243 // SpdDownsample(AU2(gl_WorkGroupID.xy), AU1(gl_LocalInvocationIndex),
247 // SpdDownsampleH(AU2(gl_WorkGroupID.xy), AU1(gl_LocalInvocationIndex),
253 // SpdDownsample(AU2(WorkGroupId.xy), AU1(LocalThreadIndex),
257 // SpdDownsampleH(AU2(WorkGroupId.xy), AU1(LocalThreadIndex),
405 ASU2 tex = ASU2(workGroupID.xy * 64) + ASU2(x * 2, y * 2); in SpdDownsampleMips_0_1_Intrinsics()
406 ASU2 pix = ASU2(workGroupID.xy * 32) + ASU2(x, y); in SpdDownsampleMips_0_1_Intrinsics()
410 tex = ASU2(workGroupID.xy * 64) + ASU2(x * 2 + 32, y * 2); in SpdDownsampleMips_0_1_Intrinsics()
411 pix = ASU2(workGroupID.xy * 32) + ASU2(x + 16, y); in SpdDownsampleMips_0_1_Intrinsics()
415 tex = ASU2(workGroupID.xy * 64) + ASU2(x * 2, y * 2 + 32); in SpdDownsampleMips_0_1_Intrinsics()
416 pix = ASU2(workGroupID.xy * 3 in SpdDownsampleMips_0_1_Intrinsics()
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/shaders/compiled/
H A Dpassthrough2d11vs.h15 // POSITION 0 xy 0 NONE float xy
16 // TEXCOORD 0 xy 1 NONE float xy
24 // TEXCOORD 0 xy 1 NONE float xy
40 add oPos.xy, v0, c0
42 mov oT0.xy, v1
46 dcl_input v0.xy
47 dcl_input v1.xy
[all...]
H A Dresolvestencil11_ps.h23 // TEXCOORD 0 xy 1 NONE float xy
30 // SV_Target 0 xy 0 TARGET float xy
35 dcl_input_ps linear v1.xy
36 dcl_output o0.xy
38 resinfo_uint r0.xy, l(0), t1.xyzw
39 utof r0.xy, r0.xyxx
40 mul r0.xy, r0.xyxx, v1.xyxx
41 ftou r0.xy, r
[all...]
H A Dresolvedepthstencil11_ps.h24 // TEXCOORD 0 xy 1 NONE float xy
31 // SV_Target 0 xy 0 TARGET float xy
37 dcl_input_ps linear v1.xy
38 dcl_output o0.xy
40 resinfo_uint r0.xy, l(0), t0.xyzw
41 utof r0.xy, r0.xyxx
42 mul r0.xy, r0.xyxx, v1.xyxx
43 ftou r0.xy, r
[all...]
H A Dpassthroughrg2dui11ps.h23 // TEXCOORD 0 xy 1 NONE float xy
34 dcl_input_ps linear v1.xy
38 utof r0.xy, r0.xyxx
39 mul r0.xy, r0.xyxx, v1.xyxx
40 ftoi r0.xy, r0.xyxx
43 mov o0.xy, r0.xyxx
H A Dpassthroughrg2di11ps.h23 // TEXCOORD 0 xy 1 NONE float xy
34 dcl_input_ps linear v1.xy
38 utof r0.xy, r0.xyxx
39 mul r0.xy, r0.xyxx, v1.xyxx
40 ftoi r0.xy, r0.xyxx
43 mov o0.xy, r0.xyxx
H A Dresolvedepth11_ps.h23 // TEXCOORD 0 xy 1 NONE float xy
35 dcl_input_ps linear v1.xy
38 resinfo_uint r0.xy, l(0), t0.xyzw
39 utof r0.xy, r0.xyxx
40 mul r0.xy, r0.xyxx, v1.xyxx
41 ftou r0.xy, r0.xyxx
H A Dpassthroughrg2darrayui11ps.h24 // TEXCOORD 0 xyz 2 NONE float xy
36 dcl_input_ps linear v2.xy
40 utof r0.xy, r0.xyxx
41 mul r0.xy, r0.xyxx, v2.xyxx
42 ftoi r0.xy, r0.xyxx
46 mov o0.xy, r0.xyxx
H A Dpassthroughrg2darrayi11ps.h24 // TEXCOORD 0 xyz 2 NONE float xy
36 dcl_input_ps linear v2.xy
40 utof r0.xy, r0.xyxx
41 mul r0.xy, r0.xyxx, v2.xyxx
42 ftoi r0.xy, r0.xyxx
46 mov o0.xy, r0.xyxx
H A Dresolvecolor2dps.h19 // TEXCOORD 0 xy 1 NONE float xy
31 dcl_input_ps linear v1.xy
34 resinfo_uint r0.xy, l(0), t0.xyzw
36 utof r0.xy, r0.xyxx
37 mul r0.xy, r0.xyxx, v1.xyxx
38 ftou r1.xy, r0.xyxx
/third_party/skia/third_party/externals/libpng/
H A Dpng.c1233 png_xy_from_XYZ(png_xy *xy, const png_XYZ *XYZ) in png_xy_from_XYZ() argument
1238 if (png_muldiv(&xy->redx, XYZ->red_X, PNG_FP_1, d) == 0) in png_xy_from_XYZ()
1240 if (png_muldiv(&xy->redy, XYZ->red_Y, PNG_FP_1, d) == 0) in png_xy_from_XYZ()
1247 if (png_muldiv(&xy->greenx, XYZ->green_X, PNG_FP_1, d) == 0) in png_xy_from_XYZ()
1249 if (png_muldiv(&xy->greeny, XYZ->green_Y, PNG_FP_1, d) == 0) in png_xy_from_XYZ()
1256 if (png_muldiv(&xy->bluex, XYZ->blue_X, PNG_FP_1, d) == 0) in png_xy_from_XYZ()
1258 if (png_muldiv(&xy->bluey, XYZ->blue_Y, PNG_FP_1, d) == 0) in png_xy_from_XYZ()
1267 if (png_muldiv(&xy->whitex, whiteX, PNG_FP_1, dwhite) == 0) in png_xy_from_XYZ()
1269 if (png_muldiv(&xy->whitey, whiteY, PNG_FP_1, dwhite) == 0) in png_xy_from_XYZ()
1276 png_XYZ_from_xy(png_XYZ *XYZ, const png_xy *xy) in png_XYZ_from_xy() argument
1618 png_colorspace_check_xy(png_XYZ *XYZ, const png_xy *xy) png_colorspace_check_xy() argument
1644 png_colorspace_check_XYZ(png_xy *xy, png_XYZ *XYZ) png_colorspace_check_XYZ() argument
1672 png_colorspace_set_xy_and_XYZ(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_xy *xy, const png_XYZ *XYZ, int preferred) png_colorspace_set_xy_and_XYZ() argument
1720 png_colorspace_set_chromaticities(png_const_structrp png_ptr, png_colorspacerp colorspace, const png_xy *xy, int preferred) png_colorspace_set_chromaticities() argument
1761 png_xy xy; png_colorspace_set_endpoints() local
[all...]
/third_party/skia/src/opts/
H A DSkBitmapProcState_opts.h43 const uint32_t* xy, int count, uint32_t* colors) { in S32_alpha_D32_filter_DX()
51 decode_packed_coordinates_and_weight(*xy++, &y0, &y1, &wy); in S32_alpha_D32_filter_DX()
153 bilerp(skvx::Vec<8,uint32_t>::Load(xy)).store(colors); in S32_alpha_D32_filter_DX()
154 xy += 8; in S32_alpha_D32_filter_DX()
160 coords = _mm256_maskload_epi32((const int*)xy, active), in S32_alpha_D32_filter_DX()
175 const uint32_t* xy, int count, uint32_t* colors) { in S32_alpha_D32_filter_DX()
235 // That means the first entry of xy is our constant pair of Y coordinates and weight in Y. in S32_alpha_D32_filter_DX()
236 // All the other entries in xy will be pairs of X coordinates and the X weight. in S32_alpha_D32_filter_DX()
238 decode_packed_coordinates_and_weight(*xy++, &y0, &y1, &wy); in S32_alpha_D32_filter_DX()
250 __m128i packed = _mm_loadu_si128((const __m128i*)xy); in S32_alpha_D32_filter_DX()
42 S32_alpha_D32_filter_DX(const SkBitmapProcState& s, const uint32_t* xy, int count, uint32_t* colors) S32_alpha_D32_filter_DX() argument
174 S32_alpha_D32_filter_DX(const SkBitmapProcState& s, const uint32_t* xy, int count, uint32_t* colors) S32_alpha_D32_filter_DX() argument
313 S32_alpha_D32_filter_DX(const SkBitmapProcState& s, const uint32_t* xy, int count, uint32_t* colors) S32_alpha_D32_filter_DX() argument
446 int xy = x * y; filter_and_scale_by_alpha() local
475 S32_alpha_D32_filter_DX(const SkBitmapProcState& s, const uint32_t* xy, int count, SkPMColor* colors) S32_alpha_D32_filter_DX() argument
504 S32_alpha_D32_filter_DXDY(const SkBitmapProcState& s, const uint32_t* xy, int count, SkPMColor* colors) S32_alpha_D32_filter_DXDY() argument
[all...]
/third_party/skia/third_party/externals/freetype/src/base/
H A Dftcalc.c663 FT_Fixed xx, xy, yx, yy; in FT_Matrix_Multiply() local
670 FT_MulFix( a->xy, b->yx ) ); in FT_Matrix_Multiply()
671 xy = ADD_LONG( FT_MulFix( a->xx, b->xy ), in FT_Matrix_Multiply()
672 FT_MulFix( a->xy, b->yy ) ); in FT_Matrix_Multiply()
675 yy = ADD_LONG( FT_MulFix( a->yx, b->xy ), in FT_Matrix_Multiply()
679 b->xy = xy; in FT_Matrix_Multiply()
698 FT_MulFix( matrix->xy, matrix->yx ); in FT_EXPORT_DEF()
703 matrix->xy in FT_EXPORT_DEF()
723 FT_Fixed xx, xy, yx, yy; FT_Matrix_Multiply_Scaled() local
[all...]

Completed in 14 milliseconds

12345678910>>...15