Home
last modified time | relevance | path

Searched refs:halfsize (Results 1 – 25 of 147) sorted by relevance

123456

/dports/graphics/Coin/coin-Coin-4.0.0/src/glue/
H A Dnormalization_cubemap.cpp83 float halfsize = size * 0.5f; in coin_create_normalization_cube_map() local
92 tmpvec[0] = halfsize; in coin_create_normalization_cube_map()
113 tmpvec[0] = -halfsize; in coin_create_normalization_cube_map()
115 tmpvec[2] = (((float)i)+offset-halfsize); in coin_create_normalization_cube_map()
134 tmpvec[0] = ((float)i)+offset-halfsize; in coin_create_normalization_cube_map()
135 tmpvec[1] = halfsize; in coin_create_normalization_cube_map()
155 tmpvec[0] = ((float)i)+offset-halfsize; in coin_create_normalization_cube_map()
156 tmpvec[1] = -halfsize; in coin_create_normalization_cube_map()
176 tmpvec[0] = ((float)i)+offset-halfsize; in coin_create_normalization_cube_map()
178 tmpvec[2] = halfsize; in coin_create_normalization_cube_map()
[all …]
/dports/graphics/krita/krita-4.4.8/libs/image/
H A Dkis_math_toolbox.cpp274 for (uint i = 0; i < halfsize; i++) { in wavetrans()
278 float * itHH = buff->coeffs + ((halfsize + i) * buff->size + halfsize) * buff->depth; in wavetrans()
283 for (uint j = 0; j < halfsize; j++) { in wavetrans()
294 for (uint i = 0; i < halfsize; i++) { in wavetrans()
300 if (halfsize != 1) { in wavetrans()
301 wavetrans(wav, buff, halfsize / 2); in wavetrans()
308 for (uint i = 0; i < halfsize; i++) { in waveuntrans()
312 float * itHH = wav->coeffs + ((halfsize + i) * buff->size + halfsize) * buff->depth; in waveuntrans()
328 for (uint i = 0; i < halfsize; i++) { in waveuntrans()
335 if (halfsize != wav->size / 2) { in waveuntrans()
[all …]
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/xphoto/src/
H A Doilpainting.cpp57 int halfsize; member in cv::xphoto::ParallelOilPainting
65 halfsize(r),
82 for (int yy = -halfsize; yy <= halfsize; yy++) in operator ()()
88 for (int xx = 0; xx <= halfsize; xx++, vPtr++, uc++) in operator ()()
102 for (int yy = -halfsize; yy <= halfsize; yy++) in operator ()()
106 Type *vPtr = imgSrc.ptr<Type>(y + yy) + x - halfsize - 1; in operator ()()
107 uchar *uc = imgLuminance.ptr(y + yy) + x - halfsize - 1; in operator ()()
108 int xx = -halfsize - 1; in operator ()()
114 vPtr = imgSrc.ptr<Type>(y + yy) + x + halfsize; in operator ()()
115 uc = imgLuminance.ptr(y + yy) + x + halfsize; in operator ()()
[all …]
/dports/graphics/gource/gource-0.51/src/
H A Dpawn.cpp67 vec2 halfsize ( halfsize_x, halfsize_x * graphic_ratio ); in updateQuadItemBounds() local
70 quadItemBounds.set(pos - halfsize, pos + halfsize); in updateQuadItemBounds()
132 float halfsize = size * 0.5f; in drawShadow() local
133 vec2 offsetpos = pos - vec2(halfsize, halfsize*graphic_ratio) + shadowOffset; in drawShadow()
163 float halfsize = size * 0.5f; in draw() local
164 vec2 offsetpos = pos - vec2(halfsize, halfsize*graphic_ratio); in draw()
/dports/security/tfhe/tfhe-1.0.1-30-ga085efe/src/libtfhe/fft_processors/nayuki/
H A Dfft-model-of-x8664-avx.c101 uint64_t halfsize = size >> 1; in fft_transform() local
105 for (j = 0, off = 0; j < halfsize; j += 4, off += 8) { in fft_transform()
110 double re = real[vi + halfsize]; in fft_transform()
111 double im = imag[vi + halfsize]; in fft_transform()
114 real[vi + halfsize] = real[vi] - tpre; in fft_transform()
115 imag[vi + halfsize] = imag[vi] - tpim; in fft_transform()
189 uint64_t halfsize = size >> 1; in fft_transform_reverse() local
198 double re = real[vi + halfsize]; in fft_transform_reverse()
199 double im = imag[vi + halfsize]; in fft_transform_reverse()
202 real[vi + halfsize] = real[vi] - tpre; in fft_transform_reverse()
[all …]
H A Dfft-portable.c115 size_t halfsize = size / 2; in fft_transform() local
119 for (j = i, k = 0; j < i + halfsize; j++, k += tablestep) { in fft_transform()
120 double tpre = real[j+halfsize] * costable[k] + imag[j+halfsize] * sintable[k]; in fft_transform()
121 double tpim = -real[j+halfsize] * sintable[k] + imag[j+halfsize] * costable[k]; in fft_transform()
122 real[j + halfsize] = real[j] - tpre; in fft_transform()
123 imag[j + halfsize] = imag[j] - tpim; in fft_transform()
/dports/games/taisei/taisei-1.3.2/scripts/
H A Dgen-blur-shader.py92 halfsize = size // 2
95 kernel[halfsize] = normpdf(0, sigma);
96 ksum += kernel[halfsize];
98 for i in range(1, halfsize + 1):
100 kernel[halfsize + i] = kernel[halfsize - i] = k
/dports/math/vtk9/VTK-9.1.0/Rendering/Volume/
H A DvtkEncodedGradientEstimator.cxx241 double w, halfsize, length, start, end; in ComputeCircleLimits() local
252 halfsize = (size - 1) / 2.0; in ComputeCircleLimits()
256 w = halfsize - y; in ComputeCircleLimits()
257 length = static_cast<int>(sqrt((halfsize * halfsize) - (w * w)) + 0.5); in ComputeCircleLimits()
258 start = halfsize - length - 1; in ComputeCircleLimits()
259 end = halfsize + length + 1; in ComputeCircleLimits()
/dports/math/vtk8/VTK-8.2.0/Rendering/Volume/
H A DvtkEncodedGradientEstimator.cxx253 double w, halfsize, length, start, end; in ComputeCircleLimits() local
264 halfsize = (size-1)/2.0; in ComputeCircleLimits()
268 w = halfsize - y; in ComputeCircleLimits()
269 length = static_cast<int>( sqrt( (halfsize*halfsize) - (w*w) ) + 0.5 ); in ComputeCircleLimits()
270 start = halfsize - length - 1; in ComputeCircleLimits()
271 end = halfsize + length + 1; in ComputeCircleLimits()
/dports/math/vtk6/VTK-6.2.0/Rendering/Volume/
H A DvtkEncodedGradientEstimator.cxx267 double w, halfsize, length, start, end; in ComputeCircleLimits() local
281 halfsize = (size-1)/2.0; in ComputeCircleLimits()
285 w = halfsize - y; in ComputeCircleLimits()
286 length = static_cast<int>( sqrt( (halfsize*halfsize) - (w*w) ) + 0.5 ); in ComputeCircleLimits()
287 start = halfsize - length - 1; in ComputeCircleLimits()
288 end = halfsize + length + 1; in ComputeCircleLimits()
/dports/misc/dartsim/dart-6.11.1/unittests/regression/
H A Dtest_Issue1184.cpp98 for (const double halfsize : halfsizes) in TEST() local
108 = falling ? dropHeight + halfsize : halfsize; in TEST()
115 const auto objectShape = objectShapeFunction(halfsize); in TEST()
164 EXPECT_GE(halfsize + tolerance, lowestHeight) in TEST()
172 EXPECT_NEAR(halfsize, finalHeight, tolerance) in TEST()
/dports/databases/cassandra-cpp-driver/cpp-driver-2.16.0/tests/src/unit/
H A Duint128.hpp326 const unsigned int halfsize = size / 2; in operator <<=() local
328 if (n >= halfsize) { in operator <<=()
329 n -= halfsize; in operator <<=()
341 hi |= (lo & mask) >> (halfsize - n); in operator <<=()
361 const unsigned int halfsize = size / 2; in operator >>=() local
363 if (n >= halfsize) { in operator >>=()
364 n -= halfsize; in operator >>=()
377 lo |= (hi & mask) << (halfsize - n); in operator >>=()
/dports/lang/micropython/micropython-1.17/tests/perf_bench/
H A Dbm_fft.py26 halfsize = size // 2
30 for j in range(i, i + halfsize):
31 temp = vector[j + halfsize] * exptable[k]
32 vector[j + halfsize] = vector[j] - temp
/dports/multimedia/svt-vp9/SVT-VP9-0.3.0/Source/Lib/Codec/
H A DEbUtility.c344 uint8_t halfsize = sq_size / 2; in eb_vp9_md_scan_all_blks() local
427 if (halfsize >= min_size) in eb_vp9_md_scan_all_blks()
429 eb_vp9_md_scan_all_blks(idx_mds, halfsize, x, y, 0); in eb_vp9_md_scan_all_blks()
430 eb_vp9_md_scan_all_blks(idx_mds, halfsize, x + halfsize, y, 0); in eb_vp9_md_scan_all_blks()
431 eb_vp9_md_scan_all_blks(idx_mds, halfsize, x, y + halfsize, 0); in eb_vp9_md_scan_all_blks()
432 eb_vp9_md_scan_all_blks(idx_mds, halfsize, x + halfsize, y + halfsize, 1); in eb_vp9_md_scan_all_blks()
/dports/multimedia/gstreamer1-plugins-svt-vp9/SVT-VP9-0.3.0/Source/Lib/Codec/
H A DEbUtility.c344 uint8_t halfsize = sq_size / 2; in eb_vp9_md_scan_all_blks() local
427 if (halfsize >= min_size) in eb_vp9_md_scan_all_blks()
429 eb_vp9_md_scan_all_blks(idx_mds, halfsize, x, y, 0); in eb_vp9_md_scan_all_blks()
430 eb_vp9_md_scan_all_blks(idx_mds, halfsize, x + halfsize, y, 0); in eb_vp9_md_scan_all_blks()
431 eb_vp9_md_scan_all_blks(idx_mds, halfsize, x, y + halfsize, 0); in eb_vp9_md_scan_all_blks()
432 eb_vp9_md_scan_all_blks(idx_mds, halfsize, x + halfsize, y + halfsize, 1); in eb_vp9_md_scan_all_blks()
/dports/security/fwbuilder/fwbuilder-5.3.7/src/libfwbuilder/src/fwbuilder/
H A Duint128.h358 const int halfsize = size / 2; variable
360 if (n >= halfsize)
362 n -= halfsize;
375 hi |= (lo & mask) >> (halfsize - n);
397 const int halfsize = size / 2; variable
399 if (n >= halfsize)
401 n -= halfsize;
415 lo |= (hi & mask) << (halfsize - n);
/dports/devel/mspdebug/mspdebug-493f38b/util/
H A Dbtree.c174 const int halfsize = def->branches / 2; in split_page() local
178 memcpy(PAGE_KEY(np, 0), PAGE_KEY(op, halfsize), in split_page()
179 halfsize * def->key_size); in split_page()
186 halfsize * def->data_size); in split_page()
188 op->num_children = halfsize; in split_page()
189 np->num_children = halfsize; in split_page()
625 const int halfsize = def->branches / 2; in btree_delete() local
651 if (path[0]->num_children >= halfsize) in btree_delete()
668 if (d->num_children > halfsize) { in btree_delete()
682 if (d->num_children > halfsize) { in btree_delete()
[all …]
/dports/security/palisade/palisade-release-d76213499af44558170cca6c72c5314755fec23c/src/core/lib/math/
H A Ddftransfrm.cpp131 usint halfsize = size / 2; in FFTForwardTransform() local
134 for (usint j = i, k = 0; j < i + halfsize; j++, k += tablestep) { in FFTForwardTransform()
135 double tpre = B[j + halfsize].real() * cosTable[l][k] + in FFTForwardTransform()
136 B[j + halfsize].imag() * sinTable[l][k]; in FFTForwardTransform()
137 double tpim = -B[j + halfsize].real() * sinTable[l][k] + in FFTForwardTransform()
138 B[j + halfsize].imag() * cosTable[l][k]; in FFTForwardTransform()
139 B[j + halfsize].real(B[j].real() - tpre); in FFTForwardTransform()
140 B[j + halfsize].imag(B[j].imag() - tpim); in FFTForwardTransform()
/dports/www/falkon/falkon-3.2.0/mac/
H A Dcreate_dmg.sh44 halfsize=$((size / 2))
46 ln "$ICONSETDIR/icon_${size}x${size}.png" "$ICONSETDIR/icon_${halfsize}x${halfsize}@2x.png"
/dports/textproc/zxing-cpp/zxing-cpp-1.2.0/core/src/
H A DWhiteRectDetector.cpp151 int halfsize = initSize / 2; in DetectWhiteRect() local
152 int left = x - halfsize; in DetectWhiteRect()
153 int right = x + halfsize; in DetectWhiteRect()
154 int up = y - halfsize; in DetectWhiteRect()
155 int down = y + halfsize; in DetectWhiteRect()
/dports/cad/kicad-devel/kicad-a17a58203b33e08b966075833b177dad5740c236/pcbnew/python/plugins/
H A Dqrcode_footprint_wizard.py75 halfsize = int(size/2)
76 rectangle.SetStartX( -halfsize+xposition )
77 rectangle.SetStartY( -halfsize+yposition )
78 rectangle.SetEndX( halfsize+xposition )
79 rectangle.SetEndY( halfsize+yposition )
/dports/emulators/mess/mame-mame0226/src/emu/debug/
H A Dexpress.cpp670 int halfsize = size / 2; in read_program_direct() local
674 u64 r1 = read_program_direct(space, opcode | 2, address + halfsize, halfsize); in read_program_direct()
678 return r0 | (r1 << (8 * halfsize)); in read_program_direct()
680 return r1 | (r0 << (8 * halfsize)); in read_program_direct()
722 int halfsize = size / 2; in read_memory_region() local
727 r1 = read_memory_region(rgntag, address + halfsize, halfsize); in read_memory_region()
731 result = r0 | (r1 << (8 * halfsize)); in read_memory_region()
857 int halfsize = size / 2; in write_program_direct() local
875 write_program_direct(space, opcode | 2, address + halfsize, halfsize, r1); in write_program_direct()
915 int halfsize = size / 2; in write_memory_region() local
[all …]
/dports/emulators/mame/mame-mame0226/src/emu/debug/
H A Dexpress.cpp670 int halfsize = size / 2; in read_program_direct() local
674 u64 r1 = read_program_direct(space, opcode | 2, address + halfsize, halfsize); in read_program_direct()
678 return r0 | (r1 << (8 * halfsize)); in read_program_direct()
680 return r1 | (r0 << (8 * halfsize)); in read_program_direct()
722 int halfsize = size / 2; in read_memory_region() local
727 r1 = read_memory_region(rgntag, address + halfsize, halfsize); in read_memory_region()
731 result = r0 | (r1 << (8 * halfsize)); in read_memory_region()
857 int halfsize = size / 2; in write_program_direct() local
875 write_program_direct(space, opcode | 2, address + halfsize, halfsize, r1); in write_program_direct()
915 int halfsize = size / 2; in write_memory_region() local
[all …]
/dports/graphics/Coin/coin-Coin-4.0.0/src/nodes/
H A DSoWWWInline.cpp543 SbVec3f halfsize = bboxSize.getValue()/2.0f; in getBoundingBox() local
546 action->extendBy(SbBox3f(-halfsize[0] + center[0], in getBoundingBox()
547 -halfsize[1] + center[1], in getBoundingBox()
548 -halfsize[2] + center[2], in getBoundingBox()
549 halfsize[0] + center[0], in getBoundingBox()
550 halfsize[1] + center[1], in getBoundingBox()
551 halfsize[2] + center[2])); in getBoundingBox()
/dports/games/taisei/taisei-1.3.2/src/util/
H A Dmiscmath.c225 size_t halfsize = size / 2; in gaussian_kernel_1d() local
227 kernel[halfsize] = normpdf(0, sigma); in gaussian_kernel_1d()
228 sum += kernel[halfsize]; in gaussian_kernel_1d()
230 for(size_t i = 1; i <= halfsize; ++i) { in gaussian_kernel_1d()
232 kernel[halfsize + i] = kernel[halfsize - i] = k; in gaussian_kernel_1d()

123456