/dports/misc/bb/bb-1.3.0/ |
H A D | image.c | 77 int imgwidth = image->width; in scale() local 94 if (x2 >= imgwidth) { in scale() 95 xx2 = (imgwidth - 1 - x1) * xstep; in scale() 96 x2 = imgwidth - 1; in scale() 127 int imgwidth = image->width; in scale2() local 141 if (x2 >= imgwidth) { in scale2() 142 xx2 = (imgwidth - 1 - x1) * xstep; in scale2() 143 x2 = imgwidth - 1; in scale2() 186 int imgwidth = image->width; in dispimg() local 191 x2 = imgwidth; in dispimg() [all …]
|
/dports/emulators/tilem/tilem-2.0/emu/ |
H A D | grayimage.c | 215 for (j = 0; j < imgwidth; j++) in tilem_draw_lcd_image_indexed() 239 ibuf, imgwidth, imgheight, imgwidth); in tilem_draw_lcd_image_indexed() 242 for (j = 0; j < imgwidth; j++) { in tilem_draw_lcd_image_indexed() 246 ibuf += imgwidth; in tilem_draw_lcd_image_indexed() 269 for (j = 0; j < imgwidth; j++) { in tilem_draw_lcd_image_rgb() 292 bbuf, imgwidth, imgheight, imgwidth); in tilem_draw_lcd_image_rgb() 295 for (j = 0; j < imgwidth; j++) { in tilem_draw_lcd_image_rgb() 302 bbuf += imgwidth; in tilem_draw_lcd_image_rgb() 310 ibuf, imgwidth, imgheight, imgwidth); in tilem_draw_lcd_image_rgb() 313 for (j = 0; j < imgwidth; j++) { in tilem_draw_lcd_image_rgb() [all …]
|
/dports/print/py-reportlab/reportlab-3.5.68/src/reportlab/pdfgen/ |
H A D | pdfimages.py | 55 imgwidth, imgheight = info[0], info[1] 72 return (imagedata, imgwidth, imgheight) 118 imgwidth, imgheight = myimage.size 126 rowstride = (imgwidth*bpc*bpp+7)>>3 134 return (imagedata, imgwidth, imgheight) 142 imgwidth = int(words[1]) 144 return imagedata, imgwidth, imgheight 163 imagedata, imgwidth, imgheight = self.JAVA_imagedata() 165 imagedata, imgwidth, imgheight = self.PIL_imagedata() 167 self.imgwidth = imgwidth [all …]
|
/dports/graphics/aview/aview-1.3.0/ |
H A D | image.c | 6 int imgwidth, imgheight; variable 55 if (fscanf(file, "%i %i", &imgwidth, &imgheight) != 2) { in load_image() 72 if ((imgdata = malloc(imgwidth * imgheight)) == NULL) { in load_image() 79 for (i = 0; i < imgwidth * imgheight; i++) in load_image() 84 for (i = 0; i < imgwidth * imgheight; i++) in load_image() 88 for(i=0;i<imgwidth*imgheight;) in load_image() 91 for(n=128;n&&i<imgwidth*imgheight;n>>=1,i++) in load_image() 96 for(i=0;i<imgwidth*imgheight;i++) in load_image() 106 fread(imgdata, 1, imgwidth * imgheight, file); in load_image() 108 for (i = 0; i < imgwidth * imgheight; i++) in load_image()
|
H A D | shrink.c | 17 if (x < 0 || x + xstep > imgwidth || y < 0 || y + ystep > imgheight) in getval() 22 xi = imgdata[xi + yi * imgwidth]; in getval() 27 xcount += (((int) imgdata[xi + yi * imgwidth])) * (1.0 - x + floor(x)); in getval() 30 xcount += (((int) imgdata[xi + yi * imgwidth])); in getval() 95 if(x2<0||x1>=imgwidth||y2<0||y1>=imgheight) { in shrink() 100 if(x1<0||y1<0||x2>=imgwidth||y2>=imgheight) in shrink() 105 if(x2>=imgwidth) { in shrink() 106 xx2=(imgwidth-1-x1)*xstep; in shrink() 107 x2=imgwidth-1; in shrink() 121 …fastscale(imgdata + x1 + imgwidth * y1, c->imagebuffer+xx1+yy1*width, x2 - x1, xx2-xx1, y2 - y1, y… in shrink() [all …]
|
H A D | ui.c | 193 x2 = imgwidth; in main_loop() 195 if (imgwidth * xmul > imgheight) in main_loop() 196 y2 = imgwidth * xmul; in main_loop() 199 x1 = (imgwidth - x2) / 2; in main_loop() 222 x2 = imgwidth; in main_loop() 224 if (imgwidth * xmul > imgheight) in main_loop() 225 y2 = imgwidth * xmul; in main_loop() 231 if (x2 < imgwidth - 1) { in main_loop() 241 if (x2 < imgwidth - step) { in main_loop() 245 x1 = imgwidth - x2 + x1; in main_loop() [all …]
|
/dports/graphics/opencolorio/OpenColorIO-1.1.1/src/apps/ocioconvert/ |
H A D | main.cpp | 116 int imgwidth = 0; in main() local 145 imgwidth = spec.width; in main() 149 img.resize(imgwidth*imgheight*components); in main() 150 memset(&img[0], 0, imgwidth*imgheight*components*sizeof(float)); in main() 177 imgwidth = spec.full_width; in main() 179 std::cerr << "cropping to " << imgwidth; in main() 189 croppedimg.resize(imgwidth*imgheight*kchannels.size()); in main() 203 current_pixel_x < imgwidth) in main() 209 croppedimg[(current_pixel_y*imgwidth*kchannels.size()) in main() 220 spec.width = imgwidth; in main() [all …]
|
/dports/graphics/opencolorio-tools/OpenColorIO-1.1.1/src/apps/ocioconvert/ |
H A D | main.cpp | 115 int imgwidth = 0; in main() local 144 imgwidth = spec.width; in main() 148 img.resize(imgwidth*imgheight*components); in main() 149 memset(&img[0], 0, imgwidth*imgheight*components*sizeof(float)); in main() 176 imgwidth = spec.full_width; in main() 178 std::cerr << "cropping to " << imgwidth; in main() 188 croppedimg.resize(imgwidth*imgheight*kchannels.size()); in main() 202 current_pixel_x < imgwidth) in main() 208 croppedimg[(current_pixel_y*imgwidth*kchannels.size()) in main() 219 spec.width = imgwidth; in main() [all …]
|
/dports/graphics/py-opencolorio/OpenColorIO-1.1.1/src/apps/ocioconvert/ |
H A D | main.cpp | 115 int imgwidth = 0; in main() local 144 imgwidth = spec.width; in main() 148 img.resize(imgwidth*imgheight*components); in main() 149 memset(&img[0], 0, imgwidth*imgheight*components*sizeof(float)); in main() 176 imgwidth = spec.full_width; in main() 178 std::cerr << "cropping to " << imgwidth; in main() 188 croppedimg.resize(imgwidth*imgheight*kchannels.size()); in main() 202 current_pixel_x < imgwidth) in main() 208 croppedimg[(current_pixel_y*imgwidth*kchannels.size()) in main() 219 spec.width = imgwidth; in main() [all …]
|
/dports/www/moodle311/moodle/iplookup/ |
H A D | index.php | 82 $imgwidth = 620; variable 87 $dx = round((($info['longitude'] + 180) * ($imgwidth / 360)) - $imgwidth - $dotwidth/2); 90 echo '<div id="map" style="width:'.($imgwidth+$dotwidth).'px; height:'.$imgheight.'px;">'; 91 echo '<img src="earth.jpeg" style="width:'.$imgwidth.'px; height:'.$imgheight.'px" alt="" />';
|
/dports/www/moodle310/moodle/iplookup/ |
H A D | index.php | 82 $imgwidth = 620; variable 87 $dx = round((($info['longitude'] + 180) * ($imgwidth / 360)) - $imgwidth - $dotwidth/2); 90 echo '<div id="map" style="width:'.($imgwidth+$dotwidth).'px; height:'.$imgheight.'px;">'; 91 echo '<img src="earth.jpeg" style="width:'.$imgwidth.'px; height:'.$imgheight.'px" alt="" />';
|
/dports/www/moodle39/moodle/iplookup/ |
H A D | index.php | 82 $imgwidth = 620; variable 87 $dx = round((($info['longitude'] + 180) * ($imgwidth / 360)) - $imgwidth - $dotwidth/2); 90 echo '<div id="map" style="width:'.($imgwidth+$dotwidth).'px; height:'.$imgheight.'px;">'; 91 echo '<img src="earth.jpeg" style="width:'.$imgwidth.'px; height:'.$imgheight.'px" alt="" />';
|
/dports/games/orbital_eunuchs_sniper/orbital_eunuchs_sniper-1.30/src/ |
H A D | zooms.cpp | 49 int i, j, c, d, yofs, xofs, imgwidth; in zoom() local 51 imgwidth = (int)((639 << SHIFT_AMOUNT) * scale); in zoom() 90 if (xofs + imgwidth > (800 << SHIFT_AMOUNT)) in zoom() 92 int count = 640 - (((xofs + imgwidth) - (800 << SHIFT_AMOUNT)) / xinc); in zoom() 160 int i, j, c, yofs, xofs, imgwidth; in zoom_unreal() local 163 imgwidth = (int)((640 << SHIFT_AMOUNT) * scale); in zoom_unreal() 211 if (xofs + imgwidth > (800 << SHIFT_AMOUNT)) in zoom_unreal() 213 int count = 638 - (((xofs + imgwidth) - (800 << SHIFT_AMOUNT)) / xinc); in zoom_unreal()
|
/dports/www/mybb/mybb-mybb_1829/inc/ |
H A D | functions_image.php | 32 $imgwidth = $imgdesc[0]; 39 if($imgwidth == 0 || $imgheight == 0) 44 if(($imgwidth >= $maxwidth) || ($imgheight >= $maxheight)) 46 check_thumbnail_memory($imgwidth, $imgheight, $imgtype, $imgbits, $imgchan); 79 $scale = scale_image($imgwidth, $imgheight, $maxwidth, $maxheight); 115 @imagecopyresampled($thumbim, $im, 0, 0, 0, 0, $thumbwidth, $thumbheight, $imgwidth, $imgheight); 119 @imagecopyresized($thumbim, $im, 0, 0, 0, 0, $thumbwidth, $thumbheight, $imgwidth, $imgheight);
|
/dports/x11-toolkits/wmapp/wmapp-0.0.4.3/ |
H A D | wmimage.cc | 57 const int imgwidth = icon() ? icon()->attr.width : 0; in real_display() local 65 else if (imgwidth > b_width() || imgheight > b_height()) { in real_display() 71 else if (imgwidth < b_width() || imgheight < b_height()) { in real_display() 78 WMApp::Xw.copy_rectangle(*icon(), temp, 0, 0, imgwidth, imgheight, in real_display() 79 (b_width() - imgwidth) / 2, (b_height() - imgheight) / 2); in real_display()
|
/dports/games/flightgear/flightgear-2020.3.11/utils/Modeller/ |
H A D | uv_pack.py | 74 imgwidth, imgheight = image.getSize() 75 if imgwidth != imgheight: 77 gap = (float(GAP) / imgwidth, float(GAP) / imgheight) 78 margin = (float(MARGIN) / imgwidth - gap[0] * 0.5, float(MARGIN) / imgheight - gap[1] * 0.5) 81 x0 *= imgwidth 82 x1 *= imgwidth
|
/dports/games/libretro-snes9x/snes9x-73aa348/ |
H A D | screenshot.cpp | 25 int imgwidth, imgheight; in S9xDoScreenshot() local 65 imgwidth = width; in S9xDoScreenshot() 77 imgwidth = width << 1; in S9xDoScreenshot() 84 …png_set_IHDR(png_ptr, info_ptr, imgwidth, imgheight, 8, PNG_COLOR_TYPE_RGB, PNG_INTERLACE_NONE, PN… in S9xDoScreenshot() 113 if (imgwidth != width) in S9xDoScreenshot()
|
/dports/emulators/snes9x-gtk/snes9x-1.54.1/ |
H A D | screenshot.cpp | 201 int imgwidth, imgheight; in S9xDoScreenshot() local 241 imgwidth = width; in S9xDoScreenshot() 253 imgwidth = width << 1; in S9xDoScreenshot() 260 …png_set_IHDR(png_ptr, info_ptr, imgwidth, imgheight, 8, PNG_COLOR_TYPE_RGB, PNG_INTERLACE_NONE, PN… in S9xDoScreenshot() 289 if (imgwidth != width) in S9xDoScreenshot()
|
/dports/graphics/lensfun/lensfun-0.3.95/libs/lensfun/ |
H A D | modifier.cpp | 132 lfModifier::lfModifier (float imgcrop, int imgwidth, int imgheight, in lfModifier() argument 139 Width = double (imgwidth >= 2 ? imgwidth - 1 : 1); in lfModifier() 202 float imgcrop, int imgwidth, int imgheight, lfPixelFormat pixel_format, bool reverse) in lf_modifier_create() argument 204 return new lfModifier(imgcrop, imgwidth, imgheight, pixel_format, reverse); in lf_modifier_create()
|
/dports/graphics/gimp-lensfun-plugin/GIMP-Lensfun-c5eaf97/src/ |
H A D | gimplensfun.cpp | 882 gint x1, y1, x2, y2, imgwidth, imgheight; in process_image() local 902 imgwidth = x2-x1; in process_image() 911 imgwidth, imgheight, in process_image() 916 imgwidth, imgheight, in process_image() 960 float *UndistCoord = g_new (float, imgwidth*2*channels); in process_image() 967 0, i, imgwidth, 1, in process_image() 969 channels*imgwidth); in process_image() 974 guchar *OutputBuffer = &ImgBufferOut[channels*imgwidth*i]; in process_image() 976 for (int j = 0; j < imgwidth*channels; j += channels) in process_image() 1007 …ce: %12llu ns, %d pixel -> %llu ns/pixel\n", time_diff, imgwidth*imgheight, time_diff / (imgwidth*… in process_image() [all …]
|
/dports/net-mgmt/pnp/pnp4nagios-0.6.26/share/pnp/application/controllers/ |
H A D | popup.php | 24 $this->imgwidth = pnp::clean($this->input->get('width',$this->config->conf['popup-width'])); 36 $this->template->imgwidth = $this->imgwidth;
|
/dports/net-mgmt/pnp-icinga2/pnp4nagios-0.6.26/share/pnp/application/controllers/ |
H A D | popup.php | 24 $this->imgwidth = pnp::clean($this->input->get('width',$this->config->conf['popup-width'])); 36 $this->template->imgwidth = $this->imgwidth;
|
/dports/net-mgmt/nagvis/nagvis-1.9.29/share/userfiles/gadgets/ |
H A D | std_bar.php | 106 $imgwidth = 400 * $ratio; variable 156 $img=imagecreatetruecolor($imgwidth*$cols, $imgheight*$rows); 185 $offX = ($offG % $cols) * $imgwidth; // calculate left x-axis position 187 $maxX = $imgwidth-15; 313 … ImageTTFText($img, $chrSize*2.5, 0, $offX+$imgwidth/2, $offY+$maxY-1, $oBlack, $font, $svcdesc); 317 imagestring($img, $chrSize, $offX+$imgwidth/2, $offY+$sect3, $svcdesc, $oBlack);
|
/dports/print/py-reportlab/reportlab-3.5.68/src/reportlab/pdfbase/ |
H A D | pdfutils.py | 37 imgwidth, imgheight = img.getSize() 44 append('/W %s /H %s /BPC 8 /CS /%s /F [/A85 /Fl]' % (imgwidth, imgheight,_mode2cs[img.mode])) 47 assert len(raw) == imgwidth * imgheight*_mode2bpp[img.mode], "Wrong amount of data for image" 64 imgwidth, imgheight = img.getSize() 71 append('/W %s /H %s /BPC 8 /CS /%s /F [/Fl]' % (imgwidth, imgheight,_mode2cs[img.mode])) 74 assert len(raw) == imgwidth * imgheight*_mode2bpp[img.mode], "Wrong amount of data for image"
|
/dports/graphics/blender/blender-2.91.0/source/blender/editors/space_sequencer/ |
H A D | sequencer_view.c | 163 int width, height, imgwidth, imgheight; in sequencer_view_all_preview_exec() 170 imgwidth = (scene->r.size * scene->r.xsch) / 100; in sequencer_view_all_preview_exec() 174 imgwidth = (int)(imgwidth * (scene->r.xasp / scene->r.yasp)); in sequencer_view_all_preview_exec() 176 if (((imgwidth >= width) || (imgheight >= height)) && ((width > 0) && (height > 0))) { in sequencer_view_all_preview_exec() 178 zoomX = ((float)width) / ((float)imgwidth); in sequencer_view_all_preview_exec()
|