Home
last modified time | relevance | path

Searched refs:new_width (Results 1 – 25 of 1820) sorted by relevance

12345678910>>...73

/dports/cad/py-pymtl/pymtl3-3.1.6/pymtl3/datatypes/
H A Dhelpers.py28 def trunc( value, new_width ): argument
29 if isinstance( new_width, int ):
30 assert new_width <= value.nbits
36 def zext( value, new_width ): argument
37 if isinstance( new_width, int ):
38 assert new_width >= value.nbits
42 return new_width( value.uint() )
48 def sext( value, new_width ): argument
49 if isinstance( new_width, int ):
50 assert new_width >= value.nbits
[all …]
/dports/graphics/aaphoto/aaphoto-0.43.1/
H A Daaresize.c23 unsigned long new_width, in RESIZE() argument
97 *image_width = new_width; in RESIZE()
114 unsigned long new_width; in ROTATE90() local
116 new_width = *image_width; in ROTATE90()
173 unsigned long new_width; in ROTATE180() local
175 new_width = *image_width; in ROTATE180()
189 x_max = new_width; in ROTATE180()
208 addr2 = ((new_width - 1 - x) + (new_height - 1 - y) * new_width); in ROTATE180()
244 unsigned long new_width; in ROTATE270() local
303 unsigned long new_width; in FLIPX() local
[all …]
/dports/math/pspp/pspp-1.4.1/src/data/
H A Dvalue.c142 if (old_width == new_width) in value_is_resizable()
151 for (i = new_width; i < old_width; i++) in value_is_resizable()
161 value_resize (union value *value, int old_width, int new_width) in value_resize() argument
163 assert (value_is_resizable (value, old_width, new_width)); in value_resize()
164 if (new_width != old_width && new_width > 0) in value_resize()
167 value_init (&tmp, new_width); in value_resize()
197 value_needs_resize (int old_width, int new_width) in value_needs_resize() argument
201 return old_width != new_width; in value_needs_resize()
242 int old_width, int new_width) in value_resize_pool() argument
244 assert (value_is_resizable (value, old_width, new_width)); in value_resize_pool()
[all …]
/dports/emulators/jzintv/jzintv-20200712-src/src/plat/
H A Dplat_lib.c208 int set_disp_width(int new_width) in set_disp_width() argument
210 UNUSED(new_width); in set_disp_width()
233 int set_disp_width(int new_width) in set_disp_width() argument
235 disp_width = new_width > 0 ? new_width : disp_width; in set_disp_width()
282 int set_disp_width(int new_width) in set_disp_width() argument
286 if (new_width == disp_width || new_width < 1) in set_disp_width()
322 int set_disp_width(int new_width) in set_disp_width() argument
324 disp_width = new_width > 0 ? new_width : disp_width; in set_disp_width()
365 int set_disp_width(int new_width) in set_disp_width() argument
367 disp_width = new_width > 0 ? new_width : disp_width; in set_disp_width()
[all …]
/dports/multimedia/termplay/termplay-2.0.6/src/
H A Dresizer.rs5 pub fn keep_aspect_ratio(old_width: u32, old_height: u32, mut new_width: u32, mut new_height: u32) … in keep_aspect_ratio()
7 let new_ratio = new_width as f64 / new_height as f64; in keep_aspect_ratio()
11 new_width = (old_width as f64 * (new_height as f64 / old_height as f64)) as u32; in keep_aspect_ratio()
14 new_height = (old_height as f64 * (new_width as f64 / old_width as f64)) as u32; in keep_aspect_ratio()
16 (new_width, new_height) in keep_aspect_ratio()
26 let new_width = (width as f64 * ratio) as u32; in apply_pixel_ratio() localVariable
27 if new_width <= max_width { in apply_pixel_ratio()
28 (new_width, height) in apply_pixel_ratio()
44 pub new_width: u32, field
50 …let (mut width, mut height) = keep_aspect_ratio(old_width, old_height, self.new_width, self.new_he… in get_size()
[all …]
/dports/graphics/pho/pho/
H A Dpho.c318 int new_width; in ScaleAndRotate() local
361 new_width = true_width; in ScaleAndRotate()
394 new_width *= gScaleRatio; in ScaleAndRotate()
404 new_width = img->curWidth; in ScaleAndRotate()
416 new_width = img->curWidth; in ScaleAndRotate()
445 new_width = img->curWidth; in ScaleAndRotate()
461 new_width = img->curWidth; in ScaleAndRotate()
487 SWAP(new_width, new_height); in ScaleAndRotate()
504 SWAP(new_width, new_height); in ScaleAndRotate()
506 new_width, new_height); in ScaleAndRotate()
[all …]
/dports/misc/openmvg/openMVG-2.0/src/openMVG/image/
H A Dimage_resampling.hpp29 const int new_width = src.Width() / 2; in ImageHalfSample() local
32 out.resize( new_width , new_height ); in ImageHalfSample()
38 for (int j = 0; j < new_width; ++j ) in ImageHalfSample()
52 const int new_width = src.Width() / 2; in ImageDecimate() local
55 out.resize( new_width , new_height ); in ImageDecimate()
59 for ( int j = 0; j < new_width; ++j ) in ImageDecimate()
72 const int new_width = src.Width() * 2; in ImageUpsample() local
75 out.resize( new_width , new_height ); in ImageUpsample()
81 for (int j = 0; j < new_width; ++j ) in ImageUpsample()
/dports/graphics/pcl-pointclouds/pcl-pcl-1.12.0/common/include/pcl/common/impl/
H A Dspring.hpp67 std::uint32_t new_width = old_width + 2*amount; in expandColumns() local
70 output.reserve (new_width * old_height); in expandColumns()
79 output.width = new_width; in expandColumns()
120 std::size_t new_width = old_width + 2*amount; in duplicateColumns() local
123 output.reserve (new_width * old_height); in duplicateColumns()
133 output.width = new_width; in duplicateColumns()
178 std::size_t new_width = old_width + 2*amount; in mirrorColumns() local
181 output.reserve (new_width * old_height); in mirrorColumns()
190 output.width = new_width; in mirrorColumns()
259 start = output.begin () + (j+1) * new_width; in deleteCols()
[all …]
/dports/x11-wm/afterstep-stable/afterstep-devel-2.2.12/libAfterStep/
H A Dshape.c55 if (new_width == 0 || new_height == 0) in assimilate_rectangle()
72 shape_rects[i].width = new_width; in assimilate_rectangle()
78 if (new_x + new_width >= shape_rects[i].x in assimilate_rectangle()
80 int w1 = new_x + new_width; in assimilate_rectangle()
143 int right = (new_x + new_width > x2) ? new_x + new_width - x2 : 0; in assimilate_rectangle()
194 new_rect.width = new_width; in assimilate_rectangle()
216 if (new_width == 0 || new_height == 0) in subtract_rectangle()
243 int s_right = new_x + new_width; in subtract_rectangle()
303 int new_x, new_y, new_width, new_height; in add_shape_rectangles() local
322 new_width = in add_shape_rectangles()
[all …]
/dports/security/libfprint/libfprint-0.7.0/libfprint/
H A Dpixman.c28 int new_width = img->width * w_factor; in fpi_im_resize() local
35 resized = pixman_image_create_bits(PIXMAN_a8, new_width, new_height, NULL, new_width); in fpi_im_resize()
48 new_width, new_height /* width height */ in fpi_im_resize()
51 newimg = fpi_img_new(new_width * new_height); in fpi_im_resize()
52 newimg->width = new_width; in fpi_im_resize()
56 memcpy(newimg->data, pixman_image_get_data(resized), new_width * new_height); in fpi_im_resize()
/dports/graphics/gimp-app/gimp-2.10.30/app/core/
H A Dgimpimage-scale.c47 gint new_width, in gimp_image_scale() argument
63 g_return_if_fail (new_width > 0 && new_height > 0); in gimp_image_scale()
83 img_scale_w = (gdouble) new_width / (gdouble) old_width; in gimp_image_scale()
86 offset_x = (old_width - new_width) / 2; in gimp_image_scale()
94 new_width, in gimp_image_scale()
102 "width", new_width, in gimp_image_scale()
141 (position * new_width) / old_width, in gimp_image_scale()
162 x * new_width / old_width, in gimp_image_scale()
203 gint new_width, in gimp_image_scale_check() argument
222 new_width, new_height); in gimp_image_scale_check()
[all …]
H A Dgimpimage-resize.c51 gint new_width, in gimp_image_resize() argument
67 gint new_width, in gimp_image_resize_with_layers() argument
83 g_return_if_fail (new_width > 0 && new_height > 0); in gimp_image_resize_with_layers()
103 new_width, new_height); in gimp_image_resize_with_layers()
107 "width", new_width, in gimp_image_resize_with_layers()
163 new_width, new_height, in gimp_image_resize_with_layers()
196 if (new_position < 0 || new_position > new_width) in gimp_image_resize_with_layers()
231 if ((new_x < 0) || (new_x >= new_width)) in gimp_image_resize_with_layers()
259 gint *new_width, in gimp_image_resize_to_layers() argument
307 if (new_width) in gimp_image_resize_to_layers()
[all …]
/dports/games/el/Eternal-Lands-1.9.5.9-1/
H A Dtabs.c34 int new_width = 0; in do_scale_stats_handler() local
45 new_width = max2i(new_width, win->min_len_x); in do_scale_stats_handler()
53 widget_resize(win->window_id, tab_stats_collection_id, new_width, new_height + tab_tag_height); in do_scale_stats_handler()
55 tab_collection_resize(w, new_width, new_height); in do_scale_stats_handler()
125 int new_width = 0; in do_scale_help_handler() local
136 new_width = max2i(new_width, win->min_len_x); in do_scale_help_handler()
144 widget_resize(win->window_id, tab_help_collection_id, new_width, new_height + tab_tag_height); in do_scale_help_handler()
146 tab_collection_resize(w, new_width, new_height); in do_scale_help_handler()
216 int new_width = (int)(0.5 + win->current_scale * 500); in do_scale_info_handler() local
227 new_width = max2i(new_width, win->min_len_x); in do_scale_info_handler()
[all …]
/dports/textproc/p5-Text-SimpleTable-AutoWidth/Text-SimpleTable-AutoWidth-0.09/lib/Text/SimpleTable/
H A DAutoWidth.pm66 my @new_width = @max_width;
73 $new_width[$idx] = $row_width[$idx];
78 + List::Util::reduce { $a + $b } @new_width;
81 $new_width[$idx] = $max_width[$idx]
90 if ( $new_width[$idx] < $row_width[$idx] ) {
93 + List::Util::reduce { $a + $b } @new_width;
95 $new_width[$idx] += $limit - $total;
101 @max_width = @new_width;
/dports/x11-toolkits/p5-Gtk2-Ex-FormFactory/Gtk2-Ex-FormFactory-0.67/lib/Gtk2/Ex/FormFactory/
H A DImage.pm83 my $new_width = int($image_width * $scale);
85 return if $new_width <= 0 or $new_height <= 0;
88 $new_width, $new_height, "GDK_INTERP_BILINEAR"
100 my $new_width = int($image_width * $scale);
102 return if $new_width <= 0 or $new_height <= 0;
105 $new_width, $new_height, "GDK_INTERP_BILINEAR"
128 my $new_width = int($image_width * $scale);
130 return if $new_width <= 0 or $new_height <= 0;
133 $new_width, $new_height, "GDK_INTERP_BILINEAR"
/dports/graphics/swftools/swftools-0.9.2/lib/filters/
H A Drescale_images.c63 int new_width = (int)ceil(target_width*i->config_subpixels); in rescale_images_fillbitmap() local
66 if(new_width<=0) in rescale_images_fillbitmap()
67 new_width = 1; in rescale_images_fillbitmap()
71 if(new_width < img->width || new_height < img->height) { in rescale_images_fillbitmap()
72 msg("<verbose> Scaling %dx%d image to %dx%d", img->width, img->height, new_width, new_height); in rescale_images_fillbitmap()
73 gfximage_t*new_image = gfximage_rescale(img, new_width, new_height); in rescale_images_fillbitmap()
75 m.m00 = (m.m00 * img->width) / new_width; in rescale_images_fillbitmap()
76 m.m01 = (m.m01 * img->width) / new_width; in rescale_images_fillbitmap()
/dports/www/flat-frog/flat-frog-2.2.13/src/plugins/
H A Dfunction.html_image.php123 $new_width = $fin1_width;
126 $new_width = $fin2_width;
132 $new_width = $fin1_width;
135 $new_width = $fin2_width;
144 $new_width = round($size[0]*($height/$size[1]));
149 $new_width = $width;
152 $width = $new_width;
/dports/www/templatelite/template_lite/src/plugins/
H A Dfunction.html_image.php150 $new_width = $fin1_width;
155 $new_width = $fin2_width;
164 $new_width = $fin1_width;
169 $new_width = $fin2_width;
181 $new_width = round($size[0]*($height/$size[1]));
187 $new_width = $width;
190 $width = $new_width;
/dports/misc/vxl/vxl-3.3.2/core/vil1/
H A Dvil1_resample_image_impl.cxx20 , new_width(nw) in vil1_resample_image_impl()
24 assert(new_width > 0); in vil1_resample_image_impl()
33 vil1_image_impl * i = new vil1_resample_image_impl(base.get_plane(p), new_width, new_height); in get_plane()
66 if (x0 < 0 || y0 < 0 || x0 + w > (int)new_width || y0 + h > (int)new_height) in get_section()
76 …return vil1_resample_image(base, new_width, new_height, (vxl_byte *)buf, (unsigned *)nullptr, x0, … in get_section()
79 … base, new_width, new_height, (vil1_rgb<vxl_byte> *)buf, (vil1_rgb<int> *)nullptr, x0, y0, w, h); in get_section()
/dports/graphics/gimp-lqr-plugin/gimp-lqr-plugin-0.7.2/src/
H A Drender.c121 gint new_width, new_height; in render_init_carver() local
157 new_width = vals->new_width; in render_init_carver()
288 gint new_width, new_height; in render_noninteractive() local
311 new_width = vals->new_width; in render_noninteractive()
326 new_width = old_width; in render_noninteractive()
355 gimp_layer_resize (layer_ID, new_width, new_height, 0, 0); in render_noninteractive()
364 set_tiles (new_width); in render_noninteractive()
475 gint new_width, new_height; in render_interactive() local
513 new_width = vals->new_width; in render_interactive()
553 set_tiles (new_width); in render_interactive()
[all …]
/dports/graphics/gimp-app/gimp-2.10.30/libgimp/
H A Dgimpimagetransform_pdb.c59 gint new_width, in gimp_image_resize() argument
71 GIMP_PDB_INT32, new_width, in gimp_image_resize()
136 gint new_width, in gimp_image_scale() argument
146 GIMP_PDB_INT32, new_width, in gimp_image_scale()
172 gint new_width, in gimp_image_scale_full() argument
183 GIMP_PDB_INT32, new_width, in gimp_image_scale_full()
216 gint new_width, in gimp_image_crop() argument
228 GIMP_PDB_INT32, new_width, in gimp_image_crop()
/dports/graphics/gimp-app/gimp-2.10.30/app/pdb/
H A Dimage-transform-cmds.c57 gint32 new_width; in image_resize_invoker() local
63 new_width = g_value_get_int (gimp_value_array_index (args, 1)); in image_resize_invoker()
71 new_width, new_height, offx, offy, NULL); in image_resize_invoker()
110 gint32 new_width; in image_scale_invoker() local
114 new_width = g_value_get_int (gimp_value_array_index (args, 1)); in image_scale_invoker()
124 gimp_image_scale (image, new_width, new_height, in image_scale_invoker()
146 gint32 new_width; in image_scale_full_invoker() local
151 new_width = g_value_get_int (gimp_value_array_index (args, 1)); in image_scale_full_invoker()
180 gint32 new_width; in image_crop_invoker() local
186 new_width = g_value_get_int (gimp_value_array_index (args, 1)); in image_crop_invoker()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/ash/wallpaper/wallpaper_utils/
H A Dwallpaper_resizer.cc39 const int new_width = target_size.width(); in Resize() local
42 if (orig_width > new_width || orig_height > new_height) { in Resize()
44 gfx::Size cropped_size = gfx::Size(std::min(new_width, orig_width), in Resize()
59 orig_bitmap, skia::ImageOperations::RESIZE_LANCZOS3, new_width, in Resize()
63 if (orig_width > new_width && orig_height > new_height) { in Resize()
67 static_cast<double>(new_width) / static_cast<double>(orig_width); in Resize()
73 base::ClampRound(new_width / vertical_ratio), orig_height); in Resize()
83 sub_image, skia::ImageOperations::RESIZE_LANCZOS3, new_width, in Resize()
/dports/graphics/liblqr-1/liblqr-1-0.4.2/examples/
H A Dliquidrescale-basic.cpp27 gint new_width = 0; variable
49 new_width = (new_width ? new_width : old_width); in main()
52 if (new_width < 2) { in main()
64 outfile << " [" << new_width << "x" << new_height << "]" << endl << flush; in main()
85 TRAP(lqr_carver_resize(carver, new_width, new_height)); in main()
129 new_width = atoi(optarg); in parse_command_line()
159 if (!new_width && !new_height) { in parse_command_line()
/dports/www/xoops/XoopsCore25-2.5.10/htdocs/class/libraries/vendor/smottt/wideimage/lib/WideImage/Operation/
H A DResizeCanvas.php53 $new_width = Coordinate::fix($width, $img->getWidth());
57 $new_width = min($new_width, $img->getWidth());
60 $new_width = max($new_width, $img->getWidth());
64 $new = WideImage::createTrueColorImage($new_width, $new_height);

12345678910>>...73