/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/ThirdParty/tgcalls/tgcalls/platform/tdesktop/ |
H A D | VideoCameraCapturer.cpp | 175 const auto originalHeight = frame.height(); in OnFrame() local 176 auto width = (originalWidth > _aspectRatio * originalHeight) in OnFrame() 177 ? int(std::round(_aspectRatio * originalHeight)) in OnFrame() 179 auto height = (originalWidth > _aspectRatio * originalHeight) in OnFrame() 180 ? originalHeight in OnFrame() 181 : int(std::round(originalHeight / _aspectRatio)); in OnFrame() 182 if ((width >= originalWidth && height >= originalHeight) || !width || !height) { in OnFrame() 190 const auto top = (originalHeight - height) / 2; in OnFrame()
|
/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() 126 oh = originalHeight; in convertImage() 154 const int hCropSize = int(originalHeight * cropFractionH); in convertImage() 158 int startH = (originalHeight - hCropSize) / 2; in convertImage() 162 const int maxStartPointH = originalHeight - hCropSize; in convertImage() 194 float(0), float(originalHeight - 1), 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 | 52 $originalHeight = imagesy($img); 55 $smallestHeight = ceil($originalHeight * pow(0.5, $blurFactor)); 60 $prevHeight = $originalHeight; 89 $originalWidth, $originalHeight, $nextWidth, $nextHeight
|
/dports/www/mediawiki137/mediawiki-1.37.1/tests/phpunit/includes/media/ |
H A D | SVGReaderTest.php | 113 'originalHeight' => '13cm', 129 'originalHeight' => '150', 140 'originalHeight' => '100%', 167 'originalHeight' => '592.78998',
|
/dports/www/mediawiki136/mediawiki-1.36.3/tests/phpunit/includes/media/ |
H A D | SVGReaderTest.php | 113 'originalHeight' => '13cm', 129 'originalHeight' => '150', 140 'originalHeight' => '100%', 167 'originalHeight' => '592.78998',
|
/dports/www/mediawiki135/mediawiki-1.35.5/tests/phpunit/includes/media/ |
H A D | SVGReaderTest.php | 113 'originalHeight' => '13cm', 129 'originalHeight' => '150', 140 'originalHeight' => '100%', 167 'originalHeight' => '592.78998',
|
/dports/graphics/lightzone/LightZone-4.1.8-3-g36e87773/lightcrafts/src/com/lightcrafts/image/export/ |
H A D | ImageExportOptions.java | 24 public final OriginalHeightOption originalHeight; field in ImageExportOptions 235 originalHeight.readFrom( r ); in readFrom() 245 originalHeight.writeTo( w ); in writeTo() 257 originalHeight = new OriginalHeightOption( 0, this ); in ImageExportOptions() 267 originalHeight.save( node ); in save() 275 originalHeight.restore( node ); in restore()
|
/dports/games/doomsday/doomsday-2.3.1/doomsday/apps/plugins/hexen/src/ |
H A D | p_waggle.cpp | 59 P_SetDoublep(waggle->sector, DMU_FLOOR_HEIGHT, waggle->originalHeight); in T_FloorWaggle() 70 coord_t fh = waggle->originalHeight + in T_FloorWaggle() 89 Writer_WriteInt32(writer, FLT2FIX(originalHeight)); in write() 112 originalHeight = FIX2FLT((fixed_t) Reader_ReadInt32(reader)); in read() 133 originalHeight = FIX2FLT((fixed_t) Reader_ReadInt32(reader)); in read() 174 waggle->originalHeight = P_GetDoublep(sec, DMU_FLOOR_HEIGHT); in EV_StartFloorWaggle()
|
/dports/audio/kid3-kf5/kid3-3.8.6/src/qml/app/ |
H A D | ScaledImage.qml | 28 property int originalHeight: 0 31 sourceSize.height: if (originalHeight > 0) 32 originalHeight * constants.imageScaleFactor 35 originalHeight = sourceSize.height
|
/dports/audio/kid3-qt5/kid3-3.8.6/src/qml/app/ |
H A D | ScaledImage.qml | 28 property int originalHeight: 0 31 sourceSize.height: if (originalHeight > 0) 32 originalHeight * constants.imageScaleFactor 35 originalHeight = sourceSize.height
|
/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/ThirdParty/tgcalls/tgcalls/ |
H A D | VideoCaptureInterfaceImpl.cpp | 118 float originalHeight = (float)_videoCapturerResolution.second; in updateAspectRateAdaptation() local 122 float width = (originalWidth > aspectRatio * originalHeight) in updateAspectRateAdaptation() 123 ? int(std::round(aspectRatio * originalHeight)) in updateAspectRateAdaptation() 125 float height = (originalWidth > aspectRatio * originalHeight) in updateAspectRateAdaptation() 126 ? originalHeight in updateAspectRateAdaptation() 127 : int(std::round(originalHeight / aspectRatio)); in updateAspectRateAdaptation()
|
/dports/www/bolt/bolt-2.2.24/vendor/bolt/thumbs/src/ |
H A D | ThumbnailCreator.php | 74 $this->originalHeight = $imageMetrics[1]; 86 $this->targetHeight = $this->originalHeight; 92 $this->targetHeight = $this->originalHeight; 94 … $this->targetWidth = round($this->targetHeight * $this->originalWidth / $this->originalHeight); 96 … $this->targetHeight = round($this->targetWidth * $this->originalHeight / $this->originalWidth); 104 if ($this->targetHeight > $this->originalHeight) { 105 $this->targetHeight = $this->originalHeight;
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/ui/android/java/src/org/chromium/ui/ |
H A D | UiUtils.java | 167 double originalHeight = originalBitmap.getHeight(); in generateScaledScreenshot() local 170 int newHeight = (int) originalHeight; in generateScaledScreenshot() 172 double scale = maximumDimension / Math.max(originalWidth, originalHeight); in generateScaledScreenshot() 174 newHeight = (int) Math.round(originalHeight * scale); in generateScaledScreenshot() 186 double originalHeight = currentView.getMeasuredHeight(); in generateScaledScreenshot() local 189 int newHeight = (int) originalHeight; in generateScaledScreenshot() 191 double scale = maximumDimension / Math.max(originalWidth, originalHeight); in generateScaledScreenshot() 193 newHeight = (int) Math.round(originalHeight * scale); in generateScaledScreenshot() 198 (float) (newHeight / originalHeight)); in generateScaledScreenshot()
|
/dports/cad/ldview/ldview-4.4/CUI/ |
H A D | CUIWindowResizer.h | 34 virtual void setOriginalHeight(int value) { originalHeight = value; } in setOriginalHeight() 35 virtual int getOriginalHeight(void) const { return originalHeight; } in getOriginalHeight() 47 int originalHeight; variable
|
/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() 115 const int hCropSize = int(originalHeight * preprocessConfig.centerCropHeight); in preprocessInput() 119 int startH = (originalHeight - hCropSize) / 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 | 305 double originalHeight = originalRect.height(); in largestRotatedRectWithinBounds() local 318 …cale = ( ( originalWidth / originalHeight ) > ratioBoundsRect ) ? boundsWidth / originalWidth : bo… in largestRotatedRectWithinBounds() 322 …rectScale = ( ( originalHeight / originalWidth ) > ratioBoundsRect ) ? boundsWidth / originalHeigh… in largestRotatedRectWithinBounds() 325 double rectScaledHeight = rectScale * originalHeight; 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() 351 double rectScaledHeight = rectScale * originalHeight; in largestRotatedRectWithinBounds()
|
/dports/graphics/qgis-ltr/qgis-3.16.16/src/core/layout/ |
H A D | qgslayoututils.cpp | 309 double originalHeight = originalRect.height(); in largestRotatedRectWithinBounds() local 322 …cale = ( ( originalWidth / originalHeight ) > ratioBoundsRect ) ? boundsWidth / originalWidth : bo… in largestRotatedRectWithinBounds() 326 …rectScale = ( ( originalHeight / originalWidth ) > ratioBoundsRect ) ? boundsWidth / originalHeigh… in largestRotatedRectWithinBounds() 329 double rectScaledHeight = rectScale * originalHeight; 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() 355 double rectScaledHeight = rectScale * originalHeight; in largestRotatedRectWithinBounds()
|
/dports/converters/wkhtmltopdf/qt-5db36ec/examples/declarative/shadereffects/qml/shadereffects/ |
H A D | CurtainEffect.qml | 53 property real originalHeight: height 66 uniform highp float originalHeight; 73 …riginalWidth - topWidth) + (topWidth - bottomWidth) * (qt_Vertex.y / originalHeight)) / originalWi… 76 …e * (originalWidth - topWidth + (topWidth - bottomWidth) * (qt_Vertex.y / originalHeight)) * shade; 80 ….0 - (bottomWidth + (topWidth - bottomWidth) * (1.0 - qt_Vertex.y / originalHeight)) / originalWi…
|
/dports/misc/mnn/MNN-1.2.0/demo/exec/ |
H A D | multiPose.cpp | 312 int originalHeight; in main() local 314 …auto inputImage = stbi_load(inputImageFileName, &originalWidth, &originalHeight, &originChannel, 4… in main() 321 …const int targetHeight = static_cast<int>((float)originalHeight / (float)OUTPUT_STRIDE) * OUTPUT_S… in main() 325 scale.fY = (float)originalHeight / (float)targetHeight; 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/graphics/kolourpaint/kolourpaint-21.12.3/dialogs/imagelib/transforms/ |
H A D | kpTransformResizeScaleDialog.cpp | 405 const int newHeight = qRound (double (imageWidth ()) * double (originalHeight ()) in widthFitHeightToAspectRatio() 421 / double (originalHeight ())); in heightFitWidthToAspectRatio() 496 m_originalHeightInput->setValue (originalHeight ()); in slotActOnChanged() 554 const double newPercentHeight = double (height) * 100 / double (originalHeight ()); in slotHeightChanged() 592 qRound (percentHeight * originalHeight () / 100.0)); in slotPercentHeightChanged() 635 int kpTransformResizeScaleDialog::originalHeight () const in originalHeight() function in kpTransformResizeScaleDialog 686 imageHeight () == originalHeight ()); in isNoOp() 821 originalHeight (), in accept()
|
/dports/graphics/okular/okular-21.12.3/generators/markdown/ |
H A D | converter.cpp | 217 …specifiedWidth, const qreal specifiedHeight, const qreal originalWidth, const qreal originalHeight) in setImageSize() argument 226 if (width == 0 && originalHeight > 0) { in setImageSize() 227 width = originalWidth * height / originalHeight; in setImageSize() 229 height = originalHeight * width / originalWidth; in setImageSize() 233 height = originalHeight; in setImageSize()
|
/dports/graphics/qgis-ltr/qgis-3.16.16/tests/src/gui/ |
H A D | testqgsmapcanvas.cpp | 354 double originalHeight = initialExtent.height(); in testZoomByWheel() local 362 QGSCOMPARENEAR( mCanvas->extent().height(), originalHeight * 2.0, 0.1 ); in testZoomByWheel() 368 QGSCOMPARENEAR( mCanvas->extent().height(), originalHeight, 0.1 ); in testZoomByWheel() 374 QGSCOMPARENEAR( mCanvas->extent().height(), 1.05 * originalHeight, 0.1 ); in testZoomByWheel() 380 QGSCOMPARENEAR( mCanvas->extent().height(), originalHeight, 0.1 ); in testZoomByWheel() 388 double originalHeight = initialExtent.height(); in testShiftZoom() local 409 QGSCOMPARENEAR( mCanvas->extent().height(), originalHeight / 2.0, 0.2 ); in testShiftZoom() 426 QGSCOMPARENEAR( mCanvas->extent().height(), originalHeight, 0.0001 ); in testShiftZoom() 446 QGSCOMPARENEAR( mCanvas->extent().height(), originalHeight, 0.00001 ); in testShiftZoom()
|
/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/SourceFiles/ui/chat/attach/ |
H A D | attach_abstract_single_media_preview.cpp | 77 auto originalHeight = preview.height(); in preparePreview() local 78 if (!originalWidth || !originalHeight) { in preparePreview() 79 originalWidth = originalHeight = 1; in preparePreview() 86 _previewHeight = qRound(originalHeight in preparePreview()
|
/dports/graphics/lightzone/LightZone-4.1.8-3-g36e87773/lightcrafts/src/com/lightcrafts/ui/export/ |
H A D | ExportLogic.java | 120 options.originalHeight.getValue() != size.height ) { in maybeUpdateSize() 122 options.originalHeight.setValue( size.height ); in maybeUpdateSize() 157 copyOption( oldFileOptions.originalHeight, newFileOptions.originalHeight ); in mergeExportOptions()
|
/dports/graphics/qgis/qgis-3.22.3/tests/src/gui/ |
H A D | testqgsmapcanvas.cpp | 372 const double originalHeight = initialExtent.height(); in testZoomByWheel() local 380 QGSCOMPARENEAR( mCanvas->extent().height(), originalHeight * 2.0, 0.1 ); in testZoomByWheel() 386 QGSCOMPARENEAR( mCanvas->extent().height(), originalHeight, 0.1 ); in testZoomByWheel() 392 QGSCOMPARENEAR( mCanvas->extent().height(), 1.05 * originalHeight, 0.1 ); in testZoomByWheel() 398 QGSCOMPARENEAR( mCanvas->extent().height(), originalHeight, 0.1 ); in testZoomByWheel() 406 const double originalHeight = initialExtent.height(); in testShiftZoom() local 427 QGSCOMPARENEAR( mCanvas->extent().height(), originalHeight / 2.0, 0.2 ); in testShiftZoom() 444 QGSCOMPARENEAR( mCanvas->extent().height(), originalHeight, 0.0001 ); in testShiftZoom() 464 QGSCOMPARENEAR( mCanvas->extent().height(), originalHeight, 0.00001 ); in testShiftZoom()
|