Home
last modified time | relevance | path

Searched refs:imgw (Results 1 – 25 of 267) sorted by relevance

1234567891011

/dports/multimedia/blind/blind-1.1/src/
H A Dblind-extend.c17 size_t n, m, imgw, imgh, rown; in main() local
53 imgw = stream.width + left; in main()
54 if (imgw > SIZE_MAX - right) in main()
56 imgw += right; in main()
63 echeck_frame_size(imgw, imgh, stream.pixel_size, "output", "<stdout>"); in main()
64 m = imgh * (imgw *= stream.pixel_size); in main()
84 memcpy(image + left + (y + top) * imgw, buf + y * rown, rown); in main()
87 for (x = 0; x < imgw; x++) in main()
88 image[x + (y + top) * imgw] = buf[(x + xoff) % rown + y * rown]; in main()
90 memcpy(image + y * imgw, image + ((y + yoff) % stream.height + top) * imgw, imgw); in main()
[all …]
H A Dblind-transpose.c17 size_t n, imgw, srcw, srch, ps, x, y, i, b, dx; in main() local
22 imgw = srch = stream.height; in main()
24 stream.width = imgw; in main()
34 srcw *= dx = imgw * ps; in main()
35 imgw *= ps; in main()
/dports/devel/godot2-tools/godot-2.1.6-stable/modules/etc1/
H A Dimage_etc.cpp39 int imgw = p_img->get_width(); in _decompress_etc() local
50 dst.resize(dst.size() + imgw * imgh * 3); in _decompress_etc()
54 uint8_t *wptr = &w[dst.size() - imgw * imgh * 3]; in _decompress_etc()
56 int bw = MAX(imgw / 4, 1); in _decompress_etc()
68 int maxx = MIN(imgw, 4); in _decompress_etc()
85 imgw = MAX(1, imgw / 2); in _decompress_etc()
100 int imgw = img.get_width(), imgh = img.get_height(); in _compress_etc() local
102 ERR_FAIL_COND(next_power_of_2(imgw) != imgw || next_power_of_2(imgh) != imgh); in _compress_etc()
121 int bw = MAX(imgw / 4, 1); in _compress_etc()
142 int maxx = MIN(imgw, 4); in _compress_etc()
[all …]
/dports/devel/godot2/godot-2.1.6-stable/modules/etc1/
H A Dimage_etc.cpp39 int imgw = p_img->get_width(); in _decompress_etc() local
50 dst.resize(dst.size() + imgw * imgh * 3); in _decompress_etc()
54 uint8_t *wptr = &w[dst.size() - imgw * imgh * 3]; in _decompress_etc()
56 int bw = MAX(imgw / 4, 1); in _decompress_etc()
68 int maxx = MIN(imgw, 4); in _decompress_etc()
85 imgw = MAX(1, imgw / 2); in _decompress_etc()
100 int imgw = img.get_width(), imgh = img.get_height(); in _compress_etc() local
102 ERR_FAIL_COND(next_power_of_2(imgw) != imgw || next_power_of_2(imgh) != imgh); in _compress_etc()
121 int bw = MAX(imgw / 4, 1); in _compress_etc()
142 int maxx = MIN(imgw, 4); in _compress_etc()
[all …]
/dports/astro/astrometry/astrometry.net-0.85/util/
H A Dremovelines_general.py44 houghnorm *= (rstep * len(x) / (imgw*imgh))
47 def clip_to_image(r, t, imgw, imgh): argument
53 y1 = ((r*s >= 0) * (r*s < imgw)) * imgh
54 x0 = x1 = clip(r, 0, imgw)
59 x1 = imgw
62 x0 = clip((y0 - b) / m, 0, imgw)
63 x1 = clip((y1 - b) / m, 0, imgw)
78 imgw = int(ceil(max(x) - min(x)))
84 Rmax = sqrt(imgw**2 + imgh**2)
149 ) = normalized_hough(x, y, imgw, imgh,
[all …]
H A Dmatchfile_to_wcs.py14 def match_to_wcs(matchfn, row, wcsfn, imgw=0, imgh=0): argument
38 if imgw:
39 hdrs.append(('IMAGEW', imgw, 'Image width, in pixels.'))
55 parser.set_defaults(row=0, imgw=0, imgh=0)
67 match_to_wcs(matchfn, options.row, wcsfn, options.imgw, options.imgh)
/dports/devel/godot/godot-3.2.3-stable/modules/etc/
H A Dimage_etc.cpp160 uint32_t imgw = p_img->get_width(), imgh = p_img->get_height(); in _compress_etc() local
170 if (next_power_of_2(imgw) != imgw || next_power_of_2(imgh) != imgh) { in _compress_etc()
172 imgw = img->get_width(); in _compress_etc()
176 if (imgw % 4 != 0 || imgh % 4 != 0) { in _compress_etc()
177 if (imgw % 4) { in _compress_etc()
178 imgw += 4 - imgw % 4; in _compress_etc()
184 img->resize(imgw, imgh); in _compress_etc()
191 …unsigned int target_size = Image::get_image_data_size(imgw, imgh, etc_format, p_img->has_mipmaps()… in _compress_etc()
192 …int mmc = 1 + (p_img->has_mipmaps() ? Image::get_image_required_mipmaps(imgw, imgh, etc_format) : … in _compress_etc()
246 p_img->create(imgw, imgh, p_img->has_mipmaps(), etc_format, dst_data); in _compress_etc()
/dports/devel/godot-tools/godot-3.2.3-stable/modules/etc/
H A Dimage_etc.cpp160 uint32_t imgw = p_img->get_width(), imgh = p_img->get_height(); in _compress_etc() local
170 if (next_power_of_2(imgw) != imgw || next_power_of_2(imgh) != imgh) { in _compress_etc()
172 imgw = img->get_width(); in _compress_etc()
176 if (imgw % 4 != 0 || imgh % 4 != 0) { in _compress_etc()
177 if (imgw % 4) { in _compress_etc()
178 imgw += 4 - imgw % 4; in _compress_etc()
184 img->resize(imgw, imgh); in _compress_etc()
191 …unsigned int target_size = Image::get_image_data_size(imgw, imgh, etc_format, p_img->has_mipmaps()… in _compress_etc()
192 …int mmc = 1 + (p_img->has_mipmaps() ? Image::get_image_required_mipmaps(imgw, imgh, etc_format) : … in _compress_etc()
246 p_img->create(imgw, imgh, p_img->has_mipmaps(), etc_format, dst_data); in _compress_etc()
/dports/audio/gogglesmm/gogglesmm-1.2.2/src/
H A DGMAnimImage.cpp93 FXint imgx,imgy,imgw=base,imgh=base; in onPaint() local
98 else if(options&JUSTIFY_RIGHT) imgx=width-padright-border-imgw; in onPaint()
99 else imgx=border+padleft+(width-padleft-padright-(border<<1)-imgw)/2; in onPaint()
104 dc.fillRectangle(imgx+imgw,border,width-border-imgx-imgw,height-(border<<1)); in onPaint()
105 dc.fillRectangle(imgx,border,imgw,imgy-border); in onPaint()
106 dc.fillRectangle(imgx,imgy+imgh,imgw,height-border-imgy-imgh); in onPaint()
107 dc.drawArea(image,(index%nrow)*imgw,(index/nrow)*imgh,imgw,imgh,imgx,imgy); in onPaint()
/dports/math/reduce/Reduce-svn5758-src/csl/fox/src/
H A DFXImageFrame.cpp109 FXint imgx,imgy,imgw,imgh; in onPaint() local
112 imgw=image->getWidth(); in onPaint()
115 else if(options&JUSTIFY_RIGHT) imgx=width-padright-border-imgw; in onPaint()
116 else imgx=border+padleft+(width-padleft-padright-(border<<1)-imgw)/2; in onPaint()
121 dc.fillRectangle(imgx+imgw,border,width-border-imgx-imgw,height-(border<<1)); in onPaint()
122 dc.fillRectangle(imgx,border,imgw,imgy-border); in onPaint()
123 dc.fillRectangle(imgx,imgy+imgh,imgw,height-border-imgy-imgh); in onPaint()
H A DFXBitmapFrame.cpp113 FXint imgx,imgy,imgw,imgh; in onPaint() local
116 imgw=bitmap->getWidth(); in onPaint()
119 else if(options&JUSTIFY_RIGHT) imgx=width-padright-border-imgw; in onPaint()
120 else imgx=border+padleft+(width-padleft-padright-(border<<1)-imgw)/2; in onPaint()
125 dc.fillRectangle(imgx+imgw,border,width-border-imgx-imgw,height-(border<<1)); in onPaint()
126 dc.fillRectangle(imgx,border,imgw,imgy-border); in onPaint()
127 dc.fillRectangle(imgx,imgy+imgh,imgw,height-border-imgy-imgh); in onPaint()
/dports/audio/gogglesmm/gogglesmm-1.2.2/cfox/lib/
H A DFXImageFrame.cpp111 FXint imgx,imgy,imgw,imgh; in onPaint() local
114 imgw=image->getWidth(); in onPaint()
117 else if(options&JUSTIFY_RIGHT) imgx=width-padright-border-imgw; in onPaint()
118 else imgx=border+padleft+(width-padleft-padright-(border<<1)-imgw)/2; in onPaint()
123 dc.fillRectangle(imgx+imgw,border,width-border-imgx-imgw,height-(border<<1)); in onPaint()
124 dc.fillRectangle(imgx,border,imgw,imgy-border); in onPaint()
125 dc.fillRectangle(imgx,imgy+imgh,imgw,height-border-imgy-imgh); in onPaint()
H A DFXBitmapFrame.cpp116 FXint imgx,imgy,imgw,imgh; in onPaint() local
119 imgw=bitmap->getWidth(); in onPaint()
122 else if(options&JUSTIFY_RIGHT) imgx=width-padright-border-imgw; in onPaint()
123 else imgx=border+padleft+(width-padleft-padright-(border<<1)-imgw)/2; in onPaint()
128 dc.fillRectangle(imgx+imgw,border,width-border-imgx-imgw,height-(border<<1)); in onPaint()
129 dc.fillRectangle(imgx,border,imgw,imgy-border); in onPaint()
130 dc.fillRectangle(imgx,imgy+imgh,imgw,height-border-imgy-imgh); in onPaint()
/dports/x11-toolkits/fox14/fox-1.4.35/src/
H A DFXImageFrame.cpp109 FXint imgx,imgy,imgw,imgh; in onPaint() local
112 imgw=image->getWidth(); in onPaint()
115 else if(options&JUSTIFY_RIGHT) imgx=width-padright-border-imgw; in onPaint()
116 else imgx=border+padleft+(width-padleft-padright-(border<<1)-imgw)/2; in onPaint()
121 dc.fillRectangle(imgx+imgw,border,width-border-imgx-imgw,height-(border<<1)); in onPaint()
122 dc.fillRectangle(imgx,border,imgw,imgy-border); in onPaint()
123 dc.fillRectangle(imgx,imgy+imgh,imgw,height-border-imgy-imgh); in onPaint()
H A DFXBitmapFrame.cpp113 FXint imgx,imgy,imgw,imgh; in onPaint() local
116 imgw=bitmap->getWidth(); in onPaint()
119 else if(options&JUSTIFY_RIGHT) imgx=width-padright-border-imgw; in onPaint()
120 else imgx=border+padleft+(width-padleft-padright-(border<<1)-imgw)/2; in onPaint()
125 dc.fillRectangle(imgx+imgw,border,width-border-imgx-imgw,height-(border<<1)); in onPaint()
126 dc.fillRectangle(imgx,border,imgw,imgy-border); in onPaint()
127 dc.fillRectangle(imgx,imgy+imgh,imgw,height-border-imgy-imgh); in onPaint()
/dports/x11-toolkits/fox16/fox-1.6.57/src/
H A DFXImageFrame.cpp109 FXint imgx,imgy,imgw,imgh; in onPaint() local
112 imgw=image->getWidth(); in onPaint()
115 else if(options&JUSTIFY_RIGHT) imgx=width-padright-border-imgw; in onPaint()
116 else imgx=border+padleft+(width-padleft-padright-(border<<1)-imgw)/2; in onPaint()
121 dc.fillRectangle(imgx+imgw,border,width-border-imgx-imgw,height-(border<<1)); in onPaint()
122 dc.fillRectangle(imgx,border,imgw,imgy-border); in onPaint()
123 dc.fillRectangle(imgx,imgy+imgh,imgw,height-border-imgy-imgh); in onPaint()
H A DFXBitmapFrame.cpp113 FXint imgx,imgy,imgw,imgh; in onPaint() local
116 imgw=bitmap->getWidth(); in onPaint()
119 else if(options&JUSTIFY_RIGHT) imgx=width-padright-border-imgw; in onPaint()
120 else imgx=border+padleft+(width-padleft-padright-(border<<1)-imgw)/2; in onPaint()
125 dc.fillRectangle(imgx+imgw,border,width-border-imgx-imgw,height-(border<<1)); in onPaint()
126 dc.fillRectangle(imgx,border,imgw,imgy-border); in onPaint()
127 dc.fillRectangle(imgx,imgy+imgh,imgw,height-border-imgy-imgh); in onPaint()
/dports/x11-toolkits/fox17/fox-1.7.77/lib/
H A DFXImageFrame.cpp111 FXint imgx,imgy,imgw,imgh; in onPaint() local
114 imgw=image->getWidth(); in onPaint()
117 else if(options&JUSTIFY_RIGHT) imgx=width-padright-border-imgw; in onPaint()
118 else imgx=border+padleft+(width-padleft-padright-(border<<1)-imgw)/2; in onPaint()
123 dc.fillRectangle(imgx+imgw,border,width-border-imgx-imgw,height-(border<<1)); in onPaint()
124 dc.fillRectangle(imgx,border,imgw,imgy-border); in onPaint()
125 dc.fillRectangle(imgx,imgy+imgh,imgw,height-border-imgy-imgh); in onPaint()
H A DFXBitmapFrame.cpp116 FXint imgx,imgy,imgw,imgh; in onPaint() local
119 imgw=bitmap->getWidth(); in onPaint()
122 else if(options&JUSTIFY_RIGHT) imgx=width-padright-border-imgw; in onPaint()
123 else imgx=border+padleft+(width-padleft-padright-(border<<1)-imgw)/2; in onPaint()
128 dc.fillRectangle(imgx+imgw,border,width-border-imgx-imgw,height-(border<<1)); in onPaint()
129 dc.fillRectangle(imgx,border,imgw,imgy-border); in onPaint()
130 dc.fillRectangle(imgx,imgy+imgh,imgw,height-border-imgy-imgh); in onPaint()
/dports/graphics/art/ART-1.9.3/rtgui/
H A Dimageareapanel.cc80 int imgw, imgh, x, y; in synchronize() local
81 after->imageArea->getScrollImageSize (imgw, imgh); in synchronize()
84 if (imgw > 0 && imgh > 0) { in synchronize()
89 int imgw, imgh, x, y; in synchronize() local
90 before->imageArea->getScrollImageSize (imgw, imgh); in synchronize()
93 if (imgw > 0 && imgh > 0) { in synchronize()
/dports/graphics/rawtherapee/rawtherapee-5.8/rtgui/
H A Dimageareapanel.cc80 int imgw, imgh, x, y; in synchronize() local
81 after->imageArea->getScrollImageSize (imgw, imgh); in synchronize()
84 if (imgw > 0 && imgh > 0) { in synchronize()
89 int imgw, imgh, x, y; in synchronize() local
90 before->imageArea->getScrollImageSize (imgw, imgh); in synchronize()
93 if (imgw > 0 && imgh > 0) { in synchronize()
/dports/graphics/azpainterb/azpainterb-1.1.3/src/draw/
H A Ddraw_load_adw.c64 uint16_t wsize,imgw,imgh,dpi,layernum,layersel,layerinfosize,name[25],tx,ty; in _load_ver2() local
80 &wsize, &imgw, &imgh, &dpi, &layernum, &layersel, &layerinfosize)) in _load_ver2()
87 if(!drawImage_new(APP_DRAW, imgw, imgh, dpi, FALSE)) in _load_ver2()
213 uint16_t imgw,imgh,layernum,layercnt,layersel; in _load_ver1() local
223 &imgw, &imgh, &layernum, &layercnt, &layersel, &comp)) in _load_ver1()
236 if(!drawImage_new(APP_DRAW, imgw, imgh, -1, FALSE)) in _load_ver1()
242 p->tmpbuf = (uint8_t *)mMalloc(imgw << 2, FALSE); in _load_ver1()
247 pitch = (imgw + 3) & (~3); in _load_ver1()
260 img = TileImage_new(TILEIMAGE_COLTYPE_RGBA, imgw, imgh); in _load_ver1()
293 TileImage_setRowImage_forA8(img, p->tmpbuf, iy, imgw, imgh, col); in _load_ver1()
/dports/multimedia/mencoder/mplayer-export-2021-12-29/libmpcodecs/
H A Dvf_bmovl.c248 int imgw,imgh,imgx,imgy,clear,imgalpha,pxsz=1,command; in put_image() local
276 imgw, imgh, imgx, imgy, imgalpha); in put_image()
277 if(imgw==0 && imgh==0) vf->priv->opaque=FALSE; in put_image()
282 &imgw, &imgh, &imgx, &imgy, &imgalpha, &clear); in put_image()
284 imgw, imgh, imgx, imgy, imgalpha, clear); in put_image()
286 buffer = malloc(imgw*imgh*pxsz); in put_image()
292 want = (imgw*imgh*pxsz); in put_image()
321 vf->priv->x2 = av_clip(imgx + imgw, vf->priv->x2, vf->priv->w); in put_image()
326 sscanf( args, "%d %d %d %d", &imgw, &imgh, &imgx, &imgy); in put_image()
345 if( (imgx <= vf->priv->x1) && ( (imgx+imgw) >= vf->priv->x1) ) in put_image()
[all …]
/dports/multimedia/mplayer/mplayer-export-2021-12-29/libmpcodecs/
H A Dvf_bmovl.c248 int imgw,imgh,imgx,imgy,clear,imgalpha,pxsz=1,command; in put_image() local
276 imgw, imgh, imgx, imgy, imgalpha); in put_image()
277 if(imgw==0 && imgh==0) vf->priv->opaque=FALSE; in put_image()
282 &imgw, &imgh, &imgx, &imgy, &imgalpha, &clear); in put_image()
284 imgw, imgh, imgx, imgy, imgalpha, clear); in put_image()
286 buffer = malloc(imgw*imgh*pxsz); in put_image()
292 want = (imgw*imgh*pxsz); in put_image()
321 vf->priv->x2 = av_clip(imgx + imgw, vf->priv->x2, vf->priv->w); in put_image()
326 sscanf( args, "%d %d %d %d", &imgw, &imgh, &imgx, &imgy); in put_image()
345 if( (imgx <= vf->priv->x1) && ( (imgx+imgw) >= vf->priv->x1) ) in put_image()
[all …]
/dports/graphics/azpainter/azpainter-2.1.7/src/draw/
H A Ddraw_load_adw.c66 uint16_t wsize,imgw,imgh,dpi,layernum,layersel,layerinfosize,name[25],tx,ty; in _load_ver2() local
82 &wsize, &imgw, &imgh, &dpi, &layernum, &layersel, &layerinfosize)) in _load_ver2()
89 if(!drawImage_new(APP_DRAW, imgw, imgh, dpi, -1)) in _load_ver2()
219 uint16_t imgw,imgh,layernum,layercnt,layersel; in _load_ver1() local
231 &imgw, &imgh, &layernum, &layercnt, &layersel, &comp)) in _load_ver1()
244 if(!drawImage_new(APP_DRAW, imgw, imgh, -1, -1)) in _load_ver1()
249 pitch = (imgw + 3) & (~3); in _load_ver1()
269 img = TileImage_new(TILEIMAGE_COLTYPE_ALPHA16, imgw, imgh); in _load_ver1()
309 for(ix = 0; ix < imgw; ix++, ps++) in _load_ver1()

1234567891011