Home
last modified time | relevance | path

Searched refs:yratio (Results 1 – 25 of 176) sorted by relevance

12345678

/dports/graphics/pho/pho/
H A Dpho.c247 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 DRenderContext.php54 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 Dsdlvideo.cpp209 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 DThumbnailCreator.php210 $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 Dquant_chooser.cpp149 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 Dquant_chooser.h72 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 Dsdlvideo.cpp458 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 Dmvl2_video_to_avi_linux.cxx124 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 Dpath_envelope.py98 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 Dtiffgt.c272 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 Dtiffgt.c272 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 Dtiffgt.c296 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 Dtiffgt.c309 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 Dtiffgt.c295 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 Dtiffgt.c295 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 Dtiffgt.c292 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 DareaScaleFragmentShader.glsl139 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 Dtiffgt.c312 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 Dtiffgt.c312 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 Dtiffgt.c320 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 Dtiffgt.c320 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 Ddrawsurface.cc165 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 Dwarp.py529 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 Dimageview.py350 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 Ddrawing.py66 yratio = h / self._height
73 self._width = math.ceil(yratio * self._width)

12345678