Lines Matching defs:count
72 uint32_t bitbuf = 0, writeoffset = 0, count = 0;
90 count = word & 0x07;
92 if (!count)
93 count = bytestream2_get_byte(&gb);
94 if (!count)
97 count = getbit(&gb, &bitbuf, &bits) * 2;
98 count += getbit(&gb, &bitbuf, &bits);
101 count += 2;
103 if (offset < 0 || offset + count >= hnm->width * hnm->height) {
106 } else if (writeoffset + count >= hnm->width * hnm->height) {
111 while (count--) {
155 int count, left, offset;
161 count = bytestream2_peek_byte(&gb) & 0x1F;
162 if (count == 0) {
176 count = bytestream2_get_le16(&gb);
177 count *= 2;
178 writeoffset += count;
180 count = bytestream2_get_byte(&gb) * 2;
181 if (writeoffset + count > hnm->width * hnm->height) {
185 while (count > 0) {
187 count--;
207 left = count;
209 if (!backward && offset + 2*count > hnm->width * hnm->height) {
215 } else if (writeoffset + 2*count > hnm->width * hnm->height) {
264 left = count;
265 writeoffset -= count * 2;
285 uint8_t tag, count, previous, delta;
290 count = bytestream2_peek_byte(&gb) & 0x3F;
291 if (count == 0) {
329 if (offset + hnm->width + count >= hnm->width * hnm->height) {
332 } else if (writeoffset + hnm->width + count >= hnm->width * hnm->height) {
338 while (count > 0) {
343 count--;
346 while (count > 0) {
351 count--;
364 uint16_t count;
374 count = bytestream2_get_byte(&gb);
375 if (start == 255 && count == 255)
377 if (count == 0)
378 count = 256;
380 while (count > 0) {
385 count--;