/dports/graphics/kipi-plugins/kipi-plugins-21.12.3/printimages/tools/ |
H A D | templateicon.cpp | 45 …scale_width = float(m_icon_size.width()) / float(m_p… in TemplateIcon() 65 …scale_width = float(m_icon_size.width()) / float(m_p… in begin() 73 qCDebug(KIPIPLUGINS_LOG) << "begin: scale_width =" << scale_width; in begin() 91 qCDebug(KIPIPLUGINS_LOG) << "fillRect: x1=" << x << " => " << x * scale_width; in fillRect() 93 qCDebug(KIPIPLUGINS_LOG) << "fillRect: x2=" << w << " => " << (x + w) * scale_width; in fillRect() 97 painter->fillRect( (int)(m_icon_margin + x * scale_width), in fillRect() 99 (int)(w * scale_width), in fillRect() 111 (int)(m_paper_size.width() * scale_width), in end()
|
/dports/graphics/libchamplain/libchamplain-0.12.20/champlain/ |
H A D | champlain-scale.c | 211 gfloat scale_width = priv->max_scale_width; in redraw_scale() local 241 base = floor (log (m_per_pixel * scale_width) / log (10)); in redraw_scale() 246 g_assert (m_per_pixel * scale_width / base > 0); in redraw_scale() 247 scale_width /= m_per_pixel * scale_width / base; in redraw_scale() 248 g_assert (scale_width > 0); in redraw_scale() 249 factor = floor (priv->max_scale_width / scale_width); in redraw_scale() 251 scale_width *= factor; in redraw_scale() 315 cairo_line_to (cr, scale_width + SCALE_INSIDE_PADDING, offset + SCALE_HEIGHT); in redraw_scale() 319 cairo_move_to (cr, scale_width / 2 + SCALE_INSIDE_PADDING, offset); in redraw_scale() 324 cairo_move_to (cr, scale_width + SCALE_INSIDE_PADDING, offset); in redraw_scale() [all …]
|
/dports/multimedia/ogmrip/ogmrip-1.0.1/libogmrip/ |
H A D | ogmrip-video-codec.c | 56 guint scale_width; member 759 if (scale_width > max_width) in ogmrip_video_codec_autosize() 761 scale_width = max_width; in ogmrip_video_codec_autosize() 773 scale_width = min_width; in ogmrip_video_codec_autosize() 783 video->priv->scale_width = scale_width; in ogmrip_video_codec_autosize() 1605 scale_width = video->priv->scale_width; in ogmrip_video_codec_get_scale_size() 1608 if (!scale_width) in ogmrip_video_codec_get_scale_size() 1609 scale_width = raw_width; in ogmrip_video_codec_get_scale_size() 1817 for (scale_width = raw_width - 25 * 16; scale_width <= raw_width; scale_width += 16) in ogmrip_video_codec_autoscale() 1830 scale_width = crop_width; in ogmrip_video_codec_autoscale() [all …]
|
/dports/misc/vxl/vxl-3.3.2/v3p/dcmtk/dcmimgle/libsrc/ |
H A D | dcmimage.cxx | 407 unsigned long scale_width, in createScaledImage() argument 421 if ((scale_width == 0) && (scale_height == 0)) in createScaledImage() 423 scale_width = clip_width; // auto-set width/height in createScaledImage() 428 if (scale_width == 0) in createScaledImage() 429 … scale_width = (unsigned long)(getWidthHeightRatio() * (double)(scale_height * gw) / gh); in createScaledImage() 437 if (scale_width == 0) in createScaledImage() 438 scale_width = (unsigned long)((double)(scale_height * gw) / gh); in createScaledImage() 440 scale_height = (unsigned long)((double)(scale_width * gh) / gw); in createScaledImage() 443 if (scale_width > maxvalue) in createScaledImage() 452 ((clip_width != scale_width) || (clip_height != scale_height))) in createScaledImage() [all …]
|
/dports/graphics/dcmtk/dcmtk-DCMTK-3.6.6/dcmimgle/libsrc/ |
H A D | dcmimage.cc | 391 unsigned long scale_width, in createScaledImage() argument 405 if ((scale_width == 0) && (scale_height == 0)) in createScaledImage() 407 scale_width = clip_width; // auto-set width/height in createScaledImage() 414 if (scale_width == 0) in createScaledImage() 423 if (scale_width == 0) in createScaledImage() 424 …scale_width = OFstatic_cast(unsigned long, OFstatic_cast(double, scale_height * clip_width) / clip… in createScaledImage() 430 if (scale_width > maxvalue) in createScaledImage() 431 … scale_width = maxvalue; // limit 'width' to maximum value (65535) in createScaledImage() 439 ((clip_width != scale_width) || (clip_height != scale_height))) in createScaledImage() 443 else if ((scale_width > 0) && (scale_height > 0)) in createScaledImage() [all …]
|
/dports/graphics/photoflow/PhotoFlow-8472024f/src/operations/ |
H A D | scale.cc | 367 float scale_width = 0; in build() local 376 scale_width = scale_width_percent.get()/100.0f; in build() 379 scale_width = scale_width_percent.get()/100.0f; in build() 386 scale_width = new_width/full_width; in build() 392 scale_width = new_width/full_width; in build() 398 scale_width = ((float)new_width)/full_width; in build() 403 if( /*level!=0 ||*/ (scale_width==1 && scale_height==1) || in build() 404 (scale_width==0 && scale_height==0) ) { in build() 409 if( scale_width == 0 ) scale = scale_height; in build() 410 else if( scale_height == 0 ) scale = scale_width; in build() [all …]
|
/dports/graphics/gimp-app/gimp-2.10.30/libgimpwidgets/ |
H A D | gimpscaleentry.c | 49 gint scale_width, 112 gint scale_width, in gimp_scale_entry_new_internal() argument 189 if (scale_width > 0) in gimp_scale_entry_new_internal() 190 gtk_widget_set_size_request (scale, scale_width, -1); in gimp_scale_entry_new_internal() 256 gint scale_width, in gimp_scale_entry_new() argument 273 text, scale_width, spinbutton_width, in gimp_scale_entry_new() 311 gint scale_width, in gimp_color_scale_entry_new() argument 325 text, scale_width, spinbutton_width, in gimp_color_scale_entry_new()
|
/dports/net-im/fractal/fractal-4.4.0/vendor/gstreamer-video/src/ |
H A D | video_format_info.rs | 140 pub fn scale_width(&self, component: u8, width: u32) -> u32 { in scale_width() method 187 < self.scale_width(plane as u8, width as u32) as i32 in unpack() 194 + self.scale_width(plane as u8, (x + width) as u32) as i32 in unpack() 264 < self.scale_width(plane as u8, width as u32) as i32 in pack() 271 + self.scale_width(plane as u8, width as u32) as i32 in pack() 408 assert_eq!(info.scale_width(0, 128), 128); in test_get() 409 assert_eq!(info.scale_width(1, 128), 64); in test_get() 410 assert_eq!(info.scale_width(2, 128), 64); in test_get()
|
/dports/comms/fldigi/fldigi-4.1.20/src/waterfall/ |
H A D | waterfall.cxx | 132 scale_width = IMAGE_WIDTH * 2; in WFdisp() 137 RGBwidth = RGBsize * scale_width; in WFdisp() 141 scline = new uchar[scale_width]; in WFdisp() 399 int incr = y * scale_width; in makeMarker() 416 memset(scline, 0, scale_width); in makeScale() 425 memcpy(gmap, scline, scale_width); in makeScale() 426 gmap += (scale_width); in makeScale() 435 memcpy(gmap, scline, scale_width); in makeScale() 436 gmap += (scale_width); in makeScale() 941 step, scale_width); in drawScale() [all …]
|
/dports/graphics/py-pyglet150/pyglet-1.5.0/examples/ |
H A D | fixed_resolution.py | 97 scale_width = aspect_height * self.width 100 scale_width = aspect_width * self.width 103 x = (self.window.width - scale_width) / 2 110 self.texture.blit(x, y, width=scale_width, height=scale_height)
|
/dports/graphics/xmedcon/xmedcon-0.17.0/source/ |
H A D | xutils.c | 371 my.scale_width = 1.; my.scale_height = 1.; in XMdcSetImageScales() 378 my.scale_width = my.fi->pixdim[1] / my.fi->pixdim[2]; in XMdcSetImageScales() 389 ratio_width = ((float)my.fi->mwidth * my.scale_width) in XMdcSetImageScales() 400 my.scale_width /= ratio_width; in XMdcSetImageScales() 404 my.scale_width /= ratio_height; in XMdcSetImageScales() 414 if (my.scale_width != 1.) { in XMdcScaleW() 416 new_width = (Uint32)((float)width * my.scale_width); in XMdcScaleW()
|
/dports/graphics/opencv/opencv-4.5.3/modules/dnn/src/cuda4dnn/primitives/ |
H A D | resize.hpp | 65 scale_width = compute_scale(in_width, out_width); in forward() local 68 …kernels::resize_nn<T>(stream, output, input, scale_height, scale_width, align_corners, half_pixel_… in forward() 70 … kernels::resize_bilinear<T>(stream, output, input, scale_height, scale_width, half_pixel_centers); in forward()
|
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/gstreamer-video-0.17.2/src/ |
H A D | video_format_info.rs | 133 pub fn scale_width(&self, component: u8, width: u32) -> u32 { in scale_width() method 180 < self.scale_width(plane as u8, width as u32) as i32 in unpack() 187 + self.scale_width(plane as u8, (x + width) as u32) as i32 in unpack() 256 < self.scale_width(plane as u8, width as u32) as i32 in pack() 263 + self.scale_width(plane as u8, width as u32) as i32 in pack() 506 assert_eq!(info.scale_width(0, 128), 128); in test_get() 507 assert_eq!(info.scale_width(1, 128), 64); in test_get() 508 assert_eq!(info.scale_width(2, 128), 64); in test_get()
|
/dports/audio/gnome-podcasts/podcasts-c86f7bfdef7692bbf20f315a90450321f6ca9ce7/cargo-crates/gstreamer-video-0.17.2/src/ |
H A D | video_format_info.rs | 133 pub fn scale_width(&self, component: u8, width: u32) -> u32 { in scale_width() method 180 < self.scale_width(plane as u8, width as u32) as i32 in unpack() 187 + self.scale_width(plane as u8, (x + width) as u32) as i32 in unpack() 256 < self.scale_width(plane as u8, width as u32) as i32 in pack() 263 + self.scale_width(plane as u8, width as u32) as i32 in pack() 506 assert_eq!(info.scale_width(0, 128), 128); in test_get() 507 assert_eq!(info.scale_width(1, 128), 64); in test_get() 508 assert_eq!(info.scale_width(2, 128), 64); in test_get()
|
/dports/multimedia/mlt7/mlt-7.0.1/src/modules/core/ |
H A D | filter_rescale.c | 70 register int scale_width = ( iwidth << 16 ) / owidth; in filter_scale() local 74 int outer = out_x_range * scale_width; in filter_scale() 87 for ( dx = - outer; dx < outer; dx += scale_width ) in filter_scale() 94 dx += scale_width; in filter_scale()
|
/dports/multimedia/mlt7-qt5/mlt-7.0.1/src/modules/core/ |
H A D | filter_rescale.c | 70 register int scale_width = ( iwidth << 16 ) / owidth; in filter_scale() local 74 int outer = out_x_range * scale_width; in filter_scale() 87 for ( dx = - outer; dx < outer; dx += scale_width ) in filter_scale() 94 dx += scale_width; in filter_scale()
|
/dports/multimedia/py-mlt6/mlt-6.26.1/src/modules/core/ |
H A D | filter_rescale.c | 70 register int scale_width = ( iwidth << 16 ) / owidth; in filter_scale() local 74 int outer = out_x_range * scale_width; in filter_scale() 87 for ( dx = - outer; dx < outer; dx += scale_width ) in filter_scale() 94 dx += scale_width; in filter_scale()
|
/dports/multimedia/mlt6/mlt-6.26.1/src/modules/core/ |
H A D | filter_rescale.c | 70 register int scale_width = ( iwidth << 16 ) / owidth; in filter_scale() local 74 int outer = out_x_range * scale_width; in filter_scale() 87 for ( dx = - outer; dx < outer; dx += scale_width ) in filter_scale() 94 dx += scale_width; in filter_scale()
|
/dports/multimedia/mlt6-qt5/mlt-6.26.1/src/modules/core/ |
H A D | filter_rescale.c | 70 register int scale_width = ( iwidth << 16 ) / owidth; in filter_scale() local 74 int outer = out_x_range * scale_width; in filter_scale() 87 for ( dx = - outer; dx < outer; dx += scale_width ) in filter_scale() 94 dx += scale_width; in filter_scale()
|
/dports/misc/py-mxnet/incubator-mxnet-1.9.0/src/operator/contrib/ |
H A D | bilinear_resize-inl.h | 59 dmlc::optional<float> scale_width; member 71 DMLC_DECLARE_FIELD(scale_width).set_default(dmlc::optional<float>()) in DMLC_DECLARE_PARAMETER() 260 new_width = static_cast<int>(param.scale_width.value() * in_shape->at(0)[3]); in BilinearSampleOpInferShape() 270 new_width = ((dshape[3] % 2) == 0) ? (int16_t) (dshape[3] * param.scale_width.value()) : in BilinearSampleOpInferShape() 271 (int16_t) ((dshape[3] - 1) * param.scale_width.value()) + 1; in BilinearSampleOpInferShape()
|
/dports/misc/mxnet/incubator-mxnet-1.9.0/src/operator/contrib/ |
H A D | bilinear_resize-inl.h | 59 dmlc::optional<float> scale_width; member 71 DMLC_DECLARE_FIELD(scale_width).set_default(dmlc::optional<float>()) in DMLC_DECLARE_PARAMETER() 260 new_width = static_cast<int>(param.scale_width.value() * in_shape->at(0)[3]); in BilinearSampleOpInferShape() 270 new_width = ((dshape[3] % 2) == 0) ? (int16_t) (dshape[3] * param.scale_width.value()) : in BilinearSampleOpInferShape() 271 (int16_t) ((dshape[3] - 1) * param.scale_width.value()) + 1; in BilinearSampleOpInferShape()
|
/dports/multimedia/mlt6-qt5/mlt-6.26.1/src/modules/sdl/ |
H A D | consumer_sdl_still.c | 250 int scale_width = ( width << 16 ) / rect.w; in display_1() local 269 q = row + ( ( ( 32768 + scale_width * x ) >> 16 ) * 4 ); in display_1() 280 int scale_width = ( width << 16 ) / rect.w; in display_2() local 299 q = row + ( ( ( 32768 + scale_width * x ) >> 16 ) * 4 ); in display_2() 310 int scale_width = ( width << 16 ) / rect.w; in display_3() local 330 q = row + ( ( ( 32768 + scale_width * x ) >> 16 ) * 4 ); in display_3() 344 int scale_width = ( width << 16 ) / rect.w; in display_4() local 363 q = row + ( ( ( 32768 + scale_width * x ) >> 16 ) * 4 ); in display_4()
|
/dports/multimedia/mlt7/mlt-7.0.1/src/modules/sdl/ |
H A D | consumer_sdl_still.c | 244 int scale_width = ( width << 16 ) / rect.w; in display_1() local 263 q = row + ( ( ( 32768 + scale_width * x ) >> 16 ) * 4 ); in display_1() 274 int scale_width = ( width << 16 ) / rect.w; in display_2() local 293 q = row + ( ( ( 32768 + scale_width * x ) >> 16 ) * 4 ); in display_2() 304 int scale_width = ( width << 16 ) / rect.w; in display_3() local 324 q = row + ( ( ( 32768 + scale_width * x ) >> 16 ) * 4 ); in display_3() 338 int scale_width = ( width << 16 ) / rect.w; in display_4() local 357 q = row + ( ( ( 32768 + scale_width * x ) >> 16 ) * 4 ); in display_4()
|
/dports/multimedia/py-mlt6/mlt-6.26.1/src/modules/sdl/ |
H A D | consumer_sdl_still.c | 250 int scale_width = ( width << 16 ) / rect.w; in display_1() local 269 q = row + ( ( ( 32768 + scale_width * x ) >> 16 ) * 4 ); in display_1() 280 int scale_width = ( width << 16 ) / rect.w; in display_2() local 299 q = row + ( ( ( 32768 + scale_width * x ) >> 16 ) * 4 ); in display_2() 310 int scale_width = ( width << 16 ) / rect.w; in display_3() local 330 q = row + ( ( ( 32768 + scale_width * x ) >> 16 ) * 4 ); in display_3() 344 int scale_width = ( width << 16 ) / rect.w; in display_4() local 363 q = row + ( ( ( 32768 + scale_width * x ) >> 16 ) * 4 ); in display_4()
|
/dports/multimedia/mlt7-qt5/mlt-7.0.1/src/modules/sdl/ |
H A D | consumer_sdl_still.c | 244 int scale_width = ( width << 16 ) / rect.w; in display_1() local 263 q = row + ( ( ( 32768 + scale_width * x ) >> 16 ) * 4 ); in display_1() 274 int scale_width = ( width << 16 ) / rect.w; in display_2() local 293 q = row + ( ( ( 32768 + scale_width * x ) >> 16 ) * 4 ); in display_2() 304 int scale_width = ( width << 16 ) / rect.w; in display_3() local 324 q = row + ( ( ( 32768 + scale_width * x ) >> 16 ) * 4 ); in display_3() 338 int scale_width = ( width << 16 ) / rect.w; in display_4() local 357 q = row + ( ( ( 32768 + scale_width * x ) >> 16 ) * 4 ); in display_4()
|