/dports/cad/cura-engine/CuraEngine-fadb5d6b/src/utils/ |
H A D | SVG.cpp | 51 SVG::SVG(std::string filename, AABB aabb, double scale, ColorObject background) in SVG() argument 52 : SVG(filename, aabb, scale, (aabb.max - aabb.min) * scale, background) in SVG() 56 SVG::SVG(std::string filename, AABB aabb, double scale, Point canvas_size, ColorObject background) in SVG() argument 60 , scale(scale) in SVG() 80 fprintf(out," height=\"%f\"\n", scale * (aabb.max.Y - aabb.min.Y)); in SVG() 81 fprintf(out," width=\"%f\"\n", scale * (aabb.max.X - aabb.min.X)); in SVG() 108 return scale; in getScale() 123 return Point((p.X - aabb.min.X) * scale, (p.Y - aabb.min.Y) * scale); in transform() 128 return FPoint3((p.X - aabb.min.X) * scale, (p.Y-aabb.min.Y) * scale, 0.0); in transformF()
|
/dports/net-p2p/vuze/vuze-5.7.4.0_2/org/gudy/azureus2/ui/swt/components/graphics/ |
H A D | SpeedGraphic.java | 79 private SpeedGraphic(Scale scale,ValueFormater formater) { in SpeedGraphic() argument 80 super(scale,formater); in SpeedGraphic() 147 return new SpeedGraphic(scale,formatter); 335 scale.setMax(max); 336 int maxHeight = scale.getScaledValue(max); 353 int height = scale.getScaledValue(all_values[0][position]); 363 height = scale.getScaledValue(all_values[1][position]); 385 int h1 = bounds.height - scale.getScaledValue(targetValue) - 2; 386 int h2 = bounds.height - scale.getScaledValue(oldTargetValue) - 2; 396 int h1 = bounds.height - scale.getScaledValue(average) - 2; [all …]
|
/dports/multimedia/ffmpeg/ffmpeg-4.4.1/libavcodec/ |
H A D | pnmdec.c | 49 float scale; in pnm_decode_frame() local 261 scale = 1.f / s->scale; in pnm_decode_frame() 270 r[j] = av_int2float(AV_RL32(s->bytestream+0)) * scale; in pnm_decode_frame() 271 g[j] = av_int2float(AV_RL32(s->bytestream+4)) * scale; in pnm_decode_frame() 272 b[j] = av_int2float(AV_RL32(s->bytestream+8)) * scale; in pnm_decode_frame() 288 r[j] = av_int2float(AV_RB32(s->bytestream+0)) * scale; in pnm_decode_frame() 289 g[j] = av_int2float(AV_RB32(s->bytestream+4)) * scale; in pnm_decode_frame() 290 b[j] = av_int2float(AV_RB32(s->bytestream+8)) * scale; in pnm_decode_frame() 303 scale = 1.f / s->scale; in pnm_decode_frame() 308 g[j] = av_int2float(AV_RL32(s->bytestream)) * scale; in pnm_decode_frame() [all …]
|
/dports/audio/ardour6/Ardour-6.8.0/libs/audiographer/private/gdither/ |
H A D | gdither.cc | 88 s->scale = (float)(1LL << (dither_depth - 1)); in gdither_new() 90 s->post_scale_fp = 1.0f / s->scale; in gdither_new() 119 s->clamp_u = lrintf(s->scale); in gdither_new() 120 s->clamp_l = lrintf(-s->scale); in gdither_new() 125 s->clamp_u = lrintf(s->scale); in gdither_new() 126 s->clamp_l = lrintf(-s->scale); in gdither_new() 130 s->scale = SCALE_S24; in gdither_new() 175 const uint32_t stride, const float bias, const float scale, in gdither_innner_loop() argument 193 tmp = x[i] * scale + bias; in gdither_innner_loop() 269 tmp = x[i] * scale + bias; in gdither_innner_loop_fp() [all …]
|
/dports/games/SRB2/SRB2-SRB2_release_2.2.9/src/hardware/ |
H A D | hw_md2load.c | 228 float scale[3]; // Used by the v member in the md2framePoint structure member 456 *vertptr = (short)(((vertex->v[0] * framePtr->scale[0]) + framePtr->translate[0]) / dataScale); in MD2_LoadModel() 458 *vertptr = (short)(((vertex->v[2] * framePtr->scale[2]) + framePtr->translate[2]) / dataScale); in MD2_LoadModel() 460 …*vertptr = -1.0f * (short)(((vertex->v[1] * framePtr->scale[1]) + framePtr->translate[1]) / dataSc… in MD2_LoadModel() 538 …*vertptr = ((vertex[trisPtr->meshIndex[0]].v[0] * framePtr->scale[0]) + framePtr->translate[0]) * … in MD2_LoadModel() 540 …*vertptr = ((vertex[trisPtr->meshIndex[0]].v[2] * framePtr->scale[2]) + framePtr->translate[2]) * … in MD2_LoadModel() 542 …*vertptr = -1.0f * ((vertex[trisPtr->meshIndex[0]].v[1] * framePtr->scale[1]) + framePtr->translat… in MD2_LoadModel() 545 …*vertptr = ((vertex[trisPtr->meshIndex[1]].v[0] * framePtr->scale[0]) + framePtr->translate[0]) * … in MD2_LoadModel() 547 …*vertptr = ((vertex[trisPtr->meshIndex[1]].v[2] * framePtr->scale[2]) + framePtr->translate[2]) * … in MD2_LoadModel() 552 …*vertptr = ((vertex[trisPtr->meshIndex[2]].v[0] * framePtr->scale[0]) + framePtr->translate[0]) * … in MD2_LoadModel() [all …]
|
/dports/math/vtk9/VTK-9.1.0/Rendering/Volume/ |
H A D | vtkFixedPointVolumeRayCastCompositeHelper.cxx | 145 val[1] = static_cast<unsigned short>(((*(dptr + 1)) + shift[1]) * scale[1]); in vtkFixedPointCompositeHelperGenerateImageTwoDependentNN() 153 val[0] = static_cast<unsigned short>(((*(dptr)) + shift[0]) * scale[0]); in vtkFixedPointCompositeHelperGenerateImageTwoDependentNN() 198 val[3] = static_cast<unsigned short>(((*(dptr + 3)) + shift[3]) * scale[3]); in vtkFixedPointCompositeHelperGenerateImageFourDependentNN() 352 VTKKWRCHelper_GetCellScalarValues(dptr, scale[0], shift[0]); in vtkFixedPointCompositeHelperGenerateImageOneTrilin() 404 VTKKWRCHelper_GetCellComponentScalarValues(dptr, 0, scale[0], shift[0]); in vtkFixedPointCompositeHelperGenerateImageTwoDependentTrilin() 407 VTKKWRCHelper_GetCellComponentScalarValues(dptr, 1, scale[1], shift[1]); in vtkFixedPointCompositeHelperGenerateImageTwoDependentTrilin() 481 VTKKWRCHelper_GetCellComponentScalarValues(dptr, 3, scale[3], shift[3]); in vtkFixedPointCompositeHelperGenerateImageFourDependentTrilin() 541 VTKKWRCHelper_GetCellComponentScalarValues(dptr, 0, scale[0], shift[0]); in vtkFixedPointCompositeHelperGenerateImageIndependentTrilin() 544 VTKKWRCHelper_GetCellComponentScalarValues(dptr, 1, scale[1], shift[1]); in vtkFixedPointCompositeHelperGenerateImageIndependentTrilin() 549 VTKKWRCHelper_GetCellComponentScalarValues(dptr, 2, scale[2], shift[2]); in vtkFixedPointCompositeHelperGenerateImageIndependentTrilin() [all …]
|
/dports/math/vtk8/VTK-8.2.0/Rendering/Volume/ |
H A D | vtkFixedPointVolumeRayCastCompositeHelper.cxx | 110 unsigned short val = static_cast<unsigned short>(((*dptr) + shift[0])*scale[0]); in vtkFixedPointCompositeHelperGenerateImageOneNN() 155 val[1] = static_cast<unsigned short>(((*(dptr+1)) + shift[1])*scale[1]); in vtkFixedPointCompositeHelperGenerateImageTwoDependentNN() 163 val[0] = static_cast<unsigned short>(((*(dptr )) + shift[0])*scale[0]); in vtkFixedPointCompositeHelperGenerateImageTwoDependentNN() 212 val[3] = static_cast<unsigned short>(((*(dptr+3)) + shift[3])*scale[3]); in vtkFixedPointCompositeHelperGenerateImageFourDependentNN() 266 val[c] = static_cast<unsigned short>(((*(dptr+c)) + shift[c])*scale[c]); in vtkFixedPointCompositeHelperGenerateImageIndependentNN() 381 VTKKWRCHelper_GetCellScalarValues( dptr, scale[0], shift[0] ); in vtkFixedPointCompositeHelperGenerateImageOneTrilin() 439 VTKKWRCHelper_GetCellComponentScalarValues( dptr, 0, scale[0], shift[0] ); in vtkFixedPointCompositeHelperGenerateImageTwoDependentTrilin() 442 VTKKWRCHelper_GetCellComponentScalarValues( dptr, 1, scale[1], shift[1] ); in vtkFixedPointCompositeHelperGenerateImageTwoDependentTrilin() 525 VTKKWRCHelper_GetCellComponentScalarValues( dptr, 3, scale[3], shift[3] ); in vtkFixedPointCompositeHelperGenerateImageFourDependentTrilin() 591 VTKKWRCHelper_GetCellComponentScalarValues( dptr, 0, scale[0], shift[0] ); in vtkFixedPointCompositeHelperGenerateImageIndependentTrilin() [all …]
|
/dports/math/vtk6/VTK-6.2.0/Rendering/Volume/ |
H A D | vtkFixedPointVolumeRayCastCompositeHelper.cxx | 116 unsigned short val = static_cast<unsigned short>(((*dptr) + shift[0])*scale[0]); in vtkFixedPointCompositeHelperGenerateImageOneNN() 161 val[1] = static_cast<unsigned short>(((*(dptr+1)) + shift[1])*scale[1]); in vtkFixedPointCompositeHelperGenerateImageTwoDependentNN() 169 val[0] = static_cast<unsigned short>(((*(dptr )) + shift[0])*scale[0]); in vtkFixedPointCompositeHelperGenerateImageTwoDependentNN() 218 val[3] = static_cast<unsigned short>(((*(dptr+3)) + shift[3])*scale[3]); in vtkFixedPointCompositeHelperGenerateImageFourDependentNN() 272 val[c] = static_cast<unsigned short>(((*(dptr+c)) + shift[c])*scale[c]); in vtkFixedPointCompositeHelperGenerateImageIndependentNN() 387 VTKKWRCHelper_GetCellScalarValues( dptr, scale[0], shift[0] ); in vtkFixedPointCompositeHelperGenerateImageOneTrilin() 445 VTKKWRCHelper_GetCellComponentScalarValues( dptr, 0, scale[0], shift[0] ); in vtkFixedPointCompositeHelperGenerateImageTwoDependentTrilin() 448 VTKKWRCHelper_GetCellComponentScalarValues( dptr, 1, scale[1], shift[1] ); in vtkFixedPointCompositeHelperGenerateImageTwoDependentTrilin() 531 VTKKWRCHelper_GetCellComponentScalarValues( dptr, 3, scale[3], shift[3] ); in vtkFixedPointCompositeHelperGenerateImageFourDependentTrilin() 597 VTKKWRCHelper_GetCellComponentScalarValues( dptr, 0, scale[0], shift[0] ); in vtkFixedPointCompositeHelperGenerateImageIndependentTrilin() [all …]
|
/dports/audio/traverso/traverso-0.49.6/src/core/ |
H A D | gdither.cpp | 82 s->scale = (float)(1LL << (dither_depth - 1)); 84 s->post_scale_fp = 1.0f / s->scale; 113 s->clamp_u = lrintf(s->scale); 114 s->clamp_l = lrintf(-s->scale); 119 s->clamp_u = lrintf(s->scale); 120 s->clamp_l = lrintf(-s->scale); 124 s->scale = SCALE_S24; 169 const uint32_t stride, const float bias, const float scale, 187 tmp = x[i] * scale + bias; 262 tmp = x[i] * scale + bias; [all …]
|
/dports/graphics/digikam/digikam-7.4.0/core/libs/dngwriter/extra/dng_sdk/ |
H A D | dng_utils.cpp | 594 real32 scale); 619 real32 scale) in dng_limit_float_depth_task() argument 626 , fScale (scale) in dng_limit_float_depth_task() 684 real32 scale = fScale; in Process() local 724 x *= scale; in Process() 807 real32 scale) in LimitFloatBitDepth() argument 816 scale); in LimitFloatBitDepth() 829 real32 scale); 850 real32 scale) in LimitFloatBitDepth() argument 868 scale); in LimitFloatBitDepth() [all …]
|
/dports/games/libretro-mame2003/mame2003-libretro-4358db4/src/vidhrdw/ |
H A D | res_net.h | 96 double scale; in compute_resistor_weights() local 219 scale = ((double)maxval) / max_out[j]; in compute_resistor_weights() 221 scale = scaler; in compute_resistor_weights() 228 ws[i][n] = w[i][n]*scale; /* scale the result */ in compute_resistor_weights() 235 logerror("compute_resistor_weights(): scaler = %15.10f\n",scale); in compute_resistor_weights() 258 return (scale); in compute_resistor_weights() 284 double scale; in compute_resistor_net_outputs() local 424 scale = ((double)maxval) / (max-min); in compute_resistor_net_outputs() 426 scale = scaler; in compute_resistor_net_outputs() 440 logerror("compute_resistor_net_outputs(): scaler = %15.10f\n",scale); in compute_resistor_net_outputs() [all …]
|
/dports/graphics/geomorph/geomorph-0.60.1/src/hf/ |
H A D | fault_dialog.c | 198 GtkWidget *frame, *vbox, *hbox, *hbox2, *wdg, *button, *scale; in fault_dialog_new() local 227 scale = define_scale_in_box(adj,hbox,0, DEF_PAD*0.5); in fault_dialog_new() 228 gtk_signal_connect (GTK_OBJECT (scale), "button_press_event", in fault_dialog_new() 231 gtk_signal_connect (GTK_OBJECT (scale), "button_press_event", in fault_dialog_new() 234 gtk_signal_connect (GTK_OBJECT (scale), "button_release_event", in fault_dialog_new() 256 scale = define_scale_in_box(adj,hbox,0, DEF_PAD*0.5); in fault_dialog_new() 257 gtk_signal_connect (GTK_OBJECT (scale), "button_press_event", in fault_dialog_new() 260 gtk_signal_connect (GTK_OBJECT (scale), "button_press_event", in fault_dialog_new() 278 scale = define_scale_in_box(adj,hbox,0, DEF_PAD*0.5); in fault_dialog_new() 279 gtk_signal_connect (GTK_OBJECT (scale), "button_press_event", in fault_dialog_new() [all …]
|
/dports/games/libretro-mame2003_plus/mame2003-plus-libretro-17e9889/src/vidhrdw/ |
H A D | res_net.h | 96 double scale; in compute_resistor_weights() local 219 scale = ((double)maxval) / max_out[j]; in compute_resistor_weights() 221 scale = scaler; in compute_resistor_weights() 228 ws[i][n] = w[i][n]*scale; /* scale the result */ in compute_resistor_weights() 235 logerror("compute_resistor_weights(): scaler = %15.10f\n",scale); in compute_resistor_weights() 258 return (scale); in compute_resistor_weights() 284 double scale; in compute_resistor_net_outputs() local 424 scale = ((double)maxval) / (max-min); in compute_resistor_net_outputs() 426 scale = scaler; in compute_resistor_net_outputs() 440 logerror("compute_resistor_net_outputs(): scaler = %15.10f\n",scale); in compute_resistor_net_outputs() [all …]
|
/dports/x11/xsnow/xsnow-3.4.2/src/ |
H A D | scenery.c | 50 static cairo_surface_t *tree_surface(int flip, const char **xpm, float scale); 116 return ta->y + ta->h*ta->scale - tb->y - tb->h*tb->scale; in compartrees() 165 cairo_surface_t *tree_surface(int flip, const char **xpm, float scale) in tree_surface() argument 180 P("tree_surface: %d %d %f\n",w,h,scale); in tree_surface() 181 w *= scale; in tree_surface() 182 h *= scale; in tree_surface() 351 tree->scale = myScale; in do_initbaum() 360 r = gregionfromxpm((const char **)TreeXpm,tree->rev,tree->scale); in do_initbaum() 363 r = gregionfromxpm(xpmtrees[tt],tree->rev,tree->scale); in do_initbaum() 394 tree->surface = tree_surface(tree->rev, (const char **)TreeXpm,tree->scale); in create_tree_surfaces() [all …]
|
/dports/games/zdoom/zdoom-2.8.1/gdtoa/ |
H A D | strtod.c | 64 (x, scale) U *x; int scale; in sulp() argument 66 (U *x, int scale) 91 int scale; local 438 scale = 0; 527 scale = 2*P; 603 j = bbe - scale; 633 bd2 += scale; 830 if (scale) { 867 dval(&rv) += sulp(&rv, scale); 1009 if (!scale) [all …]
|
/dports/games/ecwolf/ecwolf-1.3.3-src/gdtoa/ |
H A D | strtod.c | 64 (x, scale) U *x; int scale; in sulp() argument 66 (U *x, int scale) 91 int scale; local 438 scale = 0; 527 scale = 2*P; 603 j = bbe - scale; 633 bd2 += scale; 830 if (scale) { 867 dval(&rv) += sulp(&rv, scale); 1009 if (!scale) [all …]
|
/dports/graphics/graphviz/graphviz-2.44.1/plugin/core/ |
H A D | gvrender_core_pov.c | 494 gvprintf(job, "// scale.x,y = %.3f,%.3f\n", job->scale.x, job->scale.y); in pov_begin_graph() 506 x = job->view.x / 2.0 * job->scale.x; in pov_begin_graph() 507 y = job->view.y / 2.0 * job->scale.y; in pov_begin_graph() 610 x = (c.x + job->translation.x) * job->scale.x; in pov_textspan() 611 y = (c.y + job->translation.y) * job->scale.y; in pov_textspan() 649 rx = (A[1].x - A[0].x) * job->scale.x; in pov_ellipse() 650 ry = (A[1].y - A[0].y) * job->scale.y; in pov_ellipse() 706 s = el(job, POV_SCALE3, job->scale.x, job->scale.y, 1.0); in pov_bezier() 758 s = el(job, POV_SCALE3, job->scale.x, job->scale.y, 1.0); in pov_polygon() 795 s = el(job, POV_SCALE3, job->scale.x, job->scale.y, 1.0); in pov_polygon() [all …]
|
/dports/math/xlife++/xlifepp-sources-v2.0.1-2018-05-09/doc/tex/inputs/user/ |
H A D | Mesh_subdivision_tools.tex | 75 \includePict[scale=0.9]{P1VolMeshTetSphere1.pdf} 76 \includePict[scale=0.9]{P1VolMeshTetSphere2.pdf} 77 \includePict[scale=0.9]{P1VolMeshTetSphere3.pdf} 78 \includePict[scale=0.9]{P1VolMeshTetSphere4.pdf} 162 \includePict[scale=0.8]{P1VolMeshHexCube1.pdf} 163 \includePict[scale=0.8]{P1VolMeshHexCube2.pdf} 164 \includePict[scale=0.8]{P1VolMeshHexCube3.pdf} 165 \includePict[scale=0.8]{P1VolMeshHexCube4.pdf} 168 \includePict[scale=0.8]{P1VolMeshHexCube5.pdf} 169 \includePict[scale=0.8]{P1VolMeshHexCube6.pdf} [all …]
|
/dports/graphics/aseprite/aseprite-1.2.9/src/app/ui/skin/ |
H A D | skin_theme.cpp | 318 const int scale = guiscale(); in loadXml() local 751 const int scale = guiscale(); in initWidget() local 826 BORDER(2 * scale); in initWidget() 840 BORDER(2 * scale); in initWidget() 1130 int scale = guiscale(); in paintMenuItem() local 1196 for (c=0; c<3*scale; c++) in paintMenuItem() 1198 bounds.x2()-3*scale-c, in paintMenuItem() 1203 for (c=0; c<3*scale; c++) in paintMenuItem() 1205 bounds.x2()-3*scale-c+1, in paintMenuItem() 1208 for (c=0; c<3*scale; c++) in paintMenuItem() [all …]
|
/dports/audio/snd/snd-21.2/ |
H A D | effects.rb | 549 @envelope.scale(@amount)) 953 set_scale_value(sliders[1].scale, @bw = init_bw) 1011 set_scale_value(sliders[1].scale, @bw = init_bw) 1170 set_scale_value(sliders[1].scale, @size = init_size) 1227 set_scale_value(sliders[1].scale, @size = init_size) 1294 set_scale_value(sliders[1].scale, 1344 set_scale_value(sliders[0].scale, @size = init_size) 1460 set_scale_value(sliders[2].scale, 1539 env = @envelope.scale(@scale) 1595 set_scale_value(sliders[0].scale, @amount = init_amount) [all …]
|
/dports/emulators/ppsspp-qt5/ppsspp-1.12.3/UI/ |
H A D | DisplayLayoutEditor.h | 27 MultiTouchDisplay(ImageID img, float scale, UI::LayoutParams *layoutParams) in MultiTouchDisplay() argument 28 …: UI::View(layoutParams), pointerDownMask_(0), scale_(scale), img_(img), angle_(0.0f), flipImageH_… in MultiTouchDisplay() 49 PSPDisplay(ImageID img, float scale, UI::LayoutParams *layoutParams) in PSPDisplay() argument 50 : MultiTouchDisplay(img, scale, layoutParams) { in PSPDisplay()
|
/dports/emulators/ppsspp/ppsspp-1.12.3/UI/ |
H A D | DisplayLayoutEditor.h | 27 MultiTouchDisplay(ImageID img, float scale, UI::LayoutParams *layoutParams) in MultiTouchDisplay() argument 28 …: UI::View(layoutParams), pointerDownMask_(0), scale_(scale), img_(img), angle_(0.0f), flipImageH_… in MultiTouchDisplay() 49 PSPDisplay(ImageID img, float scale, UI::LayoutParams *layoutParams) in PSPDisplay() argument 50 : MultiTouchDisplay(img, scale, layoutParams) { in PSPDisplay()
|
/dports/games/frogatto/frogatto-1.3.1/modules/frogatto/data/backgrounds/ |
H A D | main-mapB.cfg | 13 scale: 1, 27 scale: 1, 42 scale: 1, 56 scale: 1,
|
/dports/net-mgmt/observium/observium/includes/discovery/sensors/ |
H A D | eltek-distributed-mib.inc.php | 89 $scale = 0.1; variable 90 $limit *= $scale; 92 $scale = 1; variable 97 discover_sensor_ng($device, 'current', $mib, $oid_name, $oid, '0', NULL, $descr, $scale, $value, $o…
|
/dports/math/py-chaospy/chaospy-4.3.3/chaospy/distributions/collection/ |
H A D | trunc_exponential.py | 61 def __init__(self, upper=1, scale=1, shift=0): argument 63 dist=truncexpon((upper-shift)*1./scale), 64 scale=scale,
|