/dports/graphics/pho/pho/ |
H A D | pho.c | 247 double yratio = (double)(*height) / max_height; in ScaleToFit() local 254 new_w = *width / yratio; in ScaleToFit() 255 new_h = *height / yratio; in ScaleToFit() 260 double xratio, yratio; in ScaleToFit() local 283 yratio = (double)new_h / (double)max_height; in ScaleToFit() 284 if (xratio > 1. || yratio > 1.) { in ScaleToFit() 285 if (xratio > yratio) { in ScaleToFit() 289 new_w /= yratio; in ScaleToFit() 290 new_h /= yratio; in ScaleToFit() 434 double xratio, yratio; in ScaleAndRotate() local [all …]
|
/dports/net-mgmt/icingaweb2/icingaweb2-2.8.2/library/Icinga/Chart/Render/ |
H A D | RenderContext.php | 54 private $yratio = 1; variable in Icinga\\Chart\\Render\\RenderContext 71 $this->yratio = $height / $width; 112 return intval($this->viewBoxSize[1] * $this->yratio); 199 return $this->getNrOfUnitsY() / 100 * $y / ($this->respectRatio ? $this->yratio : 1); 223 return $y / $this->getNrOfUnitsY() * 100 * ($this->respectRatio ? $this->yratio : 1);
|
/dports/games/zdoom/zdoom-2.8.1/src/posix/sdl/ |
H A D | sdlvideo.cpp | 209 double yratio; in ScaleWithAspect() local 212 case 0: yratio = 4./3.; break; in ScaleWithAspect() 213 case 1: yratio = 16./9.; break; in ScaleWithAspect() 214 case 2: yratio = 16./10.; break; in ScaleWithAspect() 215 case 3: yratio = 17./10.; break; in ScaleWithAspect() 216 case 4: yratio = 5./4.; break; in ScaleWithAspect() 219 double y = w/yratio; in ScaleWithAspect() 221 w = h*yratio; in ScaleWithAspect() 756 double yratio = (double)SCREENHEIGHT/realh; in ScaleCoordsFromWindow() local 760 y *= yratio; in ScaleCoordsFromWindow() [all …]
|
/dports/www/bolt/bolt-2.2.24/vendor/bolt/thumbs/src/ |
H A D | ThumbnailCreator.php | 210 $yratio = $h / $height; 213 if ($xratio > $yratio) { 214 $x = round(($w - ($w / $xratio * $yratio)) / 2); 215 $w = round($w / $xratio * $yratio); 216 } elseif ($yratio > $xratio) { 217 $y = round(($h - ($h / $yratio * $xratio)) / 2); 218 $h = round($h / $yratio * $xratio);
|
/dports/multimedia/dirac/dirac-1.0.2/libdirac_encoder/ |
H A D | quant_chooser.cpp | 149 void QuantChooser::IntegralErrorCalc( Subband& node, const int xratio , const int yratio ) in IntegralErrorCalc() argument 156 m_count1 = ( (node.Xl()/xratio)*(node.Yl()/yratio) ); in IntegralErrorCalc() 166 for ( int j=node.Yp(); j<node.Yp()+node.Yl() ; j+=yratio ) in IntegralErrorCalc() 207 void QuantChooser::NonIntegralErrorCalc( Subband& node , const int xratio , const int yratio ) in NonIntegralErrorCalc() argument 215 m_count1 = ( (node.Xl()/xratio)*(node.Yl()/yratio) ); in NonIntegralErrorCalc() 225 for ( int j=node.Yp(); j<node.Yp()+node.Yl() ; j+=yratio ) in NonIntegralErrorCalc()
|
H A D | quant_chooser.h | 72 void IntegralErrorCalc( Subband& node , const int xratio , const int yratio ); 75 void NonIntegralErrorCalc( Subband& node, const int xratio, const int yratio );
|
/dports/games/ecwolf/ecwolf-1.3.3-src/src/ |
H A D | sdlvideo.cpp | 458 double yratio; in ScaleWithAspect() local 461 case 0: yratio = 4./3.; break; in ScaleWithAspect() 462 case 1: yratio = 16./9.; break; in ScaleWithAspect() 463 case 2: yratio = 16./10.; break; in ScaleWithAspect() 464 case 3: yratio = 17./10.; break; in ScaleWithAspect() 465 case 4: yratio = 5./4.; break; in ScaleWithAspect() 468 double y = w/yratio; in ScaleWithAspect() 470 w = (int)(h*yratio); in ScaleWithAspect() 1128 double yratio = (double)SCREENHEIGHT/realh; in ScaleCoordsFromWindow() local 1132 y = (SWORD)(y*yratio); in ScaleCoordsFromWindow() [all …]
|
/dports/misc/vxl/vxl-3.3.2/contrib/mul/mvl2/ |
H A D | mvl2_video_to_avi_linux.cxx | 124 double yratio=(double)height_/image.nj(); in write_frame() local 125 double ratio=1.0/(yratio>xratio?yratio:xratio); in write_frame()
|
/dports/graphics/inkscape/inkscape-1.1_2021-05-24_c4e8f9ed74/share/extensions/ |
H A D | path_envelope.py | 98 xratio, yratio = map(truediv, vector, (bbox.width, bbox.height)) 100 vert = DirectedLineSegment(tbox[3].point_at_ratio(yratio), tbox[1].point_at_ratio(yratio))
|
/dports/graphics/megapov/megapov-1.2.1/libraries/tiff/tools/ |
H A D | tiffgt.c | 272 GLfloat yratio = (GLfloat)win_h/img.height; in raster_reshape() local 273 int ratio = (int)(((xratio > yratio)?xratio:yratio) * 100); in raster_reshape() 275 glPixelZoom(xratio, yratio); in raster_reshape()
|
/dports/graphics/povray36/povray-3.6.1/libraries/tiff/tools/ |
H A D | tiffgt.c | 272 GLfloat yratio = (GLfloat)win_h/img.height; in raster_reshape() local 273 int ratio = (int)(((xratio > yratio)?xratio:yratio) * 100); in raster_reshape() 275 glPixelZoom(xratio, yratio); in raster_reshape()
|
/dports/multimedia/opentoonz/opentoonz-1.5.0/thirdparty/tiff-4.0.3/tools/ |
H A D | tiffgt.c | 296 GLfloat yratio = (GLfloat)win_h/img.height; in raster_reshape() local 297 int ratio = (int)(((xratio > yratio)?xratio:yratio) * 100); in raster_reshape() 299 glPixelZoom(xratio, yratio); in raster_reshape()
|
/dports/graphics/argyllcms/Argyll_V1.9.2/tiff/tools/ |
H A D | tiffgt.c | 309 GLfloat yratio = (GLfloat)win_h/img.height; in raster_reshape() local 310 int ratio = (int)(((xratio > yratio)?xratio:yratio) * 100); in raster_reshape() 312 glPixelZoom(xratio, yratio); in raster_reshape()
|
/dports/x11-toolkits/wxgtk30/wxWidgets-3.0.5.1/src/tiff/tools/ |
H A D | tiffgt.c | 295 GLfloat yratio = (GLfloat)win_h/img.height; in raster_reshape() local 296 int ratio = (int)(((xratio > yratio)?xratio:yratio) * 100); in raster_reshape() 298 glPixelZoom(xratio, yratio); in raster_reshape()
|
/dports/x11-toolkits/py-wxPython40/wxPython-4.0.7/ext/wxWidgets/src/tiff/tools/ |
H A D | tiffgt.c | 295 GLfloat yratio = (GLfloat)win_h/img.height; in raster_reshape() local 296 int ratio = (int)(((xratio > yratio)?xratio:yratio) * 100); in raster_reshape() 298 glPixelZoom(xratio, yratio); in raster_reshape()
|
/dports/graphics/povray37/povray-3.7.0.10/libraries/tiff/tools/ |
H A D | tiffgt.c | 292 GLfloat yratio = (GLfloat)win_h/img.height; in raster_reshape() local 293 int ratio = (int)(((xratio > yratio)?xratio:yratio) * 100); in raster_reshape() 295 glPixelZoom(xratio, yratio); in raster_reshape()
|
/dports/editors/libreoffice6/libreoffice-6.4.7.2/vcl/opengl/shaders/ |
H A D | areaScaleFragmentShader.glsl | 139 float yratio[ 16 + 2 ]; 193 yratio[ ypos ] = ( sy1 - fsy1 ) / height; 199 yratio[ ypos ] = 1.0 / height; 205 yratio[ ypos ] = min( min( fsy2 - sy2, 1.0 ) / height, 1.0 ); 233 sum += tmp * yratio[ ypos ];
|
/dports/print/ghostscript9-agpl-x11/ghostscript-9.52/tiff/tools/ |
H A D | tiffgt.c | 312 GLfloat yratio = (GLfloat)win_h/img.height; in raster_reshape() local 313 int ratio = (int)(((xratio > yratio)?xratio:yratio) * 100); in raster_reshape() 315 glPixelZoom(xratio, yratio); in raster_reshape()
|
/dports/print/ghostscript9-agpl-base/ghostscript-9.52/tiff/tools/ |
H A D | tiffgt.c | 312 GLfloat yratio = (GLfloat)win_h/img.height; in raster_reshape() local 313 int ratio = (int)(((xratio > yratio)?xratio:yratio) * 100); in raster_reshape() 315 glPixelZoom(xratio, yratio); in raster_reshape()
|
/dports/graphics/tiffgt/tiff-4.3.0/tools/ |
H A D | tiffgt.c | 320 GLfloat yratio = (GLfloat)win_h/img.height; in raster_reshape() local 321 int ratio = (int)(((xratio > yratio)?xratio:yratio) * 100); in raster_reshape() 323 glPixelZoom(xratio, yratio); in raster_reshape()
|
/dports/graphics/tiff/tiff-4.3.0/tools/ |
H A D | tiffgt.c | 320 GLfloat yratio = (GLfloat)win_h/img.height; in raster_reshape() local 321 int ratio = (int)(((xratio > yratio)?xratio:yratio) * 100); in raster_reshape() 323 glPixelZoom(xratio, yratio); in raster_reshape()
|
/dports/math/asymptote/asymptote-2.67/ |
H A D | drawsurface.cc | 165 double y=yratio(v); in ratio() 175 y=m(y,yratio(v)); in ratio() 178 y=m(y,yratio(v)); in ratio() 181 y=m(y,yratio(v)); in ratio() 193 b=pair(xratio(v),yratio(v)); in ratio() 409 double y=yratio(v); in ratio() 419 y=m(y,yratio(v)); in ratio() 422 y=m(y,yratio(v)); in ratio() 434 b=pair(xratio(v),yratio(v)); in ratio() 629 b=pair(xratio(v),yratio(v)); in ratio() [all …]
|
/dports/graphics/py-rasterio/rasterio-1.2.10/rasterio/ |
H A D | warp.py | 529 yratio = dst_affine.e / yres 535 dst_height = ceil(dst_height * yratio) 539 yratio = dst_height / dimensions[1] 545 dst_affine.d, dst_affine.e * yratio, dst_affine.f)
|
/dports/devel/git-cola/git-cola-3.10.1/cola/widgets/ |
H A D | imageview.py | 350 yratio = viewrect.height() / scene_rect.height() 352 xratio = yratio = min(xratio, yratio) 354 xratio = yratio = max(xratio, yratio) 355 self.scale(xratio, yratio)
|
/dports/textproc/py-openpyxl/openpyxl-2.6.4/openpyxl/drawing/ |
H A D | drawing.py | 66 yratio = h / self._height 73 self._width = math.ceil(yratio * self._width)
|