• Home
  • Raw
  • Download

Lines Matching refs:n_slices

630     int buf_size = avpkt->size, n_slices = 0, i, ret;  in vc1_decode_frame()  local
689 tmp = av_realloc_array(slices, sizeof(*slices), n_slices+1); in vc1_decode_frame()
695 slices[n_slices].buf = av_mallocz(size + AV_INPUT_BUFFER_PADDING_SIZE); in vc1_decode_frame()
696 if (!slices[n_slices].buf) { in vc1_decode_frame()
701 slices[n_slices].buf); in vc1_decode_frame()
702 init_get_bits(&slices[n_slices].gb, slices[n_slices].buf, in vc1_decode_frame()
704 slices[n_slices].mby_start = avctx->coded_height + 31 >> 5; in vc1_decode_frame()
705 slices[n_slices].rawbuf = start; in vc1_decode_frame()
706 slices[n_slices].raw_size = size + 4; in vc1_decode_frame()
707 n_slices1 = n_slices - 1; // index of the last slice of the first field in vc1_decode_frame()
708 n_slices++; in vc1_decode_frame()
718 tmp = av_realloc_array(slices, sizeof(*slices), n_slices+1); in vc1_decode_frame()
724 slices[n_slices].buf = av_mallocz(size + AV_INPUT_BUFFER_PADDING_SIZE); in vc1_decode_frame()
725 if (!slices[n_slices].buf) { in vc1_decode_frame()
730 slices[n_slices].buf); in vc1_decode_frame()
731 init_get_bits(&slices[n_slices].gb, slices[n_slices].buf, in vc1_decode_frame()
733 slices[n_slices].mby_start = get_bits(&slices[n_slices].gb, 9); in vc1_decode_frame()
734 slices[n_slices].rawbuf = start; in vc1_decode_frame()
735 slices[n_slices].raw_size = size + 4; in vc1_decode_frame()
736 n_slices++; in vc1_decode_frame()
753 tmp = av_realloc_array(slices, sizeof(*slices), n_slices+1); in vc1_decode_frame()
759 slices[n_slices].buf = av_mallocz(buf_size + AV_INPUT_BUFFER_PADDING_SIZE); in vc1_decode_frame()
760 if (!slices[n_slices].buf) { in vc1_decode_frame()
764 …3 = v->vc1dsp.vc1_unescape_buffer(divider + 4, buf + buf_size - divider - 4, slices[n_slices].buf); in vc1_decode_frame()
765 init_get_bits(&slices[n_slices].gb, slices[n_slices].buf, in vc1_decode_frame()
767 slices[n_slices].mby_start = s->mb_height + 1 >> 1; in vc1_decode_frame()
768 slices[n_slices].rawbuf = divider; in vc1_decode_frame()
769 slices[n_slices].raw_size = buf + buf_size - divider; in vc1_decode_frame()
770 n_slices1 = n_slices - 1; in vc1_decode_frame()
771 n_slices++; in vc1_decode_frame()
956 if (n_slices - n_slices1 == 2) { in vc1_decode_frame()
964 for (i = n_slices1 + 2; i < n_slices; i++) { in vc1_decode_frame()
991 if (n_slices == 0) { in vc1_decode_frame()
1001 for (i = 0 ; i < n_slices; i++) { in vc1_decode_frame()
1040 for (i = 0; i <= n_slices; i++) { in vc1_decode_frame()
1082 …s->end_mb_y = (i == n_slices ) ? mb_height : FFMIN(mb_height, slices[i].mby_start % mb_height); in vc1_decode_frame()
1084 if (i >= n_slices) { in vc1_decode_frame()
1101 if (i != n_slices) { in vc1_decode_frame()
1169 for (i = 0; i < n_slices; i++) in vc1_decode_frame()
1176 for (i = 0; i < n_slices; i++) in vc1_decode_frame()