Lines Matching defs:run
64 for (int run = 0; run < 64; run++) {
68 len = (run >> 4) * huff_size_ac[0xf0];
71 code = ((15&run) << 4) | nbits;
75 uni_ac_vlc_len[UNI_AC_ENC_INDEX(run, i)] = len;
377 * @param code The encoded exponent of the coefficients and the run-bits.
392 * @param run The run-bits.
394 static void ff_mjpeg_encode_coef(MJpegContext *s, uint8_t table_id, int val, int run)
399 av_assert0(run == 0);
408 code = (run << 4) | (av_log2_16bit(val) + 1);
425 int component, dc, last_index, val, run;
440 run = 0;
449 run++;
451 while (run >= 16) {
453 run -= 16;
455 ff_mjpeg_encode_coef(m, table_id, val, run);
456 run = 0;
461 if (last_index < 63 || run != 0)
468 int component, dc, run, last_index, val;
490 run = 0;
496 run++;
498 while (run >= 16) {
500 run -= 16;
509 code = (run << 4) | nbits;
514 run = 0;
519 if (last_index < 63 || run != 0)