Home
last modified time | relevance | path

Searched refs:mb_size (Results 1 – 19 of 19) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dindeo5.c62 int result, i, p, tile_size, pic_size_indx, mb_size, blk_size, is_scalable; in decode_gop_header() local
133 mb_size = get_bits1(&ctx->gb); in decode_gop_header()
135 mb_size = blk_size << !mb_size; in decode_gop_header()
142 blk_size_changed = mb_size != band->mb_size || blk_size != band->blk_size; in decode_gop_header()
144 band->mb_size = mb_size; in decode_gop_header()
236 band2->mb_size = band1->mb_size; in decode_gop_header()
461 int row_offset = band->mb_size * band->pitch; in decode_mb_info()
471 if (tile->num_MBs != IVI_MBs_PER_TILE(tile->width, tile->height, band->mb_size)) { in decode_mb_info()
473 tile->num_MBs, IVI_MBs_PER_TILE(tile->width, tile->height, band->mb_size)); in decode_mb_info()
478 mv_scale = (ctx->planes[0].bands[0].mb_size >> 3) - (band->mb_size >> 3); in decode_mb_info()
[all …]
Divi.h132 int mb_size; member
158 int mb_size; ///< macroblock size member
286 #define IVI_MBs_PER_TILE(tile_width, tile_height, mb_size) \ argument
287 ((((tile_width) + (mb_size) - 1) / (mb_size)) * (((tile_height) + (mb_size) - 1) / (mb_size)))
Dindeo4.c209 ctx->planes[p].bands[i].mb_size = !p ? (!ctx->is_scalable ? 16 : 8) : 4; in decode_pic_hdr()
313 band->mb_size = 16 >> indx; in decode_band_hdr()
475 int row_offset = band->mb_size * band->pitch; in decode_mb_info()
481 blks_per_mb = band->mb_size != band->blk_size ? 4 : 1; in decode_mb_info()
485 mv_scale = (ctx->planes[0].bands[0].mb_size >> 3) - (band->mb_size >> 3); in decode_mb_info()
488 …if (((tile->width + band->mb_size-1)/band->mb_size) * ((tile->height + band->mb_size-1)/band->mb_s… in decode_mb_info()
489 …_ERROR, "num_MBs mismatch %d %d %d %d\n", tile->width, tile->height, band->mb_size, tile->num_MBs); in decode_mb_info()
493 for (y = tile->ypos; y < tile->ypos + tile->height; y += band->mb_size) { in decode_mb_info()
496 for (x = tile->xpos; x < tile->xpos + tile->width; x += band->mb_size) { in decode_mb_info()
609 x + ((mb->mv_x+s)>>s) + band->mb_size - 1 in decode_mb_info()
[all …]
Divi.c364 tile->mb_size = band->mb_size; in ivi_init_tiles()
370 band->mb_size); in ivi_init_tiles()
611 num_blocks = (band->mb_size != blk_size) ? 4 : 1; in ivi_decode_blocks()
665 mb->xpos + dmv_x + band->mb_size + cx > band->pitch || in ivi_decode_blocks()
667 mb->ypos + dmv_y + band->mb_size + cy > band->aheight) { in ivi_decode_blocks()
680 mb->xpos + dmv_x + band->mb_size + cx > band->pitch || in ivi_decode_blocks()
682 mb->ypos + dmv_y + band->mb_size + cy > band->aheight) { in ivi_decode_blocks()
756 int mb_size = band->mb_size; in ivi_process_empty_tile() local
761 if (tile->num_MBs != IVI_MBs_PER_TILE(tile->width, tile->height, mb_size)) { in ivi_process_empty_tile()
764 tile->num_MBs, IVI_MBs_PER_TILE(tile->width, tile->height, mb_size)); in ivi_process_empty_tile()
[all …]
Dlibx265.c421 int mb_size = (ctx->params->rc.qgSize == 8) ? 8 : 16; in libx265_encode_set_roi() local
422 int mbx = (frame->width + mb_size - 1) / mb_size; in libx265_encode_set_roi()
423 int mby = (frame->height + mb_size - 1) / mb_size; in libx265_encode_set_roi()
450 starty = FFMIN(mby, roi->top / mb_size); in libx265_encode_set_roi()
451 endy = FFMIN(mby, (roi->bottom + mb_size - 1)/ mb_size); in libx265_encode_set_roi()
452 startx = FFMIN(mbx, roi->left / mb_size); in libx265_encode_set_roi()
453 endx = FFMIN(mbx, (roi->right + mb_size - 1)/ mb_size); in libx265_encode_set_roi()
Dclearvideo.c55 int mb_size; member
321 left_mv = -((mb_x * mvi->mb_size)); in mvi_predict()
322 right_mv = ((mvi->mb_w - mb_x - 1) * mvi->mb_size); in mvi_predict()
329 top_mv = -((mb_y * mvi->mb_size)); in mvi_predict()
330 bot_mv = ((mvi->mb_h - mb_y - 1) * mvi->mb_size); in mvi_predict()
344 static void mvi_reset(MVInfo *mvi, int mb_w, int mb_h, int mb_size) in mvi_reset() argument
349 mvi->mb_size = mb_size; in mvi_reset()
Drv30.c41 int mb_size; in rv30_parse_slice_header() local
76 mb_size = ((w + 15) >> 4) * ((h + 15) >> 4); in rv30_parse_slice_header()
77 mb_bits = ff_rv34_get_start_offset(gb, mb_size); in rv30_parse_slice_header()
Dh263dec.c197 const int mb_size = 16 >> s->avctx->lowres; in decode_slice() local
287 ff_mpeg_draw_horiz_band(s, s->mb_y * mb_size, mb_size); in decode_slice()
314 ff_mpeg_draw_horiz_band(s, s->mb_y * mb_size, mb_size); in decode_slice()
Drv40.c138 int mb_size; in rv40_parse_slice_header() local
158 mb_size = ((w + 15) >> 4) * ((h + 15) >> 4); in rv40_parse_slice_header()
159 mb_bits = ff_rv34_get_start_offset(gb, mb_size); in rv40_parse_slice_header()
Dh264_cavlc.c775 const int mb_size = ff_h264_mb_sizes[h->ps.sps->chroma_format_idc] * in ff_h264_decode_mb_cavlc() local
780 if (get_bits_left(&sl->gb) < mb_size) { in ff_h264_decode_mb_cavlc()
784 skip_bits_long(&sl->gb, mb_size); in ff_h264_decode_mb_cavlc()
Dh264_cabac.c2027 const int mb_size = ff_h264_mb_sizes[sps->chroma_format_idc] * in ff_h264_decode_mb_cabac() local
2042 if ((int) (sl->cabac.bytestream_end - ptr) < mb_size) in ff_h264_decode_mb_cabac()
2045 ptr += mb_size; in ff_h264_decode_mb_cabac()
Dmpeg12dec.c1851 const int mb_size = 16 >> s->avctx->lowres; in mpeg_decode_slice() local
1854 ff_mpeg_draw_horiz_band(s, mb_size * (s->mb_y >> field_pic), mb_size); in mpeg_decode_slice()
Drv34.c322 int ff_rv34_get_start_offset(GetBitContext *gb, int mb_size) in ff_rv34_get_start_offset() argument
326 if(rv34_mb_max_sizes[i] >= mb_size - 1) in ff_rv34_get_start_offset()
/third_party/ffmpeg/libavfilter/
Dvf_mestimate.c39 int mb_size; ///< macroblock size member
64 …{ "mb_size", "macroblock size", OFFSET(mb_size), AV_OPT_TYPE_INT, {.i64 = 16}, 8, INT_MAX, FLAGS },
96 s->log2_mb_size = av_ceil_log2_c(s->mb_size); in config_input()
97 s->mb_size = 1 << s->log2_mb_size; in config_input()
112 …ff_me_init_context(&s->me_ctx, s->mb_size, s->search_param, inlink->w, inlink->h, 0, (s->b_width -… in config_input()
117 static void add_mv_data(AVMotionVector *mv, int mb_size, in add_mv_data() argument
120 mv->w = mb_size; in add_mv_data()
121 mv->h = mb_size; in add_mv_data()
122 mv->dst_x = x + (mb_size >> 1); in add_mv_data()
123 mv->dst_y = y + (mb_size >> 1); in add_mv_data()
[all …]
Dvf_minterpolate.c174 int mb_size; member
227 { "mb_size", "macroblock size", OFFSET(mb_size), AV_OPT_TYPE_INT, {.i64 = 16}, 4, 16, FLAGS },
277 for (j = 0; j < me_ctx->mb_size; j++) in get_sbad()
278 for (i = 0; i < me_ctx->mb_size; i++) in get_sbad()
289 int x_min = me_ctx->x_min + me_ctx->mb_size / 2; in get_sbad_ob()
290 int x_max = me_ctx->x_max - me_ctx->mb_size / 2; in get_sbad_ob()
291 int y_min = me_ctx->y_min + me_ctx->mb_size / 2; in get_sbad_ob()
292 int y_max = me_ctx->y_max - me_ctx->mb_size / 2; in get_sbad_ob()
303 for (j = -me_ctx->mb_size / 2; j < me_ctx->mb_size * 3 / 2; j++) in get_sbad_ob()
304 for (i = -me_ctx->mb_size / 2; i < me_ctx->mb_size * 3 / 2; i++) in get_sbad_ob()
[all …]
Dmotion_estimation.h45 int mb_size; member
64 void ff_me_init_context(AVMotionEstContext *me_ctx, int mb_size, int search_param,
Dmotion_estimation.c45 void ff_me_init_context(AVMotionEstContext *me_ctx, int mb_size, int search_param, in ff_me_init_context() argument
50 me_ctx->mb_size = mb_size; in ff_me_init_context()
70 for (j = 0; j < me_ctx->mb_size; j++) in ff_me_cmp_sad()
71 for (i = 0; i < me_ctx->mb_size; i++) in ff_me_cmp_sad()
/third_party/skia/third_party/externals/libwebp/src/enc/
Dsyntax_enc.c268 const int mb_size = enc->mb_w_ * enc->mb_h_; in GeneratePartition0() local
272 if (!VP8BitWriterInit(bw, mb_size * 7 / 8)) { // ~7 bits per macroblock in GeneratePartition0()
/third_party/ffmpeg/doc/
Dfilters.texi14676 @item mb_size
14766 @item mb_size