Home
last modified time | relevance | path

Searched refs:depth (Results 1 – 5 of 5) sorted by relevance

/libtiff-4.0.7/contrib/ras/
H A Dras2tif.c83 int depth, local
172 depth = pix->pr_depth;
174 switch (depth) {
196 error("%s: bogus depth: %d\n", depth);
199 bpsl = ((depth * width + 15) >> 3) & ~1;
220 if (depth == 8) {
229 fprintf(stderr, "%dx%dx%d image, ", width, height, depth);
H A Dtif2ras.c83 int depth, local
154 depth = 1;
156 depth = 8;
160 depth = 24;
170 fprintf(stderr, "%dx%dx%d image, ", width, height, depth);
175 pix = mem_create(width, height, depth);
/libtiff-4.0.7/tools/
H A Draw2tiff.c95 int16 depth = 1; /* bytes per pixel in input image */ in main() local
154 depth = TIFFDataWidth(dtype); in main()
228 TIFFSetField(out, TIFFTAG_BITSPERSAMPLE, depth * 8); in main()
270 linebytes = width * depth; in main()
275 linebytes = width * nbands * depth; in main()
278 bufsize = width * nbands * depth; in main()
311 memcpy(buf1 + (col*nbands+band)*depth, in main()
312 buf + col * depth, depth); in main()
375 uint32 depth = TIFFDataWidth(dtype); in guessSize() local
388 imagesize = (filestat.st_size - hdr_size) / nbands / depth; in guessSize()
[all …]
/libtiff-4.0.7/archive/tools/
H A Dbmp2tiff.c234 uint16 depth = 8; /* bits per pixel in input image */ in main() local
465 depth = info_hdr.iBitCount; in main()
470 ((uint32)(1<<depth)<info_hdr.iClrUsed) in main()
471 ? (uint32) (1 << depth) in main()
474 clr_tbl_size = 1 << depth; in main()
495 _TIFFmalloc(((tmsize_t)1)<<depth * sizeof(unsigned short)); in main()
503 _TIFFmalloc(((tmsize_t)1)<<depth * sizeof(unsigned short)); in main()
511 _TIFFmalloc(((tmsize_t)1)<<depth * sizeof(unsigned short)); in main()
530 depth = info_hdr.iBitCount / nbands; in main()
535 depth = 8; in main()
[all …]
/libtiff-4.0.7/contrib/dbs/xtiff/
H A Dxtiff.c720 if ((vl->class == visual_class) && (vl->depth >= image_depth)
721 && (vl->visual->map_entries >= (1 << vl->depth))) {
723 xImageDepth = vl->depth;