Home
last modified time | relevance | path

Searched refs:fx (Results 1 - 25 of 79) sorted by relevance

1234

/third_party/skia/src/core/
H A DSkBitmapProcState_matrixProcs.cpp17 * 2. [fx, fx+dx, fx+2dx, fx+3dx, ... fx+(count-1)dx] are all <= maxX
24 static inline bool can_truncate_to_fixed_for_decal(SkFixed fx, in can_truncate_to_fixed_for_decal() argument
36 // Note: it seems the test should be (fx <= max && lastFx <= max); but in can_truncate_to_fixed_for_decal()
42 if ((unsigned)SkFixedFloorToInt(fx) >= max) { in can_truncate_to_fixed_for_decal()
47 const uint64_t lastFx = fx + sk_64_mul(dx, count - 1); in can_truncate_to_fixed_for_decal()
57 static void decal_nofilter_scale(uint32_t dst[], SkFixed fx, SkFixe argument
80 SkFractionalInt fx; nofilter_scale() local
127 SkFractionalInt fx = mapper.fractionalIntX(), nofilter_affine() local
144 extract_low_bits_clamp_clamp(SkFixed fx, int ) extract_low_bits_clamp_clamp() argument
151 extract_low_bits_general(SkFixed fx, int max) extract_low_bits_general() argument
172 SkFractionalInt fx; filter_scale() local
212 SkFractionalInt fx = mapper.fractionalIntX(), filter_affine() local
233 repeat(SkFixed fx, int max) repeat() argument
[all...]
H A DSkBitmapProcState.cpp34 SkFractionalInt fx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc() local
40 fx = mapper.fractionalIntX(); in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
48 if ((uint64_t)SkFractionalIntToInt(fx) <= maxX && in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
49 (uint64_t)SkFractionalIntToInt(fx + dx * (count - 1)) <= maxX) in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
53 SkPMColor src0 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
54 SkPMColor src1 = src[SkFractionalIntToInt(fx)]; fx += dx; in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
55 SkPMColor src2 = src[SkFractionalIntToInt(fx)]; fx in Clamp_S32_opaque_D32_nofilter_DX_shaderproc()
[all...]
H A DSkScan_Antihair.cpp193 SkFixed drawCap(int y, SkFixed fx, SkFixed dx, int mod64) override {
195 fx += SK_Fixed1/2;
197 int x = fx >> 16;
198 int a = (uint8_t)((fx >> 8) & 0xFF);
209 return fx - SK_Fixed1/2;
212 SkFixed drawLine(int y, int stopy, SkFixed fx, SkFixed dx) override {
215 fx += SK_Fixed1/2;
217 int x = fx >> 16;
218 int a = (uint8_t)((fx >> 8) & 0xFF);
228 return fx
[all...]
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/
H A DShaderVariable_test.cpp193 ShaderVariable fx; in TEST() local
194 fx.type = GL_FLOAT; in TEST()
195 fx.precision = GL_MEDIUM_FLOAT; in TEST()
196 fx.name = "vary"; in TEST()
197 fx.mappedName = "m_vary"; in TEST()
198 fx.staticUse = true; in TEST()
199 fx.isInvariant = false; in TEST()
202 EXPECT_FALSE(vx.isSameVaryingAtLinkTime(fx)); in TEST()
203 EXPECT_FALSE(vx.isSameVaryingAtLinkTime(fx, 100)); in TEST()
205 EXPECT_TRUE(vx.isSameVaryingAtLinkTime(fx, 30 in TEST()
417 ShaderVariable fx; TEST() local
[all...]
/third_party/skia/bench/
H A DInterpBench.cpp62 void performTest(int16_t dst[], float fx, float dx, int count) override {
63 SkFixed curr = SkFloatToFixed(fx);
81 void performTest(int16_t dst[], float fx, float dx, int count) override {
82 int64_t curr = (int64_t)(fx * 65536 * 655536);
112 void performTest(int16_t dst[], float fx, float dx, int count) override {
113 int64_t curr = (int64_t)(fx * 65536 * 655536 * 65536);
132 void performTest(int16_t dst[], float fx, float dx, int count) override {
135 tmp = SkFloatToFixed(fx); dst[i + 0] = TILE(tmp, count); fx += dx;
136 tmp = SkFloatToFixed(fx); ds
[all...]
H A DSk4fBench.cpp68 fx(0.1f),
74 Sk4f a = c0 + dc*fx + Sk4f(0.5f), // add an extra 0.5f to get rounding for free.
/third_party/skia/src/shaders/gradients/
H A DSk4fLinearGradient.cpp54 SkScalar pinFx<SkTileMode::kClamp>(SkScalar fx) { in pinFx() argument
55 return fx; in pinFx()
59 SkScalar pinFx<SkTileMode::kRepeat>(SkScalar fx) { in pinFx() argument
60 SkScalar f = SkScalarIsFinite(fx) ? SkScalarFraction(fx) : 0; in pinFx()
70 SkScalar pinFx<SkTileMode::kMirror>(SkScalar fx) {
71 SkScalar f = SkScalarIsFinite(fx) ? SkScalarMod(fx, 2.0f) : 0;
106 SkLinearGradient::LinearGradient4fContext::findInterval(SkScalar fx) const { in findInterval()
107 SkASSERT(in_range(fx, fInterval in findInterval()
217 const SkScalar fx = pinFx<tileMode>(pt.x()); shadeSpanInternal() local
262 LinearIntervalProcessor(const Sk4fGradientInterval* firstInterval, const Sk4fGradientInterval* lastInterval, const Sk4fGradientInterval* i, SkScalar fx, SkScalar dx, bool is_vertical) LinearIntervalProcessor() argument
[all...]
/third_party/typescript/tests/baselines/reference/
H A DinstantiationExpressions.js2 declare function fx<T>(x: T): T;
3 declare function fx<T>(x: T, n: number): T;
4 declare function fx<T, U>(t: [T, U]): [T, U];
7 let f0 = fx<>; // Error
8 let f1 = fx<string>; // { (x: string): string; (x: string, n: number): string; }
9 let f2 = fx<string, number>; // (t: [string, number]) => [string, number]
10 let f3 = fx<string, number, boolean>; // Error
13 type T10 = typeof fx<>; // Error
14 type T11 = typeof fx<string>; // { (x: string): string; (x: string, n: number): string; }
15 type T12 = typeof fx<strin
[all...]
H A DstrictFunctionTypes1.js12 declare function fx(f: (x: "def") => void): void;
16 const x3 = f3("abc", fo, fx); // "abc" | "def"
22 const x11 = f3(never, fo, fx); // "def"
57 var x3 = f3("abc", fo, fx); // "abc" | "def"
60 var x11 = f3(never, fo, fx); // "def"
80 declare function fx(f: (x: "def") => void): void;
/third_party/ffmpeg/libavdevice/
H A Ddshow_common.c180 WAVEFORMATEX *fx = (void *) type->pbFormat; in ff_print_AM_MEDIA_TYPE() local
181 dshowdebug(" wFormatTag: %u\n", fx->wFormatTag); in ff_print_AM_MEDIA_TYPE()
182 dshowdebug(" nChannels: %u\n", fx->nChannels); in ff_print_AM_MEDIA_TYPE()
183 dshowdebug(" nSamplesPerSec: %lu\n", fx->nSamplesPerSec); in ff_print_AM_MEDIA_TYPE()
184 dshowdebug(" nAvgBytesPerSec: %lu\n", fx->nAvgBytesPerSec); in ff_print_AM_MEDIA_TYPE()
185 dshowdebug(" nBlockAlign: %u\n", fx->nBlockAlign); in ff_print_AM_MEDIA_TYPE()
186 dshowdebug(" wBitsPerSample: %u\n", fx->wBitsPerSample); in ff_print_AM_MEDIA_TYPE()
187 dshowdebug(" cbSize: %u\n", fx->cbSize); in ff_print_AM_MEDIA_TYPE()
/third_party/skia/tests/
H A DSkGlyphBufferTest.cpp30 float fx = x * step; in DEF_TEST() local
31 SkPoint roundedPos = SkPoint{fx, 0} + roundingSpec.halfAxisSampleFreq; in DEF_TEST()
47 float fx = x * step, fy = y * step; in DEF_TEST() local
48 SkPoint roundedPos = SkPoint{fx, fy} + roundingSpec.halfAxisSampleFreq; in DEF_TEST()
64 float fx = x * step, fy = y * step; in DEF_TEST() local
65 SkPoint roundedPos = SkPoint{fx, fy} + roundingSpec.halfAxisSampleFreq; in DEF_TEST()
86 float fx = x * step + kLargeDistance, fy = y * step + kLargeDistance; in DEF_TEST() local
87 SkPoint roundedPos = SkPoint{fx, fy} + roundingSpec.halfAxisSampleFreq; in DEF_TEST()
H A DPathOpsSimplifyDegenerateThreadedTest.cpp27 int fx = f & 0x03; in testSimplifyDegeneratesMain() local
30 != (ey - dy) * (fx - dx)) { in testSimplifyDegeneratesMain()
41 path.lineTo(SkIntToScalar(fx), SkIntToScalar(fy)); in testSimplifyDegeneratesMain()
50 pathStr.appendf(" path.lineTo(%d, %d);\n", fx, fy); in testSimplifyDegeneratesMain()
H A DPathOpsSimplifyTrianglesThreadedTest.cpp31 int fx = f & 0x03; in testSimplifyTrianglesMain() local
33 if ((ex - dx) * (fy - dy) == (ey - dy) * (fx - dx)) { in testSimplifyTrianglesMain()
44 path.lineTo(SkIntToScalar(fx), SkIntToScalar(fy)); in testSimplifyTrianglesMain()
53 pathStr.appendf(" path.lineTo(%d, %d);\n", fx, fy); in testSimplifyTrianglesMain()
H A DPathOpsSimplifyQuadThreadedTest.cpp30 int fx = f & 0x03; in testSimplifyQuadsMain() local
45 path.lineTo(SkIntToScalar(fx), SkIntToScalar(fy)); in testSimplifyQuadsMain()
58 pathStr.appendf(" path.lineTo(%d, %d);\n", fx, fy); in testSimplifyQuadsMain()
H A DPathOpsSimplifyQuadralateralsThreadedTest.cpp30 int fx = f & 0x03; in testSimplifyQuadralateralsMain() local
45 path.lineTo(SkIntToScalar(fx), SkIntToScalar(fy)); in testSimplifyQuadralateralsMain()
59 pathStr.appendf(" path.lineTo(%d, %d);\n", fx, fy); in testSimplifyQuadralateralsMain()
/third_party/mesa3d/src/gallium/drivers/svga/
H A Dsvga_state_framebuffer.c419 float fx = viewport->scale[0] * -1.0f + viewport->translate[0]; in get_viewport_prescale() local
432 "\ninitial %f,%f %fx%f\n", in get_viewport_prescale()
433 fx, in get_viewport_prescale()
461 fx = viewport->scale[0] * 1.0f + viewport->translate[0]; in get_viewport_prescale()
479 if (fx < 0) { in get_viewport_prescale()
480 prescale->translate[0] += fx; in get_viewport_prescale()
481 prescale->scale[0] *= fw / (fw + fx); in get_viewport_prescale()
482 fw += fx; in get_viewport_prescale()
483 fx = 0.0f; in get_viewport_prescale()
498 if (fx in get_viewport_prescale()
[all...]
/third_party/skia/third_party/externals/freetype/src/autofit/
H A Dafhints.c472 point->fx, in af_glyph_hints_dump_points()
647 *offset = ( dim == AF_DIMENSION_HORZ ) ? seg->first->fx in af_glyph_hints_get_segment_offset()
987 point->fx = (FT_Short)vec->x; in FT_LOCAL_DEF()
992 end->fx = (FT_Short)outline->points[endpoint].x; in FT_LOCAL_DEF()
1007 out_x = point->fx - prev->fx; in FT_LOCAL_DEF()
1088 out_x = point->fx - prev->fx; in FT_LOCAL_DEF()
1137 out_x += next->fx - point->fx; in FT_LOCAL_DEF()
[all...]
/third_party/ffmpeg/libavcodec/
H A Dmotion_est.c125 int fx = c->direct_basis_mv[i][0] + hx; in cmp_direct_inline() local
127 int bx = hx ? fx - c->co_located_mv[i][0] : c->co_located_mv[i][0]*(time_pb - time_pp)/time_pp + ((i &1)<<(qpel+4)); in cmp_direct_inline()
129 int fxy= (fx&mask) + ((fy&mask)<<(qpel+1)); in cmp_direct_inline()
134 c->qpel_put[1][fxy](dst, ref[0] + (fx>>2) + (fy>>2)*stride, stride); in cmp_direct_inline()
137 c->hpel_put[1][fxy](dst, ref[0] + (fx>>1) + (fy>>1)*stride, stride, 8); in cmp_direct_inline()
142 int fx = c->direct_basis_mv[0][0] + hx; in cmp_direct_inline() local
144 int bx = hx ? fx - c->co_located_mv[0][0] : (c->co_located_mv[0][0]*(time_pb - time_pp)/time_pp); in cmp_direct_inline()
146 int fxy= (fx&mask) + ((fy&mask)<<(qpel+1)); in cmp_direct_inline()
150 c->qpel_put[1][fxy](c->temp , ref[0] + (fx>>2) + (fy>>2)*stride , stride); in cmp_direct_inline()
151 c->qpel_put[1][fxy](c->temp + 8 , ref[0] + (fx>> in cmp_direct_inline()
1348 int fx= motion_fx+vect[i][0]; bidir_refine() local
[all...]
/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fPrimitiveRestartTests.cpp292 float fx = -1.0f + 2.0f * ((float)col + 0.5f) / (float)numRows; in init() local
295 m_positions.push_back(fx); in init()
328 float fx = centerX + 0.9f * deFloatCos((float)i*2.0f*DE_PI / (float)numVertices) / (float)numCols; in init() local
331 m_positions.push_back(fx); in init()
359 float fx = -0.9f + 1.8f * (float)(i/2*2) / numStrips; in init() local
362 m_positions.push_back(fx); in init()
400 float fx = centerX + 0.9f * deFloatCos((float)i*2.0f*DE_PI / (float)numArcVertices) / (float)numCols; in init() local
403 m_positions.push_back(fx); in init()
431 float fx = -0.9f + 1.8f * ((float)(i/3) + (i%3 == 2 ? 0.8f : 0.0f)) * 3 / numRows; in init() local
434 m_positions.push_back(fx); in init()
[all...]
/third_party/toybox/toys/pending/
H A Dstrace.c205 struct fsxattr fx; in print_struct() local
207 ptrace_struct(addr, &fx, sizeof(fx)); in print_struct()
209 "fsx_projid=%d, fsx_cowextsize=%d}", fx.fsx_xflags, fx.fsx_extsize, in print_struct()
210 fx.fsx_nextents, fx.fsx_projid, fx.fsx_cowextsize); in print_struct()
496 SC(mmap, "pz|prot||mmap|fx"); in print_enter()
/third_party/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_quad_depth_test_tmp.h56 const float fx = (float) ix; in NAME() local
60 const float z0 = quads[0]->posCoef->a0[2] + dzdx * fx + dzdy * fy; in NAME()
/third_party/mesa3d/src/gallium/auxiliary/draw/
H A Ddraw_pipe_cull.c71 const float fx = v1[0] - v2[0]; in cull_tri() local
76 header->det = ex * fy - ey * fx; in cull_tri()
/third_party/skia/tools/
H A Dblob_cache_sim.cpp44 SkFixed fx = (SkScalarToFixed(offset.x()) >> 13) & 7; in main() local
46 uint32_t posBits = (fx << 3 | fy) << 12; in main()
/third_party/skia/src/shaders/
H A DSkImageShader.cpp214 // SkFixed fx = ...; in onMakeContext()
215 // fx = tile(fx + SK_Fixed1); in onMakeContext()
217 // we want to make sure (fx + SK_Fixed1) never overflows. in onMakeContext()
831 // All bicubic samples have the same fractional offset (fx,fy) from the center. in makeProgram()
833 skvm::F32 fx = fract(local.x + 0.5f), in makeProgram()
843 const skvm::F32 tmpx[] = { p->splat(1.0f), fx, fx*fx, fx*f in makeProgram()
[all...]
/third_party/benchmark/test/
H A Dregister_benchmark_test.cc124 CustomFixture fx; in TestRegistrationAtRuntime() local
125 benchmark::RegisterBenchmark("custom_fixture", fx); in TestRegistrationAtRuntime()

Completed in 14 milliseconds

1234