/third_party/ffmpeg/libavcodec/ |
D | error_resilience.c | 49 *stride = s->mb_width * 4; in set_mv_strides() 395 const int mb_width = s->mb_width; in guess_mv() local 416 for (i = 0; i < mb_width * mb_height; i++) { in guess_mv() 440 num_avail <= FFMAX(mb_width, mb_height) / 2) { in guess_mv() 442 for (mb_x = 0; mb_x < s->mb_width; mb_x++) { in guess_mv() 462 for (mb_x = 0; mb_x < mb_width; mb_x++) { in guess_mv() 467 …if (mb_x+1 < mb_width) add_blocklist(blocklist, &blocklist_length, fixed, mb_x + 1, mb_y, mb_xy +… in guess_mv() 507 if (mb_x + 1 < mb_width) in guess_mv() 532 if (mb_x + 1 < mb_width && fixed[mb_xy + 1] > 1) { in guess_mv() 649 if (mb_x + 1 < mb_width && fixed[mb_xy + 1] > 1) { in guess_mv() [all …]
|
D | rv10enc.c | 52 if (s->mb_width * s->mb_height >= (1U << 12)) { in ff_rv10_encode_picture_header() 54 s->mb_width * s->mb_height); in ff_rv10_encode_picture_header() 59 put_bits(&s->pb, 12, s->mb_width * s->mb_height); in ff_rv10_encode_picture_header()
|
D | vp56.c | 54 if (mvp.x < 0 || mvp.x >= s->mb_width || in vp56_get_vectors_predictors() 57 offset = mvp.x + s->mb_width*mvp.y; in vp56_get_vectors_predictors() 198 s->macroblocks[row * s->mb_width + col].mv = s->mv[3]; in vp56_decode_4mv() 212 s->macroblocks[row * s->mb_width + col].type = s->mb_type; in vp56_decode_mv() 253 s->macroblocks[row*s->mb_width + col].mv = *mv; in vp56_decode_mv() 268 s->macroblocks[row * s->mb_width + col].type = s->mb_type; in vp56_conceal_mv() 272 s->macroblocks[row*s->mb_width + col].mv = *mv; in vp56_conceal_mv() 539 s->mb_width = (avctx->coded_width +15) / 16; in vp56_size_changed() 542 if (s->mb_width > 1000 || s->mb_height > 1000) { in vp56_size_changed() 548 av_reallocp_array(&s->above_blocks, 4*s->mb_width+6, in vp56_size_changed() [all …]
|
D | aic.c | 150 int mb_width, mb_height; member 315 int slice_width = FFMIN(ctx->slice_width, ctx->mb_width - mb_x); in aic_decode_slice() 420 for (x = 0; x < ctx->mb_width; x += ctx->slice_width) { in aic_decode_frame() 462 ctx->mb_width = FFALIGN(avctx->width, 16) >> 4; in aic_decode_init() 465 ctx->num_x_slices = (ctx->mb_width + 15) >> 4; in aic_decode_init() 467 for (i = 1; i < ctx->mb_width; i++) { in aic_decode_init() 468 if (!(ctx->mb_width % i) && (ctx->mb_width / i <= 32)) { in aic_decode_init() 469 ctx->slice_width = ctx->mb_width / i; in aic_decode_init()
|
D | tscc2.c | 44 int mb_width, mb_height; member 190 for (mb_x = 0; mb_x < c->mb_width; mb_x++) { in tscc2_decode_slice() 191 q = c->slice_quants[mb_x + c->mb_width * mb_y]; in tscc2_decode_slice() 216 int num_mb = c->mb_width * c->mb_height; in tscc2_decode_frame() 288 int skip_row = 1, j, off = i * c->mb_width; in tscc2_decode_frame() 289 for (j = 0; j < c->mb_width; j++) { in tscc2_decode_frame() 341 c->mb_width = FFALIGN(avctx->width, 16) >> 4; in tscc2_decode_init() 343 c->slice_quants = av_malloc(c->mb_width * c->mb_height); in tscc2_decode_init()
|
D | vp8.c | 77 if (!(f->seg_map = av_buffer_allocz(s->mb_width * s->mb_height))) in vp8_alloc_frame() 193 …if (width != s->avctx->width || ((width+15)/16 != s->mb_width || (height+15)/16 != s->mb_height) … in update_dimensions() 212 s->mb_width = (s->avctx->coded_width + 15) / 16; in update_dimensions() 218 s->macroblocks_base = av_mallocz((s->mb_width + s->mb_height * 2 + 1) * in update_dimensions() 220 s->intra4x4_pred_mode_top = av_mallocz(s->mb_width * 4); in update_dimensions() 222 s->macroblocks_base = av_mallocz((s->mb_width + 2) * (s->mb_height + 2) * in update_dimensions() 224 s->top_nnz = av_mallocz(s->mb_width * sizeof(*s->top_nnz)); in update_dimensions() 225 s->top_border = av_mallocz((s->mb_width + 1) * sizeof(*s->top_border)); in update_dimensions() 236 av_mallocz(s->mb_width * sizeof(*s->thread_data[0].filter_strength)); in update_dimensions() 513 int width = s->mb_width * 16; in vp7_fade_frame() [all …]
|
D | wmv2dec.c | 44 for (mb_x = 0; mb_x < s->mb_width; mb_x++) in parse_mb_skip() 49 if (get_bits_left(&s->gb) < s->mb_height * s->mb_width) in parse_mb_skip() 52 for (mb_x = 0; mb_x < s->mb_width; mb_x++) in parse_mb_skip() 61 for (mb_x = 0; mb_x < s->mb_width; mb_x++) in parse_mb_skip() 65 for (mb_x = 0; mb_x < s->mb_width; mb_x++) in parse_mb_skip() 72 for (mb_x = 0; mb_x < s->mb_width; mb_x++) { in parse_mb_skip() 89 for (mb_x = 0; mb_x < s->mb_width; mb_x++) in parse_mb_skip() 156 int run = skip_type == SKIP_TYPE_COL ? s->mb_width : s->mb_height; in ff_wmv2_decode_picture_header() 505 w->s.mb_width, w->s.mb_height); in wmv2_decode_init()
|
D | mpegutils.c | 106 int mb_width, int mb_height, int mb_stride, int quarter_sample) in ff_print_debug_info2() argument 112 const int mv_stride = (mb_width << mv_sample_log2) + in ff_print_debug_info2() 118 AVMotionVector *mvs = av_malloc_array(mb_width * mb_height, 2 * 4 * sizeof(AVMotionVector)); in ff_print_debug_info2() 123 for (mb_x = 0; mb_x < mb_width; mb_x++) { in ff_print_debug_info2() 202 for (x = 0; x < mb_width; x++) { in ff_print_debug_info2()
|
D | vc1_pred.c | 271 off = (s->mb_x == (s->mb_width - 1)) ? -2 : 2; in ff_vc1_pred_mv() 273 off = (s->mb_x == (s->mb_width - 1)) ? -1 : 2; in ff_vc1_pred_mv() 274 b_valid = b_valid && s->mb_width > 1; in ff_vc1_pred_mv() 282 off = s->mb_x ? -1 : 2 * s->mb_width - wrap - 1; in ff_vc1_pred_mv() 285 off = (s->mb_x == (s->mb_width - 1)) ? -1 : 1; in ff_vc1_pred_mv() 293 if (v->field_mode && s->mb_width == 1) in ff_vc1_pred_mv() 407 X = (s->mb_width << 6) - 4; in ff_vc1_pred_mv() 547 if (s->mb_width > 1) { in ff_vc1_pred_mv_intfr() 561 if (s->mb_x == s->mb_width - 1) { in ff_vc1_pred_mv_intfr() 602 if (s->mb_width == 1) { in ff_vc1_pred_mv_intfr() [all …]
|
D | intrax8.h | 74 int mb_width, mb_height; member 92 int mb_width, int mb_height);
|
D | h264dec.c | 207 for (x = 0; x < h->mb_width; x++) { in ff_h264_alloc_tables() 226 int y_size = (2 * h->mb_width + 1) * (2 * h->mb_height + 1); in ff_h264_slice_context_init() 250 er->mb_width = h->mb_width; in ff_h264_slice_context_init() 253 er->b8_stride = h->mb_width * 2 + 1; in ff_h264_slice_context_init() 263 for (x = 0; x < h->mb_width; x++) in ff_h264_slice_context_init() 264 er->mb_index2xy[x + y * h->mb_width] = x + y * h->mb_stride; in ff_h264_slice_context_init() 266 er->mb_index2xy[h->mb_height * h->mb_width] = (h->mb_height - 1) * in ff_h264_slice_context_init() 267 h->mb_stride + h->mb_width; in ff_h264_slice_context_init() 268 er->dc_val[0] = sl->dc_val_base + h->mb_width * 2 + 2; in ff_h264_slice_context_init() 793 unsigned int nb_mb = p->mb_height * p->mb_width; in h264_export_enc_params() [all …]
|
D | proresenc_kostya.c | 247 int mb_width, mb_height; member 279 const int mb_width = 4 * blocks_per_mb; in get_slice_data() local 283 for (i = 0; i < mbs_per_slice; i++, src += mb_width) { in get_slice_data() 289 if (x + mb_width <= w && y + 16 <= h) { in get_slice_data() 298 bw = FFMIN(w - x, mb_width); in get_slice_data() 306 for (k = bw; k < mb_width; k++) in get_slice_data() 312 mb_width * sizeof(*emu_buf)); in get_slice_data() 340 x += mb_width; in get_slice_data() 982 for (x = mb = 0; x < ctx->mb_width; x += mbs_per_slice, mb++) { in find_quant_thread() 983 while (ctx->mb_width - x < mbs_per_slice) in find_quant_thread() [all …]
|
D | ljpegenc.c | 202 const int mb_width = (avctx->width + s->hsample[0] - 1) / s->hsample[0]; in ljpeg_encode_yuv() local 215 mb_width * 4 * 3 * s->hsample[0] * s->vsample[0]) { in ljpeg_encode_yuv() 220 for (mb_x = 0; mb_x < mb_width; mb_x++) in ljpeg_encode_yuv() 234 const int mb_width = (width + s->hsample[0] - 1) / s->hsample[0]; in ljpeg_encode_frame() local 245 max_pkt_size += mb_width * mb_height * 3 * 4 in ljpeg_encode_frame()
|
D | cavs.c | 409 const int pic_width = 16 * h->mb_width; in mc_dir_part() 661 if (h->mbx == h->mb_width - 1) // MB C not available in ff_cavs_init_mb() 699 if (h->mbx == h->mb_width) { // New mb line in ff_cavs_next_mb() 764 h->top_qp = av_mallocz(h->mb_width); in ff_cavs_init_top_lines() 765 h->top_mv[0] = av_mallocz_array(h->mb_width * 2 + 1, sizeof(cavs_vector)); in ff_cavs_init_top_lines() 766 h->top_mv[1] = av_mallocz_array(h->mb_width * 2 + 1, sizeof(cavs_vector)); in ff_cavs_init_top_lines() 767 h->top_pred_Y = av_mallocz_array(h->mb_width * 2, sizeof(*h->top_pred_Y)); in ff_cavs_init_top_lines() 768 h->top_border_y = av_mallocz_array(h->mb_width + 1, 16); in ff_cavs_init_top_lines() 769 h->top_border_u = av_mallocz_array(h->mb_width, 10); in ff_cavs_init_top_lines() 770 h->top_border_v = av_mallocz_array(h->mb_width, 10); in ff_cavs_init_top_lines() [all …]
|
D | rv10.c | 140 mb_xy = s->mb_x + s->mb_y * s->mb_width; in rv10_decode_picture_header() 148 mb_count = s->mb_width * s->mb_height; in rv10_decode_picture_header() 316 return s->mb_width * s->mb_height - mb_pos; in rv20_decode_picture_header() 461 if (s->mb_x >= s->mb_width || in rv10_decode_packet() 466 mb_pos = s->mb_y * s->mb_width + s->mb_x; in rv10_decode_packet() 467 left = s->mb_width * s->mb_height - mb_pos; in rv10_decode_packet() 473 if (whole_size < s->mb_width * s->mb_height / 8) in rv10_decode_packet() 570 if (++s->mb_x == s->mb_width) { in rv10_decode_packet()
|
D | intrax8.c | 360 w->edges |= 4 * (w->mb_x >= (2 * w->mb_width - 1)); // mb_x for chroma would always be odd in x8_get_prediction_chroma() 378 w->edges |= 4 * (w->mb_x >= (2 * w->mb_width - 1)); in x8_get_prediction() 698 int mb_width, int mb_height) in ff_intrax8_common_init() argument 704 w->mb_width = mb_width; in ff_intrax8_common_init() 710 w->prediction_table = av_mallocz(w->mb_width * 2 * 2); in ff_intrax8_common_init() 769 mb_xy = (w->mb_y >> 1) * (w->mb_width + 1); in ff_intrax8_decode_picture() 772 for (w->mb_x = 0; w->mb_x < w->mb_width * 2; w->mb_x++) { in ff_intrax8_decode_picture()
|
D | mxpegdec.c | 42 unsigned mb_width, mb_height; /* size of picture in MB's from MXM header */ member 95 s->mb_width = AV_RL16(buf_ptr+4); in mxpeg_decode_mxm() 97 mb_count = s->mb_width * s->mb_height; in mxpeg_decode_mxm() 160 if ((jpg->width + 0x0F)>>4 != s->mb_width || in mxpeg_check_dimensions()
|
D | vaapi_mpeg4.c | 88 .num_macroblocks_in_gob = s->mb_width * H263_GOB_HEIGHT(s->height), in vaapi_mpeg4_start_frame() 90 (s->mb_width * s->mb_height) / (s->mb_width * H263_GOB_HEIGHT(s->height)), in vaapi_mpeg4_start_frame()
|
D | h264_slice.c | 139 h->mb_width * 16 * 3 * sizeof(uint8_t) * 2); in alloc_scratch_buffers() 141 h->mb_width * 16 * 3 * sizeof(uint8_t) * 2); in alloc_scratch_buffers() 164 const int b4_stride = h->mb_width * 4 + 1; in init_table_pools() 251 pic->mb_width = h->mb_width; in alloc_picture() 313 h->mb_width != h1->mb_width || in ff_h264_update_thread_context() 351 h->mb_width = h1->mb_width; in ff_h264_update_thread_context() 1036 if (h->mb_width != h->ps.sps->mb_width || in h264_init_ps() 1050 ( 16*sps->mb_width != h->avctx->coded_width in h264_init_ps() 1054 || h->mb_width != sps->mb_width in h264_init_ps() 1069 h->mb_width = sps->mb_width; in h264_init_ps() [all …]
|
D | dnxhdenc.c | 453 ctx->m.mb_width = (avctx->width + 15) / 16; in dnxhd_encode_init() 466 ctx->m.mb_num = ctx->m.mb_height * ctx->m.mb_width; in dnxhd_encode_init() 842 for (mb_x = 0; mb_x < ctx->m.mb_width; mb_x++) { in dnxhd_calc_bits_thread() 843 unsigned mb = mb_y * ctx->m.mb_width + mb_x; in dnxhd_calc_bits_thread() 898 for (mb_x = 0; mb_x < ctx->m.mb_width; mb_x++) { in dnxhd_encode_thread() 899 unsigned mb = mb_y * ctx->m.mb_width + mb_x; in dnxhd_encode_thread() 932 for (mb_x = 0; mb_x < ctx->m.mb_width; mb_x++) { in dnxhd_setup_threads_slices() 933 unsigned mb = mb_y * ctx->m.mb_width + mb_x; in dnxhd_setup_threads_slices() 954 for (mb_x = 0; mb_x < ctx->m.mb_width; ++mb_x, pix += 16) { in dnxhd_mb_var_thread() 955 unsigned mb = mb_y * ctx->m.mb_width + mb_x; in dnxhd_mb_var_thread() [all …]
|
D | mpegpicture.c | 185 int mb_stride, int mb_width, int mb_height, int b8_stride) in alloc_picture_tables() argument 221 pic->alloc_mb_width = mb_width; in alloc_picture_tables() 235 int mb_stride, int mb_width, int mb_height, int b8_stride, in ff_alloc_picture() argument 241 if ( pic->alloc_mb_width != mb_width in ff_alloc_picture() 261 mb_stride, mb_width, mb_height, b8_stride); in ff_alloc_picture()
|
D | rv34.c | 570 }else if((s->mb_x+1) == s->mb_width && (r->avail_cache[6-5] & type) & mask){ in rv34_pred_mv_b() 1208 dist = (s->mb_x - s->resync_mb_x) + (s->mb_y - s->resync_mb_y) * s->mb_width; in rv34_decode_inter_macroblock() 1212 if(dist >= s->mb_width) in rv34_decode_inter_macroblock() 1215 if(((s->mb_x+1) < s->mb_width) && dist >= s->mb_width - 1) in rv34_decode_inter_macroblock() 1217 if(s->mb_x && dist > s->mb_width) in rv34_decode_inter_macroblock() 1310 dist = (s->mb_x - s->resync_mb_x) + (s->mb_y - s->resync_mb_y) * s->mb_width; in rv34_decode_intra_macroblock() 1314 if(dist >= s->mb_width) in rv34_decode_intra_macroblock() 1317 if(((s->mb_x+1) < s->mb_width) && dist >= s->mb_width - 1) in rv34_decode_intra_macroblock() 1319 if(s->mb_x && dist > s->mb_width) in rv34_decode_intra_macroblock() 1371 r->intra_types_stride = r->s.mb_width * 4 + 4; in rv34_decoder_alloc() [all …]
|
D | mdec.c | 50 int mb_width; member 199 for (a->mb_x = 0; a->mb_x < a->mb_width; a->mb_x++) { in decode_frame() 218 a->mb_width = (avctx->coded_width + 15) / 16; in decode_init()
|
D | h261dec.c | 215 int b_stride = 2*s->mb_width + 1; in h261_decode_mb_skipped() 444 int b_stride = 2*s->mb_width + 1; in h261_decode_mb() 510 s->mb_width = 11; in h261_decode_picture_header() 515 s->mb_width = 22; in h261_decode_picture_header() 519 s->mb_num = s->mb_width * s->mb_height; in h261_decode_picture_header()
|
D | mpeg_er.c | 110 er->mb_width = s->mb_width; in ff_mpeg_er_init()
|