/dports/misc/mnn/MNN-1.2.0/tools/train/source/datasets/ |
H A D | ImageDataset.cpp | 111 int originalWidth, originalHeight, comp; in convertImage() local 112 auto bitmap32bits = stbi_load(imageName.c_str(), &originalWidth, &originalHeight, &comp, 4); in convertImage() 127 ow = originalWidth; in convertImage() 155 const int wCropSize = int(originalWidth * cropFractionW); in convertImage() 159 int startW = (originalWidth - wCropSize) / 2; in convertImage() 163 const int maxStartPointW = originalWidth - wCropSize; in convertImage() 195 float(originalWidth - 1), float(0), in convertImage() 196 float(originalWidth - 1), float(originalHeight - 1), in convertImage() 211 …process->convert(bitmap32bits, originalWidth, originalHeight, 0, data->writeMap<float>(), ow, oh, … in convertImage()
|
/dports/graphics/pear-Horde_Image/Horde_Image-2.6.1/lib/Horde/Image/Effect/Gd/ |
H A D | Blur.php | 51 $originalWidth = imagesx($img); 54 $smallestWidth = ceil($originalWidth * pow(0.5, $blurFactor)); 59 $prevWidth = $originalWidth; 89 $originalWidth, $originalHeight, $nextWidth, $nextHeight
|
/dports/devel/itext/itext-4.2.0/core/com/lowagie/text/pdf/ |
H A D | PdfLine.java | 93 protected float originalWidth; field in PdfLine 111 this.originalWidth = this.width; in PdfLine() 127 …PdfLine(float left, float originalWidth, float remainingWidth, int alignment, boolean newlineSplit… in PdfLine() argument 129 this.originalWidth = originalWidth; in PdfLine() 163 if (newline && tabPosition < originalWidth - width) { in add() 166 width = originalWidth - tabPosition; in add() 423 return originalWidth; in getOriginalWidth()
|
/dports/www/mediawiki137/mediawiki-1.37.1/tests/phpunit/includes/media/ |
H A D | SVGReaderTest.php | 112 'originalWidth' => '17.7cm', 128 'originalWidth' => '150', 139 'originalWidth' => '100%', 166 'originalWidth' => '958.69',
|
/dports/www/mediawiki136/mediawiki-1.36.3/tests/phpunit/includes/media/ |
H A D | SVGReaderTest.php | 112 'originalWidth' => '17.7cm', 128 'originalWidth' => '150', 139 'originalWidth' => '100%', 166 'originalWidth' => '958.69',
|
/dports/www/mediawiki135/mediawiki-1.35.5/tests/phpunit/includes/media/ |
H A D | SVGReaderTest.php | 112 'originalWidth' => '17.7cm', 128 'originalWidth' => '150', 139 'originalWidth' => '100%', 166 'originalWidth' => '958.69',
|
/dports/graphics/lightzone/LightZone-4.1.8-3-g36e87773/lightcrafts/src/com/lightcrafts/image/export/ |
H A D | ImageExportOptions.java | 23 public final OriginalWidthOption originalWidth; field in ImageExportOptions 234 originalWidth.readFrom( r ); in readFrom() 244 originalWidth.writeTo( w ); in writeTo() 256 originalWidth = new OriginalWidthOption( 0, this ); in ImageExportOptions() 266 originalWidth.save( node ); in save() 274 originalWidth.restore( node ); in restore()
|
/dports/converters/wkhtmltopdf/qt-5db36ec/examples/declarative/shadereffects/qml/shadereffects/ |
H A D | CurtainEffect.qml | 52 property real originalWidth: width 65 uniform highp float originalWidth; 73 …hift.x = qt_Vertex.x * ((originalWidth - topWidth) + (topWidth - bottomWidth) * (qt_Vertex.y / ori… 75 shade = sin(21.9911486 * qt_Vertex.x / originalWidth); 76 …shift.y = amplitude * (originalWidth - topWidth + (topWidth - bottomWidth) * (qt_Vertex.y / origin… 80 … (bottomWidth + (topWidth - bottomWidth) * (1.0 - qt_Vertex.y / originalHeight)) / originalWidth);
|
/dports/audio/kid3-kf5/kid3-3.8.6/src/qml/app/ |
H A D | ScaledImage.qml | 27 property int originalWidth: 0 29 sourceSize.width: if (originalWidth > 0) 30 originalWidth * constants.imageScaleFactor 34 originalWidth = sourceSize.width
|
/dports/audio/kid3-qt5/kid3-3.8.6/src/qml/app/ |
H A D | ScaledImage.qml | 27 property int originalWidth: 0 29 sourceSize.width: if (originalWidth > 0) 30 originalWidth * constants.imageScaleFactor 34 originalWidth = sourceSize.width
|
/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/ThirdParty/tgcalls/tgcalls/platform/tdesktop/ |
H A D | VideoCameraCapturer.cpp | 174 const auto originalWidth = frame.width(); in OnFrame() local 176 auto width = (originalWidth > _aspectRatio * originalHeight) in OnFrame() 178 : originalWidth; in OnFrame() 179 auto height = (originalWidth > _aspectRatio * originalHeight) in OnFrame() 182 if ((width >= originalWidth && height >= originalHeight) || !width || !height) { in OnFrame() 189 const auto left = (originalWidth - width) / 2; in OnFrame()
|
/dports/www/bolt/bolt-2.2.24/vendor/bolt/thumbs/src/ |
H A D | ThumbnailCreator.php | 73 $this->originalWidth = $imageMetrics[0]; 80 $this->targetWidth = $this->originalWidth; 91 $this->targetWidth = $this->originalWidth; 94 … $this->targetWidth = round($this->targetHeight * $this->originalWidth / $this->originalHeight); 96 … $this->targetHeight = round($this->targetWidth * $this->originalHeight / $this->originalWidth); 101 if ($this->targetWidth > $this->originalWidth) { 102 $this->targetWidth = $this->originalWidth;
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/ui/android/java/src/org/chromium/ui/ |
H A D | UiUtils.java | 168 double originalWidth = originalBitmap.getWidth(); in generateScaledScreenshot() local 169 int newWidth = (int) originalWidth; in generateScaledScreenshot() 172 double scale = maximumDimension / Math.max(originalWidth, originalHeight); in generateScaledScreenshot() 173 newWidth = (int) Math.round(originalWidth * scale); in generateScaledScreenshot() 187 double originalWidth = currentView.getMeasuredWidth(); in generateScaledScreenshot() local 188 int newWidth = (int) originalWidth; in generateScaledScreenshot() 191 double scale = maximumDimension / Math.max(originalWidth, originalHeight); in generateScaledScreenshot() 192 newWidth = (int) Math.round(originalWidth * scale); in generateScaledScreenshot() 197 canvas.scale((float) (newWidth / originalWidth), in generateScaledScreenshot()
|
/dports/cad/ldview/ldview-4.4/CUI/ |
H A D | CUIWindowResizer.h | 32 virtual void setOriginalWidth(int value) { originalWidth = value; } in setOriginalWidth() 33 virtual int getOriginalWidth(void) const { return originalWidth; } in getOriginalWidth() 46 int originalWidth; variable
|
/dports/misc/mnn/MNN-1.2.0/demo/exec/ |
H A D | multiPose.cpp | 311 int originalWidth; in main() local 314 …auto inputImage = stbi_load(inputImageFileName, &originalWidth, &originalHeight, &originChannel, 4… in main() 320 …const int targetWidth = static_cast<int>((float)originalWidth / (float)OUTPUT_STRIDE) * OUTPUT_ST… in main() 324 scale.fX = (float)originalWidth / (float)targetWidth; in main() 358 trans.postScale(originalWidth, originalHeight); in main() 362 pretreat->convert(rgbaPtr, originalWidth, originalHeight, 0, input); in main() 410 …drawPose(inputImage, originalWidth, originalHeight, poseScores, poseKeypointScores, poseKeypointCo… in main() 411 …stbi_write_png(outputImageFileName, originalWidth, originalHeight, 4, inputImage, 4 * originalWidt… in main()
|
/dports/net-im/nheko/nheko-0.9.0/resources/qml/delegates/ |
H A D | MessageDelegate.qml | 19 required property int originalWidth 98 originalWidth: d.originalWidth 115 originalWidth: d.originalWidth 144 originalWidth: d.originalWidth 160 originalWidth: d.originalWidth
|
/dports/misc/mnn/MNN-1.2.0/tools/quantization/ |
H A D | Helper.cpp | 110 int originalWidth, originalHeight, comp; in preprocessInput() local 111 auto bitmap32bits = stbi_load(filename.c_str(), &originalWidth, &originalHeight, &comp, 4); in preprocessInput() 116 const int wCropSize = int(originalWidth * preprocessConfig.centerCropWidth); in preprocessInput() 120 int startW = (originalWidth - wCropSize) / 2; in preprocessInput() 144 pretreat->convert(bitmap32bits, originalWidth, originalHeight, 0, input); in preprocessInput()
|
/dports/graphics/qgis/qgis-3.22.3/src/core/layout/ |
H A D | qgslayoututils.cpp | 304 double originalWidth = originalRect.width(); in largestRotatedRectWithinBounds() local 318 …rectScale = ( ( originalWidth / originalHeight ) > ratioBoundsRect ) ? boundsWidth / originalWidth… in largestRotatedRectWithinBounds() 322 …cale = ( ( originalHeight / originalWidth ) > ratioBoundsRect ) ? boundsWidth / originalHeight : b… in largestRotatedRectWithinBounds() 324 double rectScaledWidth = rectScale * originalWidth; in largestRotatedRectWithinBounds() 343 …double widthBoundsRotatedRect = originalWidth * std::fabs( cosAngle ) + originalHeight * std::fabs… in largestRotatedRectWithinBounds() 344 …double heightBoundsRotatedRect = originalHeight * std::fabs( cosAngle ) + originalWidth * std::fab… in largestRotatedRectWithinBounds() 350 double rectScaledWidth = rectScale * originalWidth; in largestRotatedRectWithinBounds()
|
/dports/graphics/qgis-ltr/qgis-3.16.16/src/core/layout/ |
H A D | qgslayoututils.cpp | 308 double originalWidth = originalRect.width(); in largestRotatedRectWithinBounds() local 322 …rectScale = ( ( originalWidth / originalHeight ) > ratioBoundsRect ) ? boundsWidth / originalWidth… in largestRotatedRectWithinBounds() 326 …cale = ( ( originalHeight / originalWidth ) > ratioBoundsRect ) ? boundsWidth / originalHeight : b… in largestRotatedRectWithinBounds() 328 double rectScaledWidth = rectScale * originalWidth; in largestRotatedRectWithinBounds() 347 …double widthBoundsRotatedRect = originalWidth * std::fabs( cosAngle ) + originalHeight * std::fabs… in largestRotatedRectWithinBounds() 348 …double heightBoundsRotatedRect = originalHeight * std::fabs( cosAngle ) + originalWidth * std::fab… in largestRotatedRectWithinBounds() 354 double rectScaledWidth = rectScale * originalWidth; in largestRotatedRectWithinBounds()
|
/dports/graphics/pecl-imagick/imagick-3.5.1/tests/ |
H A D | 234_Tutorial_edgeExtend_basic.phpt | 23 $originalWidth = $imagick->getImageWidth(); 32 ($originalWidth / $desiredWidth), 0, //Don't scale vertically 34 ($desiredWidth - $originalWidth) / 2, 0);
|
/dports/graphics/pecl-imagick-im7/imagick-3.5.1/tests/ |
H A D | 234_Tutorial_edgeExtend_basic.phpt | 23 $originalWidth = $imagick->getImageWidth(); 32 ($originalWidth / $desiredWidth), 0, //Don't scale vertically 34 ($desiredWidth - $originalWidth) / 2, 0);
|
/dports/graphics/kolourpaint/kolourpaint-21.12.3/dialogs/imagelib/transforms/ |
H A D | kpTransformResizeScaleDialog.cpp | 406 / double (originalWidth ())); in widthFitHeightToAspectRatio() 420 const int newWidth = qRound (double (imageHeight ()) * double (originalWidth ()) in heightFitWidthToAspectRatio() 495 m_originalWidthInput->setValue (originalWidth ()); in slotActOnChanged() 536 const double newPercentWidth = double (width) * 100 / double (originalWidth ()); in slotWidthChanged() 574 qRound (percentWidth * originalWidth () / 100.0)); in slotPercentWidthChanged() 627 int kpTransformResizeScaleDialog::originalWidth () const in originalWidth() function in kpTransformResizeScaleDialog 685 return (imageWidth () == originalWidth () && in isNoOp() 820 if (kpTool::warnIfBigImageSize (originalWidth (), in accept()
|
/dports/games/scummvm/scummvm-2.5.1/engines/stark/visual/ |
H A D | explodingimage.cpp | 57 void VisualExplodingImage::initFromSurface(const Graphics::Surface *surface, uint originalWidth, ui… in initFromSurface() argument 62 _originalWidth = originalWidth; in initFromSurface() 73 explosionAmplitude.x *= _surface->w / (float)originalWidth; in initFromSurface() 80 …dex].setExplosionSettings(explosionCenter, explosionAmplitude, _surface->w / (float)originalWidth); in initFromSurface()
|
/dports/graphics/okular/okular-21.12.3/generators/markdown/ |
H A D | converter.cpp | 217 … const qreal specifiedWidth, const qreal specifiedHeight, const qreal originalWidth, const qreal o… in setImageSize() argument 227 width = originalWidth * height / originalHeight; in setImageSize() 228 } else if (height == 0 && originalWidth > 0) { in setImageSize() 229 height = originalHeight * width / originalWidth; in setImageSize() 232 width = originalWidth; in setImageSize()
|
/dports/graphics/qgis-ltr/qgis-3.16.16/tests/src/gui/ |
H A D | testqgsmapcanvas.cpp | 353 double originalWidth = initialExtent.width(); in testZoomByWheel() local 361 QGSCOMPARENEAR( mCanvas->extent().width(), originalWidth * 2.0, 0.1 ); in testZoomByWheel() 367 QGSCOMPARENEAR( mCanvas->extent().width(), originalWidth, 0.1 ); in testZoomByWheel() 373 QGSCOMPARENEAR( mCanvas->extent().width(), 1.05 * originalWidth, 0.1 ); in testZoomByWheel() 379 QGSCOMPARENEAR( mCanvas->extent().width(), originalWidth, 0.1 ); in testZoomByWheel() 387 double originalWidth = initialExtent.width(); in testShiftZoom() local 408 QGSCOMPARENEAR( mCanvas->extent().width(), originalWidth / 2.0, 0.2 ); in testShiftZoom() 425 QGSCOMPARENEAR( mCanvas->extent().width(), originalWidth, 0.0001 ); in testShiftZoom() 445 QGSCOMPARENEAR( mCanvas->extent().width(), originalWidth, 0.00001 ); in testShiftZoom()
|