Lines Matching refs:quantity
483 unsigned int *quantity, unsigned int *depth,
581 unsigned int data, quantity, depth;
592 quantity = 0;
598 if (quantity == 0) {
599 dataPtr += decode_rle(dataPtr, &quantity, &depth, &value);
612 quantity--;
634 unsigned int quantity, index, data, depth;
641 quantity = 0;
647 if (quantity == 0) {
648 dataPtr += decode_rle(dataPtr, &quantity, &depth, &value);
662 quantity--;
683 unsigned int quantity, index, data, depth;
691 quantity = 0;
697 if (quantity == 0) {
698 dataPtr += decode_rle(dataPtr, &quantity, &depth, &value);
712 quantity--;
721 decode_rle decodes a single quantity/value run of a "modified-RLE" encoded
725 are the quantity of bytes that follow that make up the run of value bytes. (see case 0)
727 If the MSB is set, bits 0-3 are the quantity's least significant 4 bits. If bit 5 is set,
728 then the quantity is further described in the next byte, where an additional 7 bits (4-10)
729 worth of quantity will be found. If the MSB of this byte is set, then an additional
730 7 bits (11-17) worth of quantity will be found in the next byte. This repeats until the MSB of
731 a quantity byte is zero, thus ending the run of quantity bytes.
733 Bits 5/6 of the first byte, describe the number of bytes in the value run following the quantity run.
734 These bits describe value runs of 1 to 4 bytes. And the quantity describe the number of value runs.
737 encodings are: (q = quantity, v = value, c = quantity continues)
747 decode_rle(const unsigned char *dataPtr, unsigned int *quantity,
775 *quantity = runlen;