| /plan9/sys/src/cmd/gs/jpeg/ |
| H A D | rdrle.c | 83 rle_source_ptr source = (rle_source_ptr) sinfo; in start_input_rle() local 90 source->header = *rle_hdr_init(NULL); in start_input_rle() 91 source->header.rle_file = source->pub.input_file; in start_input_rle() 92 switch (rle_get_setup(&(source->header))) { in start_input_rle() 115 width = source->header.xmax - source->header.xmin + 1; in start_input_rle() 116 height = source->header.ymax - source->header.ymin + 1; in start_input_rle() 117 source->header.xmin = 0; /* realign horizontally */ in start_input_rle() 118 source->header.xmax = width-1; in start_input_rle() 124 if (source->header.ncolors == 1 && source->header.ncmap == 0) { in start_input_rle() 125 source->visual = GRAYSCALE; in start_input_rle() [all …]
|
| H A D | rdppm.c | 144 ppm_source_ptr source = (ppm_source_ptr) sinfo; in get_text_gray_row() local 145 FILE * infile = source->pub.input_file; in get_text_gray_row() 147 register JSAMPLE *rescale = source->rescale; in get_text_gray_row() 150 ptr = source->pub.buffer[0]; in get_text_gray_row() 162 ppm_source_ptr source = (ppm_source_ptr) sinfo; in get_text_rgb_row() local 163 FILE * infile = source->pub.input_file; in get_text_rgb_row() 165 register JSAMPLE *rescale = source->rescale; in get_text_rgb_row() 168 ptr = source->pub.buffer[0]; in get_text_rgb_row() 182 ppm_source_ptr source = (ppm_source_ptr) sinfo; in get_scaled_gray_row() local 185 register JSAMPLE *rescale = source->rescale; in get_scaled_gray_row() [all …]
|
| H A D | rdtarga.c | 177 tga_source_ptr source = (tga_source_ptr) sinfo; in get_8bit_gray_row() local 181 ptr = source->pub.buffer[0]; in get_8bit_gray_row() 183 (*source->read_pixel) (source); /* Load next pixel into tga_pixel */ in get_8bit_gray_row() 184 *ptr++ = (JSAMPLE) UCH(source->tga_pixel[0]); in get_8bit_gray_row() 193 tga_source_ptr source = (tga_source_ptr) sinfo; in get_8bit_row() local 197 register JSAMPARRAY colormap = source->colormap; in get_8bit_row() 199 ptr = source->pub.buffer[0]; in get_8bit_row() 201 (*source->read_pixel) (source); /* Load next pixel into tga_pixel */ in get_8bit_row() 202 t = UCH(source->tga_pixel[0]); in get_8bit_row() 214 tga_source_ptr source = (tga_source_ptr) sinfo; in get_16bit_row() local [all …]
|
| H A D | rdbmp.c | 122 bmp_source_ptr source = (bmp_source_ptr) sinfo; in get_8bit_row() local 123 register JSAMPARRAY colormap = source->colormap; in get_8bit_row() 130 source->source_row--; in get_8bit_row() 132 ((j_common_ptr) cinfo, source->whole_image, in get_8bit_row() 133 source->source_row, (JDIMENSION) 1, FALSE); in get_8bit_row() 137 outptr = source->pub.buffer[0]; in get_8bit_row() 153 bmp_source_ptr source = (bmp_source_ptr) sinfo; in get_24bit_row() local 159 source->source_row--; in get_24bit_row() 161 ((j_common_ptr) cinfo, source->whole_image, in get_24bit_row() 162 source->source_row, (JDIMENSION) 1, FALSE); in get_24bit_row() [all …]
|
| /plan9/sys/src/ape/cmd/pax/ |
| H A D | wildmat.c | 93 static int star(char *source, char *pattern) in star() argument 97 static int star(source, pattern) in star() 98 char *source; /* source operand */ in star() 103 while (!wildmat(pattern, source)) { 104 if (*++source == '\0') { 138 int wildmat(char *pattern, char *source) in wildmat() argument 142 int wildmat(pattern, source) in wildmat() 144 char *source; /* source operand */ 152 for (; *pattern; source++, pattern++) { 159 if (*source != *pattern) { [all …]
|
| /plan9/sys/src/cmd/gs/src/ |
| H A D | gdevrops.c | 151 gx_rop_source_t source; in rop_texture_fill_rectangle() local 153 source.sdata = NULL; in rop_texture_fill_rectangle() 154 source.sourcex = 0; in rop_texture_fill_rectangle() 155 source.sraster = 0; in rop_texture_fill_rectangle() 156 source.id = gx_no_bitmap_id; in rop_texture_fill_rectangle() 157 source.scolors[0] = source.scolors[1] = color; in rop_texture_fill_rectangle() 158 source.use_scolors = true; in rop_texture_fill_rectangle() 161 rtdev->log_op, &source); in rop_texture_fill_rectangle() 172 gx_rop_source_t source; in rop_texture_copy_mono() local 175 source.sdata = data; in rop_texture_copy_mono() [all …]
|
| H A D | gxp1fill.c | 41 const gx_rop_source_t *source; member 201 const gx_rop_source_t *source = ptfs->source; in tile_colored_fill() local 212 if (source == NULL && lop_no_S_is_T(lop)) in tile_colored_fill() 245 const gx_rop_source_t * source) in gx_dc_pattern_fill_rectangle() argument 248 const gx_rop_source_t *rop_source = source; in gx_dc_pattern_fill_rectangle() 272 if (source == NULL && lop_no_S_is_T(lop)) in gx_dc_pattern_fill_rectangle() 285 state.source = source; in gx_dc_pattern_fill_rectangle() 300 if (ptfs->source == NULL) in tile_masked_fill() 304 const gx_rop_source_t *source = ptfs->source; in tile_masked_fill() local 307 step_source.sdata = source->sdata + (y - ptfs->y0) * source->sraster; in tile_masked_fill() [all …]
|
| H A D | gsbitops.c | 451 const bits_plane_t *source /*read*/, int shift, int width, int height) in bits_extract_plane() argument 453 int source_depth = source->depth; in bits_extract_plane() 454 int source_bit = source->x * source_depth; in bits_extract_plane() 455 const byte *source_row = source->data.read + (source_bit >> 3); in bits_extract_plane() 474 (dest_depth == 1 && !(source->raster & 3) && in bits_extract_plane() 475 !(source->x & 1) ? EXTRACT_4_TO_1 : in bits_extract_plane() 487 ++y, source_row += source->raster, dest_row += dest->raster in bits_extract_plane() 493 const byte *source = source_row; in bits_extract_plane() local 497 for (x = width; x >= 8; source += 4, x -= 8) { in bits_extract_plane() 499 (*(const bits32 *)source >> shift) & 0x11111111; in bits_extract_plane() [all …]
|
| H A D | gsimage.c | 56 gs_const_string source; member 129 ENUM_RETURN_STRING_PTR(gs_image_enum, planes[index].source); in ENUM_PTRS_WITH() 145 RELOC_CONST_STRING_PTR(gs_image_enum, planes[i].source); in RELOC_PTRS_WITH() 317 penum->planes[i].source.size = 0; /* for gs_image_next_planes */ in gs_image_common_init() 355 penum->planes[i].pos + penum->planes[i].source.size < in gs_image_planes_wanted() 399 if (penum->planes[px].source.size != 0) in gs_image_next() 428 pi, (ulong)penum->planes[pi].source.data, in gs_image_next_planes() 429 penum->planes[pi].source.size, penum->planes[pi].pos, in gs_image_next_planes() 436 penum->planes[i].source.size = plane_data[i].size; in gs_image_next_planes() 437 penum->planes[i].source.data = plane_data[i].data; in gs_image_next_planes() [all …]
|
| H A D | gsparams.c | 44 unsigned source, /* number to put to buffer */ 49 const byte * source, /* bytes to put to buffer */ 346 unsigned source, /* number to put to buffer */ in wb_put_word() argument 351 byte chunk = source & 0x7f; in wb_put_word() 353 if (source >= 0x80) in wb_put_word() 355 source >>= 7; in wb_put_word() 360 while (source != 0); in wb_put_word() 366 const byte * source, /* bytes to put to buffer */ in wb_put_bytes() argument 373 if (dest->buf != source) in wb_put_bytes() 374 memcpy(dest->buf, source, source_sizeof); in wb_put_bytes()
|
| H A D | dwimg.c | 81 void image_convert_line(IMAGE *img, unsigned char *dest, unsigned char *source); 83 unsigned char *source); 85 unsigned char *source); 87 unsigned char *source); 89 unsigned char *source); 91 unsigned char *source, IMAGE_DEVICEN *devicen, int devicen_gray); 93 unsigned char *source, IMAGE_DEVICEN *devicen, int devicen_gray); 95 unsigned char *source, IMAGE_DEVICEN *devicen, int devicen_gray); 692 image_16BGR555_to_24BGR(int width, unsigned char *dest, unsigned char *source) in image_16BGR555_to_24BGR() argument 698 w = source[0] + (source[1] << 8); in image_16BGR555_to_24BGR() [all …]
|
| H A D | gdevplnx.c | 288 bits_plane_t dest, source; in extract_partial_tile() local 295 source.data.read = pts->data + pts->offset.y * pts->raster; in extract_partial_tile() 296 source.raster = pts->raster; in extract_partial_tile() 297 source.depth = edev->color_info.depth; in extract_partial_tile() 298 source.x = pts->data_x + pts->offset.x; in extract_partial_tile() 300 bits_extract_plane(&dest, &source, edev->plane.shift, in extract_partial_tile() 731 } source, texture; in plane_strip_copy_rop() local 747 source.colors = 0; in plane_strip_copy_rop() 749 source.pixels[0] = COLOR_PIXEL(edev, scolors[0]); in plane_strip_copy_rop() 750 source.pixels[1] = COLOR_PIXEL(edev, scolors[1]); in plane_strip_copy_rop() [all …]
|
| H A D | gxdcolor.c | 252 const gx_rop_source_t *source) in gx_dc_no_fill_rectangle() argument 261 return gx_dc_pure_fill_rectangle(&filler, x, y, w, h, dev, lop, source); in gx_dc_no_fill_rectangle() 329 const gx_rop_source_t * source) in gx_dc_null_fill_rectangle() argument 384 const gx_rop_source_t * source) in gx_dc_pure_fill_rectangle() argument 386 if (source == NULL && lop_no_S_is_T(lop)) in gx_dc_pure_fill_rectangle() 394 if (source == NULL) in gx_dc_pure_fill_rectangle() 395 set_rop_no_source(source, no_source, dev); in gx_dc_pure_fill_rectangle() 397 (dev, source->sdata, source->sourcex, source->sraster, in gx_dc_pure_fill_rectangle() 398 source->id, (source->use_scolors ? source->scolors : NULL), in gx_dc_pure_fill_rectangle()
|
| /plan9/sys/src/cmd/vac/ |
| H A D | file.c | 44 VtFile *source; /* actual data */ member 68 vtfileclose(f->source); in filefree() 81 if(f->source == nil in chksource() 228 if(f->source && vtfilelock(f->source, -1) >= 0){ in vacfiledecref() 229 vtfileflush(f->source); in vacfiledecref() 230 vtfileunlock(f->source); in vacfiledecref() 328 root->source = r0; in _vacfileroot() 438 if((r = vtfileopen(f->source, offset, mode)) == nil) in fileopensource() 506 if(vtfilelock(f->source, f->mode) < 0) in vacfilewalk() 509 ff->source = fileopensource(f, ff->dir.entry, ff->dir.gen, 1, ff->mode); in vacfilewalk() [all …]
|
| /plan9/sys/src/cmd/gs/zlib/ |
| H A D | compress.c | 22 int ZEXPORT compress2 (dest, destLen, source, sourceLen, level) in compress2() argument 25 const Bytef *source; 32 stream.next_in = (Bytef*)source; 62 int ZEXPORT compress (dest, destLen, source, sourceLen) in compress() argument 65 const Bytef *source; 68 return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION);
|
| H A D | uncompr.c | 26 int ZEXPORT uncompress (dest, destLen, source, sourceLen) in uncompress() argument 29 const Bytef *source; 35 stream.next_in = (Bytef*)source;
|
| /plan9/sys/src/cmd/fossil/ |
| H A D | file.c | 30 Source *source; member 66 sourceClose(f->source); in fileFree() 162 root->source = r0; in fileRoot() 212 if(!sourceLock(f->source, mode)) in fileOpenSource() 214 r = sourceOpen(f->source, offset, mode, issnapshot); in fileOpenSource() 215 sourceUnlock(f->source); in fileOpenSource() 228 f->source->fs->name, rname, fname, r->dir, dir); in fileOpenSource() 298 ff->source = fileOpenSource(f, ff->dir.entry, ff->dir.gen, in _fileWalk() 302 if(ff->source == nil || ff->msource == nil) in _fileWalk() 305 ff->source = fileOpenSource(f, ff->dir.entry, ff->dir.gen, in _fileWalk() [all …]
|
| H A D | check.c | 556 chkDir(Fsck *chk, char *name, Source *source, Source *meta) in chkDir() argument 569 if(!chk->useventi && globalToLocal(source->score)==NilBlock && in chkDir() 573 if(!sourceLock2(source, meta, OReadOnly)){ in chkDir() 577 if(!sourceGetEntry(source, &e1) || !sourceGetEntry(meta, &e2)){ in chkDir() 585 sourceUnlock(source); in chkDir() 592 bm = vtMemAllocZ(sourceGetDirSize(source)/8 + 1); in chkDir() 602 if(0) fprint(2, "source %V:%d block %d addr %d\n", source->score, in chkDir() 603 source->offset, o, b->addr); in chkDir() 646 r = openSource(chk, source, nn, bm, de.entry, in chkDir() 660 r = openSource(chk, source, nn, bm, de.entry, in chkDir() [all …]
|
| /plan9/sys/src/ape/cmd/pdksh/ |
| H A D | lex.c | 68 #define getsc() (*source->str != '\0' && *source->str != '\\' \ 69 && !backslash_skip ? *source->str++ : getsc_bn()) 71 #define getsc_() ((*source->str != '\0') ? *source->str++ : getsc__()) 143 if (source->flags & SF_ALIAS) { /* trailing ' ' in alias definition */ 144 source->flags &= ~SF_ALIAS; 183 source->areap); 186 s->next = source; 187 source = s; 749 for (s = source; s->type == SALIAS; s = s->next) 753 s = pushs(SALIAS, source->areap); [all …]
|
| H A D | io.c | 131 if (!fileline || !source || !source->file 132 || strcmp(source->file, kshname) != 0) 134 if (fileline && source && source->file != NULL) { 135 shf_fprintf(shl_out, "%s[%d]: ", source->file, 136 source->errline > 0 ? source->errline : source->line); 137 source->errline = 0;
|
| /plan9/sys/src/cmd/tcs/font/ |
| H A D | main.c | 18 } source[] = { variable 51 file = source[src].names[(size==24)? Size24:Size16]; in main() 71 source[src].mfn(from, to, chars); in main() 73 b = source[src].bfn(file, nc, chars, size, bits, &found); in main()
|
| /plan9/sys/src/cmd/bzip2/lib/ |
| H A D | buffdecompress.c | 95 char* source, in BZ_API() 104 source == NULL || in BZ_API() 115 strm.next_in = source; in BZ_API()
|
| H A D | buffcompress.c | 95 char* source, in BZ_API() 105 source == NULL || in BZ_API() 119 strm.next_in = source; in BZ_API()
|
| H A D | bzbuffcompress.c | 95 char* source, in BZ_API() 105 source == NULL || in BZ_API() 119 strm.next_in = source; in BZ_API()
|
| /plan9/sys/src/cmd/scuzz/ |
| H A D | changer.c | 22 SRmmove(ScsiReq *rp, int transport, int source, int destination, int invert) in SRmmove() argument 30 cmd[4] = source>>8; in SRmmove() 31 cmd[5] = source; in SRmmove()
|