/dports/graphics/p5-Imager/Imager-1.012/ |
H A D | tga.c | 60 size_t bytepp; member 71 int bytepp; member 166 switch (bytepp) { in color_unpack() 265 if(memcmp(buf+i*bytepp, buf+(i+1)*bytepp, bytepp) == 0) { in find_repeat() 267 if (memcmp(buf+(i+1)*bytepp, buf+(i+2)*bytepp,bytepp) == 0) in find_repeat() 295 if(memcmp(buf, buf+(i*bytepp), bytepp) != 0) return i; in find_span() 467 if (i_io_read(s->ig, buf+cp*s->bytepp, ml*s->bytepp) != ml*s->bytepp) return 0; in tga_source_read() 511 if (i_io_write(s->ig, buf+cp*s->bytepp, clen*s->bytepp) != clen*s->bytepp) return 0; in tga_dest_write() 516 tlen = find_span(buf+cp*s->bytepp, pixels-cp, s->bytepp); in tga_dest_write() 523 if (i_io_write(s->ig, buf+cp*s->bytepp, s->bytepp) != s->bytepp) return 0; in tga_dest_write() [all …]
|
/dports/graphics/zgv/zgv-5.9/src/ |
H A D | readtga.c | 66 int c,w,h,bytepp,x,y,i,cmapstart,cmaplen; in read_tga_file() local 88 bytepp=1; in read_tga_file() 92 bytepp=3; in read_tga_file() 170 if(bytepp==3 && (*output_type==1 || cfg.jpeg24bit==0)) /* dither? */ in read_tga_file() 172 bytepp=1; in read_tga_file() 182 if(WH_BAD(w,h) || (*bmap=malloc(w*(h+2)*bytepp))==NULL) in read_tga_file() 211 if(hed.type==2 && bytepp==1) in read_tga_file() 214 ptr+=bytepp*w; in read_tga_file() 249 if(hed.type==10 && bytepp==1) in read_tga_file() 265 *output_type=bytepp; in read_tga_file() [all …]
|
H A D | readpcx.c | 46 int w,h,bytepp,x,y,yy,byteline,plane,pmask; in read_pcx_file() local 71 real_bpp=0; bytepp=1; in read_pcx_file() 86 case 3: real_bpp=24; bytepp=3; break; in read_pcx_file() 104 if(bytepp==3 && (*output_type==1 || cfg.jpeg24bit==0)) /* dither? */ in read_pcx_file() 108 bytepp=1; in read_pcx_file() 130 if(WH_BAD(w,h) || (*bmap=malloc(w*(h+2)*bytepp))==NULL) in read_pcx_file() 134 memset(*bmap,0,w*h*bytepp); in read_pcx_file() 173 ditherline(ptr+yy*w*bytepp,yy,w); in read_pcx_file() 220 *output_type=bytepp; in read_pcx_file()
|
H A D | readtiff.c | 50 int bytepp=3; in read_tiff_file() local 79 bytepp=1; in read_tiff_file() 144 if(bytepp==1) in read_tiff_file() 156 *bmap=realloc(*bmap,numpix*bytepp); in read_tiff_file() 162 *output_type=bytepp; in read_tiff_file()
|
H A D | readprf.c | 129 int bytepp,ypos; in read_prf_file() local 176 bytepp=3; in read_prf_file() 181 bytepp=1; in read_prf_file() 192 if(bytepp==3 && (*output_type==1 || cfg.jpeg24bit==0)) /* dither? */ in read_prf_file() 195 bytepp=1; in read_prf_file() 244 dst=*bmap+(ypos+y)*width*bytepp; in read_prf_file() 284 *output_type=bytepp; in read_prf_file()
|
H A D | readpnm.c | 73 int c,sub,raw,w,h,maxval,bytepp,x,y,i,n,red,grn,blu,max_is_big; in read_pnm_main() local 96 bytepp=(sub==3)?3:1; in read_pnm_main() 134 bytepp=1; in read_pnm_main() 140 bytepp=3; /* grind it to 24-bit */ in read_pnm_main() 147 if(WH_BAD(w,h) || (*bmap=malloc(w*(h+2)*bytepp))==NULL) in read_pnm_main() 218 if(sub==2 && bytepp==3) in read_pnm_main() 226 if(sub==3 && bytepp==1) in read_pnm_main() 240 *output_type=bytepp; in read_pnm_main() 242 if(sub==3 && bytepp==1) in read_pnm_main()
|
H A D | readxpm.c | 98 int w,h,f,x,y,bytepp,ncols,cpp; /* cpp=chars/pixel */ in read_xpm_file() local 106 bytepp=1; in read_xpm_file() 139 bytepp=3; in read_xpm_file() 144 bytepp=1; in read_xpm_file() 372 if(WH_BAD(w,h) || (*bmap=malloc(w*(h+2)*bytepp))==NULL) in read_xpm_file() 431 if(ncols>256 && bytepp==1) in read_xpm_file() 446 *output_type=bytepp; in read_xpm_file() 448 if(ncols>256 && bytepp==1) in read_xpm_file()
|
/dports/games/doomlegacy/doomlegacy_1.48.8_source/src/hardware/ |
H A D | hw_cache.c | 217 if( bytepp<1 || bytepp > 4 ) in HWR_DrawPatchInCache() 220 for (block += col*bytepp; ncols--; block+=bytepp, xfrac+=xfracstep) in HWR_DrawPatchInCache() 298 switch (bytepp) { in HWR_DrawPatchInCache() 507 switch (bytepp) in Make_Mip_Block() 559 int bytepp; // bytes per pixel in HWR_GenerateTexture() local 581 bytepp = format2bpp[mipmap->grInfo.format]; in HWR_GenerateTexture() 627 sw_patch, bytepp ); in HWR_GenerateTexture() 630 if (bytepp==4) in HWR_GenerateTexture() 796 int bytepp; in HWR_MakePatch() local 853 bytepp = format2bpp[grMipmap->grInfo.format]; in HWR_MakePatch() [all …]
|
/dports/graphics/xfig/xfig-3.2.8a/src/ |
H A D | f_readpcx.c | 116 int i,w,h,bytepp,x,y,yy,byteline,plane,pmask; in _read_pcx() local 138 bytepp = 1; in _read_pcx() 155 bytepp = 4; in _read_pcx() 157 bytepp = 3; in _read_pcx() 178 if ((pic->pic_cache->bitmap=malloc(w*(h+2)*bytepp))==NULL) in _read_pcx() 182 memset(pic->pic_cache->bitmap, 0, w * h * bytepp); in _read_pcx()
|
/dports/print/fig2dev/fig2dev-3.2.8a/fig2dev/dev/ |
H A D | readpcx.c | 90 int w,h,bytepp,x,y,yy,byteline,plane,pmask; in _read_pcx() local 113 bytepp = 1; in _read_pcx() 127 case 3: real_bpp=24; bytepp = 3; break; in _read_pcx() 148 if ((pic->bitmap=malloc((w < 8 ? 8 : w)*(h+2)*bytepp))==NULL) in _read_pcx() 152 memset(pic->bitmap,0,w*h*bytepp); in _read_pcx()
|
/dports/print/transfig/transfig.3.2.5e/fig2dev/dev/ |
H A D | readpcx.c | 79 int w,h,bytepp,x,y,yy,byteline,plane,pmask; local 104 bytepp = 1; 118 case 3: real_bpp=24; bytepp = 3; break; 138 if ((pic->bitmap=malloc(w*(h+2)*bytepp))==NULL) 142 memset(pic->bitmap,0,w*h*bytepp);
|
/dports/www/firefox-legacy/firefox-52.8.0esr/widget/gonk/libdisplay/ |
H A D | BootAnimation.cpp | 232 uint16_t bytepp; member 396 bytepp = GetFormatBPP(outputFormat); in ReadPngFrame() 420 buf = (char *)malloc(width * (height + 1) * bytepp); in ReadPngFrame() 423 uint32_t stride = width * bytepp; in ReadPngFrame() 649 (buf->height * buf->stride * frame.bytepp) / sizeof(wchar_t)); in AnimationThread() 654 frame.width * frame.height * frame.bytepp); in AnimationThread() 660 int src_stride = frame.width * frame.bytepp; in AnimationThread() 661 int dst_stride = buf->stride * frame.bytepp; in AnimationThread() 664 char *dst = (char *) vaddr + starty * dst_stride + startx * frame.bytepp; in AnimationThread()
|
/dports/games/doomlegacy/doomlegacy_1.48.8_source/src/ |
H A D | v_video.c | 1199 width *= vid.bytepp; in V_CopyRect() 1359 drawinfo.x0bytes = vid.bytepp; in V_SetupDraw_NO_SCALESTART() 1482 desttop += vid.bytepp; in V_DrawMappedPatch() 1613 draw_x += vid.bytepp; in V_DrawMappedPatch_Box() 1782 desttop += vid.bytepp; in V_DrawScaledPatch() 2042 desttop += vid.bytepp; in V_DrawTranslucentPatch() 2137 desttop += vid.bytepp; in V_DrawPatch() 2168 width *= vid.bytepp; 2945 chwidth_bytes = chwidth * vid.bytepp; in V_Drawfont1_string() 3748 if( vid.bytepp > 1 ) in V_DrawPerspView() [all …]
|
H A D | r_draw.c | 235 offset *= vid.bytepp; in R_RecalcFuzzOffsets() 403 int bytesperpixel = vid.bytepp; // smaller code in R_Init_ViewBuffer() 520 dest += (64 * vid.bytepp); in R_FillBackScreen() 667 side * vid.bytepp, rdraw_viewheight, vid.ybytes, vid.ybytes); in R_DrawViewBorder() 670 ofs = topbytes + ((vid.width-side)*vid.bytepp); in R_DrawViewBorder() 672 side * vid.bytepp, rdraw_viewheight, vid.ybytes, vid.ybytes); in R_DrawViewBorder()
|
/dports/games/doomlegacy/doomlegacy_1.48.8_source/src/win32/ |
H A D | win_vid.c | 878 vid.bytepp = currentmode_p->bytesperpixel; in VID_SetMode() 879 vid.bitpp = (vid.bytepp==1)? 8:15; in VID_SetMode() 893 vid.bytepp = (req_bitpp + 7) >> 3; in VID_SetMode() 899 vid.bytepp = cv_scr_depth.value/8; in VID_SetMode() 902 currentmode_p->bytesperpixel = vid.bytepp; in VID_SetMode() 932 vid.bytepp = oldvid.bytepp; in VID_SetMode() 939 vid.drawmode = (vid.bytepp==1)? DRAW8PAL:DRAW15; in VID_SetMode() 940 vid.widthbytes = vid.width * vid.bytepp; in VID_SetMode() 1225 vid.bytepp = (select_bitpp + 7) >> 3; in I_RequestFullGraphics()
|
/dports/games/doomlegacy/doomlegacy_1.48.8_source/src/sdl/ |
H A D | i_video.c | 608 vid.bytepp = vidSurface->format->BytesPerPixel; in VID_SetMode_vid() 623 vid.bytepp = 2; in VID_SetMode_vid() 626 vid.bytepp = 3; in VID_SetMode_vid() 629 vid.bytepp = 4; in VID_SetMode_vid() 639 vid.ybytes = vid.width * vid.bytepp; in VID_SetMode_vid() 643 vid.ybytes = vid.width * vid.bytepp + 8; // force odd size in VID_SetMode_vid() 718 vid.widthbytes = vid.width * vid.bytepp; in VID_SetMode() 940 vid.bytepp = select_bytepp; in I_RequestFullGraphics() 998 vid.widthbytes = vid.width * vid.bytepp; in I_RequestFullGraphics()
|
/dports/games/doomlegacy/doomlegacy_1.48.8_source/src/djgppdos/ |
H A D | Vid_vesa.c | 461 vid.bytepp = currentmode_p->bytesperpixel; in VID_SetMode() 462 vid.bitpp = (vid.bytepp==1)? 8:15; in VID_SetMode() 486 vid.bytepp = oldvid.bytepp; in VID_SetMode() 492 vid.widthbytes = vid.width * vid.bytepp; in VID_SetMode() 493 vid.drawmode = (vid.bytepp==1)? DRAW8PAL:DRAW15; in VID_SetMode() 907 lvid->bytepp = currentmode_p->bytesperpixel; in VGA_InitMode() 963 lvid->bytepp = currentmode_p->bytesperpixel; in VID_VesaInitMode()
|
/dports/emulators/qemu42/qemu-4.2.1/hw/display/ |
H A D | bochs-display.c | 24 uint32_t bytepp; member 169 mode->bytepp = 2; in bochs_display_get_mode() 175 mode->bytepp = 4; in bochs_display_get_mode() 187 mode->stride = virt_width * mode->bytepp; in bochs_display_get_mode() 189 mode->offset = ((uint64_t)vbe[VBE_DISPI_INDEX_X_OFFSET] * mode->bytepp + in bochs_display_get_mode()
|
/dports/emulators/qemu/qemu-6.2.0/hw/display/ |
H A D | bochs-display.c | 25 uint32_t bytepp; 169 mode->bytepp = 2; 175 mode->bytepp = 4; 187 mode->stride = virt_width * mode->bytepp; 189 mode->offset = ((uint64_t)vbe[VBE_DISPI_INDEX_X_OFFSET] * mode->bytepp +
|
/dports/emulators/qemu60/qemu-6.0.0/hw/display/ |
H A D | bochs-display.c | 25 uint32_t bytepp; member 169 mode->bytepp = 2; in bochs_display_get_mode() 175 mode->bytepp = 4; in bochs_display_get_mode() 187 mode->stride = virt_width * mode->bytepp; in bochs_display_get_mode() 189 mode->offset = ((uint64_t)vbe[VBE_DISPI_INDEX_X_OFFSET] * mode->bytepp + in bochs_display_get_mode()
|
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/hw/display/ |
H A D | bochs-display.c | 21 uint32_t bytepp; member 166 mode->bytepp = 2; in bochs_display_get_mode() 172 mode->bytepp = 4; in bochs_display_get_mode() 184 mode->stride = virt_width * mode->bytepp; in bochs_display_get_mode() 186 mode->offset = ((uint64_t)vbe[VBE_DISPI_INDEX_X_OFFSET] * mode->bytepp + in bochs_display_get_mode()
|
/dports/emulators/qemu5/qemu-5.2.0/hw/display/ |
H A D | bochs-display.c | 25 uint32_t bytepp; member 169 mode->bytepp = 2; in bochs_display_get_mode() 175 mode->bytepp = 4; in bochs_display_get_mode() 187 mode->stride = virt_width * mode->bytepp; in bochs_display_get_mode() 189 mode->offset = ((uint64_t)vbe[VBE_DISPI_INDEX_X_OFFSET] * mode->bytepp + in bochs_display_get_mode()
|
/dports/emulators/qemu-utils/qemu-4.2.1/hw/display/ |
H A D | bochs-display.c | 24 uint32_t bytepp; member 169 mode->bytepp = 2; in bochs_display_get_mode() 175 mode->bytepp = 4; in bochs_display_get_mode() 187 mode->stride = virt_width * mode->bytepp; in bochs_display_get_mode() 189 mode->offset = ((uint64_t)vbe[VBE_DISPI_INDEX_X_OFFSET] * mode->bytepp + in bochs_display_get_mode()
|
/dports/emulators/qemu-guest-agent/qemu-5.0.1/hw/display/ |
H A D | bochs-display.c | 24 uint32_t bytepp; member 169 mode->bytepp = 2; in bochs_display_get_mode() 175 mode->bytepp = 4; in bochs_display_get_mode() 187 mode->stride = virt_width * mode->bytepp; in bochs_display_get_mode() 189 mode->offset = ((uint64_t)vbe[VBE_DISPI_INDEX_X_OFFSET] * mode->bytepp + in bochs_display_get_mode()
|
/dports/emulators/qemu-cheri/qemu-0a323821042c36e21ea80e58b9545dfc3b0cb8ef/hw/display/ |
H A D | bochs-display.c | 24 uint32_t bytepp; member 169 mode->bytepp = 2; in bochs_display_get_mode() 175 mode->bytepp = 4; in bochs_display_get_mode() 187 mode->stride = virt_width * mode->bytepp; in bochs_display_get_mode() 189 mode->offset = ((uint64_t)vbe[VBE_DISPI_INDEX_X_OFFSET] * mode->bytepp + in bochs_display_get_mode()
|