Lines Matching defs:count
157 int count, i;
166 count = 1 << avctx->bits_per_coded_sample;
168 count = FFMIN(palette_size / 3, count);
169 if (count) {
170 for (i = 0; i < count; i++)
172 if (s->flags && count >= 32) { // EHB
175 count = FFMAX(count, 64);
178 count = 1 << avctx->bits_per_coded_sample;
180 for (i = 0; i < count; i++)
184 if ((1 << avctx->bits_per_coded_sample) < count) {
188 memcpy(pal + (1 << avctx->bits_per_coded_sample), pal, count * 4);
189 for (i = 0; i < count; i++)
250 int count = data_size / 3;
253 if (count > 256)
256 for (i = 0; i < count; i++)
259 for (i = 0; i < count; i++)
332 int i, count = FFMIN(palette_size / 3, 1 << s->ham);
351 if (count) { // HAM with color palette attached
354 for (i=0; i < count; i++) {
357 count = 1 << s->ham;
359 count = 1 << s->ham;
360 for (i=0; i < count; i++) {
365 for (i=0; i < count; i++) {
368 s->ham_palbuf[(i+count)*2] = 0xFF00FFFF; // just modify blue color component
369 s->ham_palbuf[(i+count*2)*2] = 0xFFFFFF00; // just modify red color component
370 s->ham_palbuf[(i+count*3)*2] = 0xFFFF00FF; // just modify green color component
371 s->ham_palbuf[(i+count)*2+1] = 0xFF000000 | tmp << 16;
372 s->ham_palbuf[(i+count*2)*2+1] = 0xFF000000 | tmp;
373 s->ham_palbuf[(i+count*3)*2+1] = 0xFF000000 | tmp << 8;
586 unsigned count;
593 count = bytestream2_get_be16(gb) - 2;
594 if (bytestream2_get_bytes_left(gb) < count)
597 bytestream2_init(&cmds, gb->buffer, count);
598 bytestream2_skip(gb, count);
600 for (i = 0; i < count && x_pos < line_size; i++) {
845 uint16_t count = bytestream2_get_be16(&gb);
848 for (i = 0; i < count; i++) {
1460 int count = 0;
1492 if (count > dst_size)
1501 count += cnt;
1510 count += cnt;
1857 int i, count = 1 << s->ham;
1861 for (i = 0; i < count; i++) {
1864 for (i = 0; i < count; i++) {
1867 s->ham_palbuf[(i+count)*2] = 0xFF00FFFF;
1868 s->ham_palbuf[(i+count*2)*2] = 0xFFFFFF00;
1869 s->ham_palbuf[(i+count*3)*2] = 0xFFFF00FF;
1870 s->ham_palbuf[(i+count)*2+1] = 0xFF000000 | tmp << 16;
1871 s->ham_palbuf[(i+count*2)*2+1] = 0xFF000000 | tmp;
1872 s->ham_palbuf[(i+count*3)*2+1] = 0xFF000000 | tmp << 8;