Lines Matching refs:current_run
475 int current_run = 0; in unpack_superblocks() local
488 current_run = 0; in unpack_superblocks()
491 if (s->theora && current_run == MAXIMUM_LONG_BIT_RUN) in unpack_superblocks()
496 current_run = get_vlc2(gb, s->superblock_run_length_vlc.table, in unpack_superblocks()
498 if (current_run == 34) in unpack_superblocks()
499 current_run += get_bits(gb, 12); in unpack_superblocks()
501 if (current_run > s->superblock_count - current_superblock) { in unpack_superblocks()
507 memset(s->superblock_coding + current_superblock, bit, current_run); in unpack_superblocks()
509 current_superblock += current_run; in unpack_superblocks()
511 num_partial_superblocks += current_run; in unpack_superblocks()
521 current_run = 0; in unpack_superblocks()
525 if (s->theora && current_run == MAXIMUM_LONG_BIT_RUN) in unpack_superblocks()
530 current_run = get_vlc2(gb, s->superblock_run_length_vlc.table, in unpack_superblocks()
532 if (current_run == 34) in unpack_superblocks()
533 current_run += get_bits(gb, 12); in unpack_superblocks()
535 for (j = 0; j < current_run; current_superblock++) { in unpack_superblocks()
548 superblocks_decoded += current_run; in unpack_superblocks()
555 current_run = 0; in unpack_superblocks()
608 if (current_run-- == 0) { in unpack_superblocks()
610 current_run = get_vlc2(gb, s->fragment_run_length_vlc.table, 5, 2); in unpack_superblocks()
698 int bit, current_run, has_partial; in vp4_unpack_macroblocks() local
707 for (i = 0; i < s->yuv_macroblock_count; i += current_run) { in vp4_unpack_macroblocks()
710 current_run = vp4_get_mb_count(s, gb); in vp4_unpack_macroblocks()
711 if (current_run > s->yuv_macroblock_count - i) in vp4_unpack_macroblocks()
713 memset(s->superblock_coding + i, 2 * bit, current_run); in vp4_unpack_macroblocks()
722 current_run = vp4_get_mb_count(s, gb); in vp4_unpack_macroblocks()
725 if (!current_run) { in vp4_unpack_macroblocks()
727 current_run = vp4_get_mb_count(s, gb); in vp4_unpack_macroblocks()
730 current_run--; in vp4_unpack_macroblocks()
733 if (current_run) /* handle situation when vp4_get_mb_count() fails */ in vp4_unpack_macroblocks()