Home
last modified time | relevance | path

Searched refs:cy (Results 1 - 25 of 145) sorted by relevance

123456

/third_party/skia/gm/
H A Dinversepaths.cpp21 static SkPath generate_square(SkScalar cx, SkScalar cy, SkScalar w) { in generate_square() argument
22 return SkPath::Rect(SkRect::MakeXYWH(cx - w / 2, cy - w / 2, w, w)); in generate_square()
25 static SkPath generate_rect_line(SkScalar cx, SkScalar cy, SkScalar l) { in generate_rect_line() argument
26 return SkPath::Rect(SkRect::MakeXYWH(cx - l / 2, cy, l, 0)); in generate_rect_line()
29 static SkPath generate_circle(SkScalar cx, SkScalar cy, SkScalar d) { in generate_circle() argument
30 return SkPath::Circle(cx, cy, d/2, SkPathDirection::kCW); in generate_circle()
33 static SkPath generate_line(SkScalar cx, SkScalar cy, SkScalar l) { in generate_line() argument
34 return SkPath::Line({cx - l / 2, cy}, {cx + l / 2, cy}); in generate_line()
81 SkScalar cy in DEF_SIMPLE_GM() local
[all...]
H A Dbackdrop.cpp27 static sk_sp<SkShader> make_shader(SkScalar cx, SkScalar cy, SkScalar rad) { in make_shader() argument
37 return SkGradientShader::MakeSweep(cx, cy, colors, pos, count); in make_shader()
44 const SkScalar cx = 128, cy = 128, rad = 100; in do_draw() local
46 p.setShader(make_shader(cx, cy, rad)); in do_draw()
48 canvas->drawCircle(cx, cy, rad, p); in do_draw()
52 const SkRect r = {cx-50, cy-50, cx+50, cy+50}; in do_draw()
67 canvas->drawCircle(cx, cy, 30, p); in do_draw()
H A Dcrbug_996140.cpp34 SkScalar cy = 720-6.76f; in DEF_SIMPLE_GM_BG() local
67 SkRect boundingBox = SkRect::MakeLTRB(cx - radius, cy - radius, cx + radius, cy + radius); in DEF_SIMPLE_GM_BG()
/third_party/ffmpeg/libavcodec/
H A Diirfilter.c41 float *cy; member
111 c->cy[i] = (-p[i][0] * p[order][0] + -p[i][1] * p[order][1]) / in butterworth_init_coeffs()
151 c->cy[0] = (-1.0 + (sin_w0 / 2.0)) / a0; in biquad_init_coeffs()
152 c->cy[1] = (2.0 * cos_w0) / a0; in biquad_init_coeffs()
176 !(c->cy = av_malloc (sizeof(c->cy[0]) * order))) in ff_iir_filter_init_coeffs()
213 c->cy[0] * s->x[i0] + \
214 c->cy[1] * s->x[i1] + \
215 c->cy[2] * s->x[i2] + \
216 c->cy[
[all...]
H A Dcavs.c117 memcpy(&h->top_border_y[h->mbx * 16], h->cy + 15 * h->l_stride, 16); in ff_cavs_filter()
121 h->left_border_y[i * 2 + 1] = *(h->cy + 15 + (i * 2 + 0) * h->l_stride); in ff_cavs_filter()
122 h->left_border_y[i * 2 + 2] = *(h->cy + 15 + (i * 2 + 1) * h->l_stride); in ff_cavs_filter()
149 h->cdsp.cavs_filter_lv(h->cy, h->l_stride, alpha, beta, tc, bs[0], bs[1]); in ff_cavs_filter()
157 h->cdsp.cavs_filter_lv(h->cy + 8, h->l_stride, alpha, beta, tc, bs[2], bs[3]); in ff_cavs_filter()
158 h->cdsp.cavs_filter_lh(h->cy + 8 * h->l_stride, h->l_stride, alpha, beta, tc, bs[6], bs[7]); in ff_cavs_filter()
163 h->cdsp.cavs_filter_lh(h->cy, h->l_stride, alpha, beta, tc, bs[4], bs[5]); in ff_cavs_filter()
202 h->intern_border_y[i + 1] = *(h->cy + 7 + i * h->l_stride); in ff_cavs_load_intra_pred_luma()
217 memcpy(&top[1], h->cy + 7 * h->l_stride, 16); in ff_cavs_load_intra_pred_luma()
226 h->intern_border_y[i + 9] = *(h->cy in ff_cavs_load_intra_pred_luma()
549 int ax, ay, bx, by, cx, cy; mv_pred_median() local
[all...]
H A Dsanm.c1066 static int opcode_0xf7(SANMVideoContext *ctx, int cx, int cy, int block_size, ptrdiff_t pitch) in opcode_0xf7() argument
1068 uint16_t *dst = ctx->frm0 + cx + cy * ctx->pitch; in opcode_0xf7()
1100 static int opcode_0xf8(SANMVideoContext *ctx, int cx, int cy, int block_size, ptrdiff_t pitch) in opcode_0xf8() argument
1102 uint16_t *dst = ctx->frm0 + cx + cy * ctx->pitch; in opcode_0xf8()
1128 static int good_mvec(SANMVideoContext *ctx, int cx, int cy, int mx, int my, in good_mvec() argument
1131 int start_pos = cx + mx + (cy + my) * ctx->pitch; in good_mvec()
1139 cx + mx, cy + my, cx, cy, block_size); in good_mvec()
1144 static int codec2subblock(SANMVideoContext *ctx, int cx, int cy, int blk_size) in codec2subblock() argument
1159 if (good_mvec(ctx, cx, cy, m in codec2subblock()
1231 int cx, cy, ret; decode_2() local
[all...]
/third_party/ffmpeg/libavcodec/mips/
H A Diirfilter_mips.c64 float *cy; member
80 float in = *src0 * c->gain + s->x[0] * c->cy[0] + s->x[1] * c->cy[1]; in iir_filter_flt_mips()
97 float *cy = c->cy; in iir_filter_flt_mips() local
105 "lwc1 $f0, 0(%[cy]) \n\t" in iir_filter_flt_mips()
114 "lwc1 $f1, 4(%[cy]) \n\t" in iir_filter_flt_mips()
119 "lwc1 $f2, 8(%[cy]) \n\t" in iir_filter_flt_mips()
123 "lwc1 $f3, 12(%[cy]) \n\t" in iir_filter_flt_mips()
162 [gain]"f"(gain), [x]"r"(x), [cy]" in iir_filter_flt_mips()
[all...]
/third_party/skia/include/effects/
H A DSkGradientShader.h210 static sk_sp<SkShader> MakeSweep(SkScalar cx, SkScalar cy,
215 static sk_sp<SkShader> MakeSweep(SkScalar cx, SkScalar cy, in MakeSweep() argument
218 return MakeSweep(cx, cy, colors, pos, count, SkTileMode::kClamp, 0, 360, flags, in MakeSweep()
221 static sk_sp<SkShader> MakeSweep(SkScalar cx, SkScalar cy, in MakeSweep() argument
223 return MakeSweep(cx, cy, colors, pos, count, 0, nullptr); in MakeSweep()
242 static sk_sp<SkShader> MakeSweep(SkScalar cx, SkScalar cy,
248 static sk_sp<SkShader> MakeSweep(SkScalar cx, SkScalar cy, in MakeSweep() argument
252 return MakeSweep(cx, cy, colors, std::move(colorSpace), pos, count, in MakeSweep()
255 static sk_sp<SkShader> MakeSweep(SkScalar cx, SkScalar cy, in MakeSweep() argument
258 return MakeSweep(cx, cy, color in MakeSweep()
[all...]
/third_party/ffmpeg/libavfilter/
H A Dvf_deshake.c69 { "y", "set y for the rectangular search area", OFFSET(cy), AV_OPT_TYPE_INT, {.i64=-1}, -1, INT_MAX, .flags = FLAGS },
121 uint8_t *src2, int cx, int cy, int stride, in find_block_motion()
129 #define CMP(i, j) deshake->sad(src1 + cy * stride + cx, stride,\ in find_block_motion()
136 diff = CMP(cx - x, cy - y); in find_block_motion()
148 diff = CMP(cx - x, cy - y); in find_block_motion()
166 diff = CMP(cx - x, cy - y); in find_block_motion()
182 //av_log(NULL, AV_LOG_ERROR, "Final: (%d, %d) = %d x %d\n", cx, cy, mv->x, mv->y); in find_block_motion()
214 static double block_angle(int x, int y, int cx, int cy, IntMotionVector *shift) in block_angle() argument
218 a1 = atan2(y - cy, x - cx); in block_angle()
219 a2 = atan2(y - cy in block_angle()
120 find_block_motion(DeshakeContext *deshake, uint8_t *src1, uint8_t *src2, int cx, int cy, int stride, IntMotionVector *mv) find_block_motion() argument
[all...]
H A Dcolorspacedsp_template.c63 int cy = yuv2rgb_coeffs[0][0][0]; in yuv2rgb() local
73 av_assert2(yuv2rgb_coeffs[1][0][0] == cy && yuv2rgb_coeffs[2][0][0] == cy); in yuv2rgb()
89 rgb0[x << SS_W] = av_clip_int16((y00 * cy + crv * v + rnd) >> sh); in yuv2rgb()
91 rgb0[2 * x + 1] = av_clip_int16((y01 * cy + crv * v + rnd) >> sh); in yuv2rgb()
93 rgb0[2 * x + rgb_stride] = av_clip_int16((y10 * cy + crv * v + rnd) >> sh); in yuv2rgb()
94 rgb0[2 * x + rgb_stride + 1] = av_clip_int16((y11 * cy + crv * v + rnd) >> sh); in yuv2rgb()
98 rgb1[x << SS_W] = av_clip_int16((y00 * cy + cgu * u + in yuv2rgb()
101 rgb1[2 * x + 1] = av_clip_int16((y01 * cy + cgu * u + in yuv2rgb()
104 rgb1[2 * x + rgb_stride] = av_clip_int16((y10 * cy in yuv2rgb()
[all...]
H A Dvf_ciescope.c73 float *cx, float *cy, int x, int y);
1132 float cx, cy, cz, jr, jg, jb, jmax; in fill_in_tongue() local
1139 upvp_to_xy(up, vp, &cx, &cy); in fill_in_tongue()
1140 cz = 1.0 - (cx + cy); in fill_in_tongue()
1145 uv_to_xy(u, v, &cx, &cy); in fill_in_tongue()
1146 cz = 1.0 - (cx + cy); in fill_in_tongue()
1149 cy = 1.0 - ((float) y) / (h - 1); in fill_in_tongue()
1150 cz = 1.0 - (cx + cy); in fill_in_tongue()
1155 xyz_to_rgb(m, cx, cy, cz, &jr, &jg, &jb); in fill_in_tongue()
1253 float *cx, float *cy, in in filter_rgb48()
1251 filter_rgb48(AVFilterContext *ctx, const uint8_t *ptr, ptrdiff_t linesize, float *cx, float *cy, int x, int y) filter_rgb48() argument
1266 filter_rgba64(AVFilterContext *ctx, const uint8_t *ptr, ptrdiff_t linesize, float *cx, float *cy, int x, int y) filter_rgba64() argument
1281 filter_rgb24(AVFilterContext *ctx, const uint8_t *ptr, ptrdiff_t linesize, float *cx, float *cy, int x, int y) filter_rgb24() argument
1296 filter_rgba(AVFilterContext *ctx, const uint8_t *ptr, ptrdiff_t linesize, float *cx, float *cy, int x, int y) filter_rgba() argument
1311 filter_xyz(AVFilterContext *ctx, const uint8_t *ptr, ptrdiff_t linesize, float *cx, float *cy, int x, int y) filter_xyz() argument
1417 float cx, cy; filter_frame() local
[all...]
/third_party/cups-filters/cupsfilters/
H A Dimage-colorspace.c179 int cc, cm, cy; /* Calibrated CMY values */ in cupsImageCMYKToCMY() local
196 cy = cupsImageMatrix[2][0][c] + in cupsImageCMYKToCMY()
214 if (cy < 0) in cupsImageCMYKToCMY()
216 else if (cy > 255) in cupsImageCMYKToCMY()
219 *out++ = cupsImageDensity[cy]; in cupsImageCMYKToCMY()
266 int cc, cm, cy; /* Calibrated CMY values */ in cupsImageCMYKToCMYK() local
283 cy = (cupsImageMatrix[2][0][c] + in cupsImageCMYKToCMYK()
301 if (cy < 0) in cupsImageCMYKToCMYK()
303 else if (cy > 255) in cupsImageCMYKToCMYK()
306 *out++ = cupsImageDensity[cy]; in cupsImageCMYKToCMYK()
622 int cc, cm, cy; /* Calibrated CMY values */ cupsImageRGBToCMY() local
698 int cc, cm, cy; /* Calibrated CMY values */ cupsImageRGBToCMYK() local
[all...]
/third_party/ffmpeg/libswscale/
H A Dyuv2rgb.c813 int64_t cy = 1 << 16; in ff_yuv2rgb_c_init_tables() local
818 cy = (cy * 255) / 219; in ff_yuv2rgb_c_init_tables()
827 cy = (cy * contrast) >> 16; in ff_yuv2rgb_c_init_tables()
836 c->yCoeff = roundToInt16(cy * (1 << 13)) * 0x0001000100010001ULL; in ff_yuv2rgb_c_init_tables()
843 c->yuv2rgb_y_coeff = (int16_t)roundToInt16(cy * (1 << 13)); in ff_yuv2rgb_c_init_tables()
850 //scale coefficients by cy in ff_yuv2rgb_c_init_tables()
851 crv = ((crv * (1 << 16)) + 0x8000) / FFMAX(cy, 1); in ff_yuv2rgb_c_init_tables()
852 cbu = ((cbu * (1 << 16)) + 0x8000) / FFMAX(cy, in ff_yuv2rgb_c_init_tables()
[all...]
/third_party/skia/third_party/externals/libpng/contrib/tools/
H A Dgenpng.c388 double cy = (arg->y1+arg->y2)/2; in square_check_line() local
391 if (square_check(x, y, cx-wx-w, cy-wy-w, cx+wx+w, cy+wy+w)) in square_check_line()
398 if (wx > 0 && wy > 0 && square_check(x, y, cx-wx, cy-wy, cx+wx, cy+wy)) in square_check_line()
466 const double cy = (y1 + y2)/2; in circle_check() local
471 y = (y - cy)/dy; in circle_check()
497 double cy = (arg->y1+arg->y2)/2; in circle_check_line() local
500 if (circle_check(x, y, cx-wx-w, cy-wy-w, cx+wx+w, cy in circle_check_line()
[all...]
/third_party/skia/tests/
H A DPathOpsSimplifyDegenerateThreadedTest.cpp19 int cy = state.fC >> 2; in testSimplifyDegeneratesMain() local
37 path.lineTo(SkIntToScalar(cx), SkIntToScalar(cy)); in testSimplifyDegeneratesMain()
46 pathStr.appendf(" path.lineTo(%d, %d);\n", cx, cy); in testSimplifyDegeneratesMain()
76 int cy = c >> 2; in DEF_TEST() local
77 bool abcIsATriangle = (bx - ax) * (cy - ay) != (by - ay) * (cx - ax); in DEF_TEST()
H A DPathOpsSimplifyTrianglesThreadedTest.cpp20 int cy = state.fC >> 2; in testSimplifyTrianglesMain() local
40 path.lineTo(SkIntToScalar(cx), SkIntToScalar(cy)); in testSimplifyTrianglesMain()
49 pathStr.appendf(" path.lineTo(%d, %d);\n", cx, cy); in testSimplifyTrianglesMain()
82 int cy = c >> 2; in DEF_TEST() local
83 if ((bx - ax) * (cy - ay) == (by - ay) * (cx - ax)) { in DEF_TEST()
H A DVkDrawableTest.cpp251 for (int cy = 0; cy < DEV_H && !failureFound; ++cy) { in draw_drawable_test()
253 SkPMColor canvasPixel = canvasPixels[cy * DEV_W + cx]; in draw_drawable_test()
254 if (cy < DEV_H / 2) { in draw_drawable_test()
266 cx, cy, canvasPixel, expectedPixel); in draw_drawable_test()
H A DSurfaceSemaphoreTest.cpp45 for (int cy = 0; cy < CHILD_H && !failureFound; ++cy) { in check_pixels()
47 SkPMColor canvasPixel = canvasPixels[cy * CHILD_W + cx]; in check_pixels()
48 if (cy < CHILD_H / 2) { in check_pixels()
60 cx, cy, canvasPixel, expectedPixel); in check_pixels()
/third_party/skia/src/pathops/
H A DSkPathOpsConic.cpp143 double cx, cy, cz; in subDivide() local
146 cy = fPts[2].fY; in subDivide()
150 cy = conic_eval_numerator(&fPts[0].fY, fWeight, t2); in subDivide()
154 cy = fPts[0].fY; in subDivide()
158 double by = 2 * dy - (ay + cy) / 2; in subDivide()
163 SkDConic dst = {{{{ax / az, ay / az}, {bx / bz, by / bz}, {cx / cz, cy / cz}} in subDivide()
/third_party/mesa3d/src/mesa/math/
H A Dm_debug_clip.c83 const GLfloat cy = from[1]; in ref_cliptest_points4() local
89 if ( -cy + cw < 0 ) mask |= CLIP_TOP_BIT; in ref_cliptest_points4()
90 if ( cy + cw < 0 ) mask |= CLIP_BOTTOM_BIT; in ref_cliptest_points4()
107 vProj[i][1] = cy * oow; in ref_cliptest_points4()
139 const GLfloat cx = from[0], cy = from[1], cz = from[2]; in ref_cliptest_points3() local
143 if ( cy > 1.0 ) mask |= CLIP_TOP_BIT; in ref_cliptest_points3()
144 else if ( cy < -1.0 ) mask |= CLIP_BOTTOM_BIT; in ref_cliptest_points3()
177 const GLfloat cx = from[0], cy = from[1]; in ref_cliptest_points2() local
181 if ( cy > 1.0 ) mask |= CLIP_TOP_BIT; in ref_cliptest_points2()
182 else if ( cy < in ref_cliptest_points2()
[all...]
/third_party/backends/backend/
H A Dsm3600-scanutil.c293 this->state.cyPixel =this->param.cy*this->param.res/1200; in GetAreaSize()
375 int cx,cy; in DoScanFile() local
389 cy=this->state.cyPixel; in DoScanFile()
391 fprintf(stderr,"scanning %d by %d\n",cx,cy); in DoScanFile()
396 case color: fprintf(this->fhScan,"P6\n%d %d\n255\n",cx,cy); in DoScanFile()
398 case gray: fprintf(this->fhScan,"P5\n%d %d\n255\n",cx,cy); in DoScanFile()
400 default: fprintf(this->fhScan,"P4\n%d %d\n",cx,cy); in DoScanFile()
/third_party/skia/src/core/
H A DSkMaskFilter.cpp82 int cy = center.y(); in draw_nine_clipped() local
88 m.fBounds.fBottom = cy; in draw_nine_clipped()
98 m.fBounds.fBottom = cy; in draw_nine_clipped()
108 m.fBounds.fTop = cy + 1; in draw_nine_clipped()
118 m.fBounds.fTop = cy + 1; in draw_nine_clipped()
128 outerR.top() + cy - mask.fBounds.top(), in draw_nine_clipped()
130 outerR.bottom() + (cy + 1 - mask.fBounds.bottom())); in draw_nine_clipped()
173 mask.fBounds.top() + cy); in draw_nine_clipped()
184 mask.fBounds.top() + cy); in draw_nine_clipped()
/third_party/ffmpeg/libavdevice/
H A Ddshow_common.c93 dshowdebug(" InputSize %ld\t%ld\n", caps->InputSize.cx, caps->InputSize.cy); in ff_print_VIDEO_STREAM_CONFIG_CAPS()
94 dshowdebug(" MinCroppingSize %ld\t%ld\n", caps->MinCroppingSize.cx, caps->MinCroppingSize.cy); in ff_print_VIDEO_STREAM_CONFIG_CAPS()
95 dshowdebug(" MaxCroppingSize %ld\t%ld\n", caps->MaxCroppingSize.cx, caps->MaxCroppingSize.cy); in ff_print_VIDEO_STREAM_CONFIG_CAPS()
100 dshowdebug(" MinOutputSize %ld\t%ld\n", caps->MinOutputSize.cx, caps->MinOutputSize.cy); in ff_print_VIDEO_STREAM_CONFIG_CAPS()
101 dshowdebug(" MaxOutputSize %ld\t%ld\n", caps->MaxOutputSize.cx, caps->MaxOutputSize.cy); in ff_print_VIDEO_STREAM_CONFIG_CAPS()
/third_party/skia/third_party/externals/swiftshader/third_party/marl/examples/
H A Dfractal.cpp66 Color<float> julia(float x, float y, float cx, float cy) { in julia() argument
73 y = 2 * x * y + cy; in julia()
149 constexpr float cy = 0.156f; variable
187 lerp(dy, windowMinY, windowMaxY), cx, cy); in main()
/third_party/skia/third_party/etc1/
H A Detc1.cpp543 for (etc1_uint32 cy = 0; cy < yEnd; cy++) { in etc1_encode_image()
544 etc1_byte* q = block + (cy * 4) * 3; in etc1_encode_image()
545 const etc1_byte* p = pIn + pixelSize * x + stride * (y + cy); in etc1_encode_image()
596 for (etc1_uint32 cy = 0; cy < yEnd; cy++) { in etc1_decode_image()
597 const etc1_byte* q = block + (cy * 4) * 3; in etc1_decode_image()
598 etc1_byte* p = pOut + pixelSize * x + stride * (y + cy); in etc1_decode_image()
[all...]

Completed in 19 milliseconds

123456