Lines Matching refs:mb_count
189 int x, mb_count, strip_buf_size, frame_buf_size;
223 mb_count = avctx->width * avctx->height / MB_AREA;
229 strip_buf_size = STRIP_HEADER_SIZE + 3 * CHUNK_HEADER_SIZE + 2 * VECTOR_MAX * CODEBOOK_MAX + 4 * (mb_count + (mb_count + 15) / 16) + (2 * CODEBOOK_MAX)/8;
239 if (!(s->mb = av_malloc_array(mb_count, sizeof(mb_info))))
243 if (!(s->best_mb = av_malloc_array(mb_count, sizeof(mb_info))))
323 int mb_count = s->w * h / MB_AREA;
330 //av_log(s->avctx, AV_LOG_INFO, "sizes %3i %3i -> %9lli score mb_count %i", info->v1_size, info->v4_size, (long long int)ret, mb_count);
339 ret += s->lambda * 8 * mb_count;
342 for(x = 0; x < mb_count; x++) {
359 for(x = 0; x < mb_count; x++) {
372 for(x = 0; x < mb_count; x++) {
398 for(x = 0; x < mb_count; x++) {
441 for(x = 0; x < mb_count; x++) {
622 int x, y, z, flags, bits, temp_size, header_ofs, ret = 0, mb_count = s->w * h / MB_AREA;
657 //av_log(s->avctx, AV_LOG_INFO, "mb_count = %i\n", mb_count);
658 ret += write_chunk_header(buf + ret, 0x32, mb_count);
660 for(x = 0; x < mb_count; x++)
669 for(x = 0; x < mb_count; x += 32) {
671 for(y = x; y < FFMIN(x+32, mb_count); y++)
678 for(y = x; y < FFMIN(x+32, mb_count); y++) {
698 for(x = 0; x < mb_count; x++) {
1071 memcpy(s->best_mb, s->mb, mb_count*sizeof(mb_info));