Lines Matching refs:mb_x
372 static int encode_slice(AVCodecContext *avctx, const AVFrame *pic, int mb_x,
388 dest_y = pic->data[0] + (mb_y << 4) * luma_stride + (mb_x << 5);
389 dest_u = pic->data[1] + (mb_y << 4) * chroma_stride + (mb_x << 4);
390 dest_v = pic->data[2] + (mb_y << 4) * chroma_stride + (mb_x << 4);
394 subimage_with_fill((uint16_t *) pic->data[0], mb_x << 4, mb_y << 4,
397 subimage_with_fill((uint16_t *) pic->data[1], mb_x << 3, mb_y << 4,
400 subimage_with_fill((uint16_t *) pic->data[2], mb_x << 3, mb_y << 4,
463 int mb_x = 0;
465 while (mb_x < mb_width) {
466 while (mb_width - mb_x < slice_mb_count)
470 unsafe_right = (avctx->width & 0xf) && (mb_x + slice_mb_count == mb_width);
472 sl_size = encode_slice(avctx, pic, mb_x, mb_y, slice_mb_count,
478 mb_x += slice_mb_count;