Lines Matching refs:ZMBV_BLOCK
45 #define ZMBV_BLOCK 16 macro
78 int score_tab[ZMBV_BLOCK * ZMBV_BLOCK * 4 + 1];
128 bw = FFMIN(ZMBV_BLOCK, c->avctx->width - x); in zmbv_me()
129 bh = FFMIN(ZMBV_BLOCK, c->avctx->height - y); in zmbv_me()
228 bw = (avctx->width + ZMBV_BLOCK - 1) / ZMBV_BLOCK; in encode_frame()
229 bh = (avctx->height + ZMBV_BLOCK - 1) / ZMBV_BLOCK; in encode_frame()
234 for(y = 0; y < avctx->height; y += ZMBV_BLOCK) { in encode_frame()
235 bh2 = FFMIN(avctx->height - y, ZMBV_BLOCK); in encode_frame()
236 for(x = 0; x < avctx->width; x += ZMBV_BLOCK, mv += 2) { in encode_frame()
237 bw2 = FFMIN(avctx->width - x, ZMBV_BLOCK); in encode_frame()
255 src += p->linesize[0] * ZMBV_BLOCK; in encode_frame()
256 prev += c->pstride * ZMBV_BLOCK; in encode_frame()
295 *buf++ = ZMBV_BLOCK; // block width in encode_frame()
296 *buf++ = ZMBV_BLOCK; // block height in encode_frame()
362 for(i = 1; i <= ZMBV_BLOCK * ZMBV_BLOCK * c->bypp; i++) in encode_init()
363 c->score_tab[i] = -i * log2(i / (double)(ZMBV_BLOCK * ZMBV_BLOCK * c->bypp)) * 256; in encode_init()
387 …((avctx->width + ZMBV_BLOCK - 1) / ZMBV_BLOCK) * ((avctx->height + ZMBV_BLOCK - 1) / ZMBV_BLOCK) *… in encode_init()