Lines Matching defs:depth
21 unsigned int * depth,
59 int depth,
172 short depth; /* what depth is this data (1-32) or ( 33-40 grayscale ) */
207 unsigned char depth = 0, lines = 20;
334 if (( image_header.depth != 8 ) && ( image_header.depth != 24 )) goto errQTimage;
338 depth = image_header.depth;
340 printf("Image info: width: %d height: %d depth: %d...\n", width, height, depth);
342 if (!(width && height && depth)) {
343 fprintf(stderr,"Err: Invalid image file header (width, height, or depth is 0)\n");
358 if ( kraw && image_header.depth == 24 )
366 if ( image_header.depth == 24 )
376 depth = 1;
378 depth = 3;
388 depth = 3;
394 depth = 1;
398 printf("Converted %d pixels%s...\n", pixels/depth, ((grey==1)?" to grayscale":""));
429 depth = image.pd_depth;
431 printf("Image info: width: %d height: %d depth: %d...\n", image.pd_width, image.pd_height, image.pd_depth);
433 if (!(width && height && depth)) {
434 fprintf(stderr,"Err: Invalid image file header (width, height, or depth is 0)\n");
462 unsigned int quantity, depth;
465 i += decode_rle( &fileArr[i], &quantity, &depth, &value );
466 pixels += quantity * depth;
478 unsigned int quantity, line, col, depth, sum;
489 dataIn += decode_rle( dataIn, &quantity, &depth, &value );
491 sum += quantity * depth;
495 if ( i == depth )
526 (depth==3)?"Millions of":"256", (grey==0)?"colors":"grays");
528 WriteQTRawFile( ostream, data, height, width, depth, pixels );
532 if ( depth != 1 )
571 depth = 1; // only CLUT is supported
581 fwrite(&depth, sizeof(depth), 1, ostream);
640 fprintf( out_stream, "%d, ", depth); /* bytes per pixel */
717 int depth);
720 compareruns( unsigned char * data, unsigned int * index, unsigned int max, union RunData * currP, int * depth )
732 if ( (*index+*depth) > max )
734 *depth = 1;
743 // check current data against current depth
744 switch ( *depth )
774 // start of a new pattern match begine with depth = 1
790 { // if so, leave at depth = 1
792 *depth = 1;
798 *depth = 4;
811 { // if so, leave at depth = 1
813 *depth = 1;
819 *depth = 3;
830 { // if so, leave at depth = 1
832 *depth = 1;
838 *depth = 2;
856 *index += *depth;
865 int i, match, depth;
873 depth = 1;
878 if ( compareruns( data, &i, pixels, currP, &depth ) )
882 if ( (run*depth) > 2 )
901 filePos += encode_rle(fileArr, filePos, run, currP, depth);
918 depth = 1; // switch back to a single byte depth
942 filePos += encode_rle(fileArr, filePos, run, currP, depth);
999 encode_rle(unsigned char * fileArr, unsigned int filePos, unsigned int quantity, union RunData * value, int depth)
1006 switch ( depth )
1039 decode_rle( unsigned char * dataPtr, unsigned int * quantity, unsigned int * depth, unsigned char ** value )
1069 *depth = runsize;
1468 WriteQTRawFile( FILE * ostream, unsigned char * data, int height, int width, int depth, unsigned int size )
1473 if ( depth == 1)
1478 csize = height*depth*(width+adj);
1489 if ( depth == 1)
1523 image_header.depth = depth*8;
1524 image_header.clutID = (depth==1) ? 8 : -1;