Home
last modified time | relevance | path

Searched refs:bpp (Results 1 – 25 of 60) sorted by relevance

123

/plan9/sys/src/cmd/gs/src/
H A Dgxcindex.h109 #define DECLARE_LINE_ACCUM(line, bpp, xo)\ argument
110 sample_store_declare_setup(l_dptr, l_dbit, l_dbyte, line, 0, bpp)
111 #define LINE_ACCUM(color, bpp)\ argument
112 sample_store_next_any(color, l_dptr, l_dbit, bpp, l_dbyte)
113 #define LINE_ACCUM_SKIP(bpp)\ argument
114 sample_store_skip_next(l_dptr, l_dbit, bpp, l_dbyte)
115 #define LINE_ACCUM_STORE(bpp)\ argument
116 sample_store_flush(l_dptr, l_dbit, bpp, l_dbyte)
122 #define DECLARE_LINE_ACCUM_COPY(line, bpp, xo)\ argument
123 DECLARE_LINE_ACCUM(line, bpp, xo);\
[all …]
H A Dspngp.c56 memset(ss->prev_row + ss->bpp, 0, ss->row_count); in s_PNGP_reinit()
76 ss->bpp = (bits_per_pixel + 7) >> 3; in s_pngp_init()
78 prev_row = gs_alloc_bytes(st->memory, ss->bpp + ss->row_count, in s_pngp_init()
82 memset(prev_row, 0, ss->bpp); in s_pngp_init()
224 int bpp = ss->bpp; in s_PNGPE_process() local
245 memset(ss->prev, 0, bpp); in s_PNGPE_process()
254 byte *up = ss->prev_row + bpp + ss->row_count - ss->row_left; in s_PNGPE_process()
255 uint n = min(count, bpp); in s_PNGPE_process()
258 s_pngp_process(st, pw, ss->prev, pr, up - bpp, up, n); in s_PNGPE_process()
260 memcpy(up - bpp, ss->prev, n); in s_PNGPE_process()
[all …]
H A Dgdevcdj.c398 #define prn_hp_colour_device(dtype, procs, dev_name, x_dpi, y_dpi, bpp, print_page, correct)\ argument
401 (bpp == 32 ? 4 : (bpp == 1 || bpp == 8) ? 1 : 3), bpp,\
402 (bpp >= 8 ? 255 : 1), (bpp >= 8 ? 255 : bpp > 1 ? 1 : 0),\
403 (bpp >= 8 ? 256 : 2), (bpp >= 8 ? 256 : bpp > 1 ? 2 : 0),\
406 #define prn_cmyk_colour_device(dtype, procs, dev_name, x_dpi, y_dpi, bpp, print_page, correct)\ argument
409 ((bpp == 1 || bpp == 4) ? 1 : 4), bpp,\
410 (bpp > 8 ? 255 : 1), (1 << (bpp >> 2)) - 1, /* max_gray, max_color */\
411 (bpp > 8 ? 256 : 2), (bpp > 8 ? 256 : bpp > 1 ? 2 : 0),\
417 #define cdj_device(procs, dev_name, x_dpi, y_dpi, bpp, print_page, correction, shingling, depletion… argument
418 { prn_hp_colour_device(gx_device_cdj, procs, dev_name, x_dpi, y_dpi, bpp, print_page, correction),\
[all …]
H A Dgdevcd8.c630 #define prn_cmyk_colour_device(dtype, procs, dev_name, x_dpi, y_dpi, bpp, print_page, correct)\ argument
633 ((bpp == 1 || bpp == 4) ? 1 : 4), bpp,\
634 (bpp > 8 ? 255 : 1), (1 << (bpp >> 2)) - 1, /* max_gray, max_color */\
635 (bpp > 8 ? 5 : 2), (bpp > 8 ? 5 : bpp > 1 ? 2 : 0),\
639 #define prn_cmy_colour_device(dtype, procs, dev_name, x_dpi, y_dpi, bpp, print_page, correct)\ argument
642 ((bpp == 1 || bpp == 4) ? 1 : 3), bpp,\
643 (bpp > 8 ? 255 : 1), (bpp > 8 ? 255 : 1), /* max_gray, max_color */\
644 (bpp > 8 ? 5 : 2), (bpp > 8 ? 5 : bpp > 1 ? 2 : 0),\
648 #define cdj_850_device(procs, dev_name, x_dpi, y_dpi, bpp, print_page, correction, quality, paperty… argument
649 { prn_cmyk_colour_device(gx_device_cdj850, procs, dev_name, x_dpi, y_dpi, bpp, print_page, correcti…
[all …]
H A Dgdevsgi.h30 #define RLE(bpp) (ITYPE_RLE | (bpp)) argument
31 #define VERBATIM(bpp) (ITYPE_VERBATIM | (bpp)) argument
H A Dgdevmswn.c297 int bpp = old_bpp; in win_put_params() local
302 switch (code = param_read_int(plist, "BitsPerPixel", &bpp)) { in win_put_params()
304 if (dev->is_open && bpp != old_bpp) in win_put_params()
307 if (bpp != 8) in win_put_params()
309 code = win_set_bits_per_pixel(wdev, bpp); in win_put_params()
334 if (bpp != old_bpp) in win_put_params()
343 if (is_open && (bpp != old_bpp || in win_put_params()
424 win_set_bits_per_pixel(gx_device_win * wdev, int bpp) in win_set_bits_per_pixel() argument
436 switch (bpp) { in win_set_bits_per_pixel()
467 wdev->BitsPerPixel = bpp; in win_set_bits_per_pixel()
[all …]
H A Dgdevmr8n.c63 int bpp = depth >> 3; /* bytes per pixel, 1 or 3 */ in mem_gray8_rgb24_strip_copy_rop() local
94 if (bpp == 1 && in mem_gray8_rgb24_strip_copy_rop()
147 drow = scan_line_base(mdev, y) + x * bpp; in mem_gray8_rgb24_strip_copy_rop()
196 if (bpp == 1) in mem_gray8_rgb24_strip_copy_rop()
219 if (bpp == 1) in mem_gray8_rgb24_strip_copy_rop()
233 } else if (bpp == 1) { in mem_gray8_rgb24_strip_copy_rop()
273 if (bpp == 1) in mem_gray8_rgb24_strip_copy_rop()
287 } else if (bpp == 1) { in mem_gray8_rgb24_strip_copy_rop()
336 if (bpp == 1) { in mem_gray8_rgb24_strip_copy_rop()
H A Dgxiscale.c259 int bpp = dev->color_info.depth; in image_render_interpolate() local
260 uint raster = bitmap_raster(width * bpp); in image_render_interpolate()
273 DECLARE_LINE_ACCUM_COPY(out, bpp, xo); in image_render_interpolate()
309 LINE_ACCUM(color, bpp); in image_render_interpolate()
315 LINE_ACCUM(color, bpp); in image_render_interpolate()
321 LINE_ACCUM_COPY(dev, out, bpp, xo, x, raster, ry); in image_render_interpolate()
326 LINE_ACCUM_SKIP(bpp); in image_render_interpolate()
331 LINE_ACCUM_COPY(dev, out, bpp, xo, x, raster, ry); in image_render_interpolate()
H A Dgdevpcx.c159 byte bpp; /* bits per pixel per plane */ member
224 header.bpp = 1; in pcxmono_print_page()
247 header.bpp = 1; in pcx16_print_page()
264 header.bpp = 8; in pcx256_print_page()
285 header.bpp = 8; in pcx24b_print_page()
306 header.bpp = 4; in pcxcmyk_print_page()
322 uint rsize = ROUND_UP((pdev->width * phdr->bpp + 7) >> 3, 2); /* PCX format requires even */ in pcx_write_page()
H A Dgdevsgi.c62 int bpp; member
95 pcur->bpp = bdev->color_info.depth; in sgi_begin_page()
133 bpe = cur.bpp/3; in sgi_print_page()
144 for (bp = cur.data, x=0, shift = 8 - cur.bpp; in sgi_print_page()
149 switch (cur.bpp >> 3) in sgi_print_page()
155 if ((shift-=cur.bpp) < 0) in sgi_print_page()
H A Dgdevdbit.c178 int bpp = dev->color_info.depth; in gx_default_copy_alpha() local
190 out_size = bitmap_raster(width * bpp); in gx_default_copy_alpha()
202 DECLARE_LINE_ACCUM_COPY(lout, bpp, x); in gx_default_copy_alpha()
221 if (bpp < 8) { in gx_default_copy_alpha()
222 const uint bit = rx * bpp; in gx_default_copy_alpha()
226 (*src >> (8 - ((bit & 7) + bpp))) & in gx_default_copy_alpha()
227 ((1 << bpp) - 1); in gx_default_copy_alpha()
229 const byte *src = line + (rx * (bpp >> 3)); in gx_default_copy_alpha()
232 switch (bpp >> 3) { in gx_default_copy_alpha()
285 LINE_ACCUM(composite, bpp); in gx_default_copy_alpha()
[all …]
H A Dgdevpng.c572 int bpp = dev->color_info.depth; in pngalpha_copy_alpha() local
584 out_size = bitmap_raster(width * bpp); in pngalpha_copy_alpha()
596 DECLARE_LINE_ACCUM_COPY(lout, bpp, x); in pngalpha_copy_alpha()
615 const byte *src = line + (rx * (bpp >> 3)); in pngalpha_copy_alpha()
651 LINE_ACCUM(composite, bpp); in pngalpha_copy_alpha()
653 LINE_ACCUM_COPY(dev, lout, bpp, x, rx, raster, ry); in pngalpha_copy_alpha()
/plan9/sys/src/cmd/vnc/
H A Dcolor.c114 int bpp, depth; in choosecolor() local
117 bpp = screen->depth; in choosecolor()
118 if((bpp / 8) * 8 != bpp) in choosecolor()
124 if(bpp == 24){ in choosecolor()
127 bpp = 32; in choosecolor()
135 bpp = 16; in choosecolor()
143 bpp = 8; in choosecolor()
151 v->bpp = bpp; in choosecolor()
161 v->bpp, v->depth, screen->chan, v->truecolor, v->bigendian); in choosecolor()
/plan9/sys/src/cmd/unix/drawterm/libmemdraw/
H A Dline.c48 int dd, easy, e, bpp, m, m0; in horline1() local
61 bpp = dst->depth; in horline1()
62 m0 = 0xFF^(0xFF>>bpp); in horline1()
63 m = m0 >> (p0.x&(7/dst->depth))*bpp; in horline1()
80 m >>= bpp; in horline1()
91 int easy, e, bpp, m, m0, dd; in verline1() local
102 bpp = dst->depth; in verline1()
103 m0 = 0xFF^(0xFF>>bpp); in verline1()
104 m = m0 >> (p0.x&(7/dst->depth))*bpp; in verline1()
121 m >>= bpp; in verline1()
[all …]
H A Ddrawtest.c192 int npr, x, y, nb, bpp; in dumpimage() local
235 bpp = img->depth; in dumpimage()
237 mask = (1ULL<<bpp)-1; in dumpimage()
260 while(nb < bpp){ in dumpimage()
265 nb -= bpp; in dumpimage()
777 int nbits, npack, bpp; in getpixel() local
785 bpp = img->depth; in getpixel()
786 if(bpp<8){ in getpixel()
794 npack = 8/bpp; in getpixel()
795 v >>= 8 - bpp*(pt.x%npack+1); in getpixel()
[all …]
/plan9/sys/src/libmemdraw/
H A Dline.c46 int dd, easy, e, bpp, m, m0; in horline1() local
59 bpp = dst->depth; in horline1()
60 m0 = 0xFF^(0xFF>>bpp); in horline1()
61 m = m0 >> (p0.x&(7/dst->depth))*bpp; in horline1()
78 m >>= bpp; in horline1()
89 int easy, e, bpp, m, m0, dd; in verline1() local
100 bpp = dst->depth; in verline1()
101 m0 = 0xFF^(0xFF>>bpp); in verline1()
102 m = m0 >> (p0.x&(7/dst->depth))*bpp; in verline1()
119 m >>= bpp; in verline1()
[all …]
H A Ddrawtest.c192 int npr, x, y, nb, bpp; in dumpimage() local
235 bpp = img->depth; in dumpimage()
237 mask = (1ULL<<bpp)-1; in dumpimage()
260 while(nb < bpp){ in dumpimage()
265 nb -= bpp; in dumpimage()
777 int nbits, npack, bpp; in getpixel() local
785 bpp = img->depth; in getpixel()
786 if(bpp<8){ in getpixel()
794 npack = 8/bpp; in getpixel()
795 v >>= 8 - bpp*(pt.x%npack+1); in getpixel()
[all …]
/plan9/sys/src/cmd/gs/lib/
H A Dunix-lpr.sh79 bpp="`echo ${device} | sed 's/.*\.\([0-9][0-9]*\)$/\1/'`"
80 if test "$bpp" = "${device}"
82 bpp=1
84 device=`basename ${device} .$bpp`
157 -dBitsPerPixel=${bpp} $colorspec \
/plan9/sys/src/cmd/gs/libpng/
H A Dpnggccrd.c2776 int bpp; in png_read_filter_row_mmx_avg() local
2781 bpp = (row_info->pixel_depth + 7) >> 3; // get # bytes per pixel in png_read_filter_row_mmx_avg()
2850 : "0" (bpp), // ecx // input regs in png_read_filter_row_mmx_avg()
2863 switch (bpp) in png_read_filter_row_mmx_avg()
2986 _ShiftBpp.use = bpp << 3; in png_read_filter_row_mmx_avg()
3257 : "0" (bpp), // ecx // input regs in png_read_filter_row_mmx_avg()
3416 : "0" (bpp), // ecx // input regs in png_read_filter_row_mmx_avg()
3444 int bpp; in png_read_filter_row_mmx_paeth() local
3449 bpp = (row_info->pixel_depth + 7) >> 3; // Get # bytes per pixel in png_read_filter_row_mmx_paeth()
3571 : "0" (bpp), // ecx // input regs in png_read_filter_row_mmx_paeth()
[all …]
/plan9/sys/src/cmd/jpg/
H A Dreadtga.c30 int bpp; /* bits per pixel of image: 16, 24, or 32 */ member
95 if((h->bpp = Bgetc(bp)) == -1) in rdhdr()
159 rgba(Biobuf *bp, int bpp, uchar *r, uchar *g, uchar *b, int num) in rgba() argument
164 switch(bpp){ in rgba()
202 rgba_rle(Biobuf *bp, int bpp, uchar *r, uchar *g, uchar *b, int num) in rgba_rle() argument
213 if(rgba(bp, bpp, r, g, b, 1) != 1) in rgba_rle()
223 if(rgba(bp, bpp, r, g, b, len) != len) in rgba_rle()
315 fprint(2, "bpp=%d\n", h->bpp); in Breadtga()
355 if(rgba(bp, h->bpp, r, g, b, num) != num){ in Breadtga()
367 if((n = rgba_rle(bp, h->bpp, r, g, b, num)) != num){ in Breadtga()
H A Dreadbmp.c464 bmih.bpp = r16(b); in ReadBMP()
470 bmih.bpp = r16(b); in ReadBMP()
479 if(bmih.bpp < 16) { in ReadBMP()
484 num_coltab = 1 << bmih.bpp; in ReadBMP()
486 (bmih.bpp == 16 || bmih.bpp == 32)) in ReadBMP()
504 colours = bmih.bpp; in ReadBMP()
/plan9/sys/src/cmd/aux/vga/
H A Dradeon.c311 int bpp; in radeon_init_crtc_registers() local
317 bpp = 0; in radeon_init_crtc_registers()
323 bpp = 8; in radeon_init_crtc_registers()
328 bpp = 8; in radeon_init_crtc_registers()
333 bpp = 16; in radeon_init_crtc_registers()
338 bpp = 16; in radeon_init_crtc_registers()
343 bpp = 24; in radeon_init_crtc_registers()
348 bpp = 32; in radeon_init_crtc_registers()
356 mode->z, format, bpp, dac6bit? "true": "false"); in radeon_init_crtc_registers()
389 radeon->crtc_pitch = (mode->x * bpp + bpp * 8 - 1) / (bpp * 8); in radeon_init_crtc_registers()
H A Dvision964.c31 int sid, dbl, bpp, divide; in init() local
82 bpp = 4; in init()
84 bpp = mode->z; in init()
85 divide = sid/(dbl*bpp); in init()
H A Dvision968.c38 int sid, dbl, bpp, divide; in init() local
89 bpp = 4; in init()
91 bpp = mode->z; in init()
92 divide = sid/(dbl*bpp); in init()
/plan9/sys/src/ape/cmd/pdksh/
H A Dalloc.c407 Block *bp, *bpp; local
431 bpp = ap->freelist->prev;
433 if (bp->prev != bpp) {
489 bpp = bp;
517 Block *bpp; local
519 bpp = ap->freelist->prev;
532 if (bp->prev != bpp || bp->next->prev != bp)
535 bp, bp->prev, bp->next, bpp);
583 bpp = bp;

123