Lines Matching defs:quantity

20 					unsigned int * quantity,
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;
484 quantity = 0;
488 if ( quantity == 0 ) {
489 dataIn += decode_rle( dataIn, &quantity, &depth, &value );
491 sum += quantity * depth;
498 quantity--;
715 unsigned int quantity,
950 The quantity is described in the first byte. If the MSB is zero, then the next seven bits
951 are the quantity. If the MSB is set, bits 0-3 of the quantity are in the least significant bits.
952 If bit 5 is set, then the quantity is further described in the next byte, where an additional
953 7 bits (4-10) worth of quantity will be found. If the MSB of this byte is set, then an additional
954 7 bits (11-17) worth of quantity will be found in the next byte. This repeats until the MSB of
955 a quantity byte is zero, thus ending the chain.
958 If the MSB is set, then bits 5/6 describe the number of value bytes following the quantity bytes.
960 encodings are: (q = quantity, v = value, c = quantity continues)
971 encode_length(unsigned char * fileArr, unsigned int filePos, unsigned int quantity, unsigned int mask)
977 fileArr[filePos] = mask | (quantity & single_mask); // low bits (plus mask)
980 if (quantity >>= 4)
983 fileArr[filePos] = quantity & double_mask;
986 while (quantity >>= 7)
989 fileArr[filePos] = quantity & double_mask;
999 encode_rle(unsigned char * fileArr, unsigned int filePos, unsigned int quantity, union RunData * value, int depth)
1009 slots_used += encode_length( fileArr, filePos, quantity, 0x80 );
1014 slots_used += encode_length( fileArr, filePos, quantity, 0xA0 );
1020 slots_used += encode_length( fileArr, filePos, quantity, 0xC0 );
1027 slots_used += encode_length( fileArr, filePos, quantity, 0xE0 );
1039 decode_rle( unsigned char * dataPtr, unsigned int * quantity, unsigned int * depth, unsigned char ** value )
1070 *quantity = runlen;