/third_party/ffmpeg/libavcodec/ |
H A D | error_resilience.c | 48 *stride = s->mb_width * 4; in set_mv_strides() 394 const int mb_width = s->mb_width; in guess_mv() local 415 for (i = 0; i < mb_width * mb_height; i++) { in guess_mv() 439 num_avail <= FFMAX(mb_width, mb_height) / 2) { in guess_mv() 441 for (mb_x = 0; mb_x < s->mb_width; mb_x++) { in guess_mv() 461 for (mb_x = 0; mb_x < mb_width; mb_x++) { in guess_mv() 466 if (mb_x+1 < mb_width) add_blocklist(blocklist, &blocklist_length, fixed, mb_x + 1, mb_y, mb_xy + 1); in guess_mv() 504 if (mb_x + 1 < mb_width) in guess_mv() 529 if (mb_x + 1 < mb_width in guess_mv() [all...] |
H A D | rv10enc.c | 54 if (s->mb_width * s->mb_height >= (1U << 12)) { in ff_rv10_encode_picture_header() 56 s->mb_width * s->mb_height); in ff_rv10_encode_picture_header() 61 put_bits(&s->pb, 12, s->mb_width * s->mb_height); in ff_rv10_encode_picture_header()
|
H A 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() 419 for (x = 0; x < ctx->mb_width; x += ctx->slice_width) { in aic_decode_frame() 461 ctx->mb_width = FFALIGN(avctx->width, 16) >> 4; in aic_decode_init() 464 ctx->num_x_slices = (ctx->mb_width + 15) >> 4; in aic_decode_init() 466 for (i = 1; i < ctx->mb_width; i++) { in aic_decode_init() 467 if (!(ctx->mb_width % i) && (ctx->mb_width / i <= 32)) { in aic_decode_init() 468 ctx->slice_width = ctx->mb_width / i; in aic_decode_init()
|
H A D | vp8.c | 81 if (!(f->seg_map = av_buffer_allocz(s->mb_width * s->mb_height))) in vp8_alloc_frame() 197 if (width != s->avctx->width || ((width+15)/16 != s->mb_width || (height+15)/16 != s->mb_height) && s->macroblocks_base || in update_dimensions() 216 s->mb_width = (s->avctx->coded_width + 15) / 16; in update_dimensions() 222 s->macroblocks_base = av_mallocz((s->mb_width + s->mb_height * 2 + 1) * in update_dimensions() 224 s->intra4x4_pred_mode_top = av_mallocz(s->mb_width * 4); in update_dimensions() 226 s->macroblocks_base = av_mallocz((s->mb_width + 2) * (s->mb_height + 2) * in update_dimensions() 228 s->top_nnz = av_mallocz(s->mb_width * sizeof(*s->top_nnz)); in update_dimensions() 229 s->top_border = av_mallocz((s->mb_width + 1) * sizeof(*s->top_border)); in update_dimensions() 240 av_mallocz(s->mb_width * sizeof(*s->thread_data[0].filter_strength)); in update_dimensions() 517 int width = s->mb_width * 1 in vp7_fade_frame() 1003 vp7_calculate_mb_offset(int mb_x, int mb_y, int mb_width, int xoffset, int yoffset, int boundary, int *edge_x, int *edge_y) vp7_calculate_mb_offset() argument 1561 xchg_mb_border(uint8_t *top_border, uint8_t *src_y, uint8_t *src_cb, uint8_t *src_cr, ptrdiff_t linesize, ptrdiff_t uvlinesize, int mb_x, int mb_y, int mb_width, int simple, int xchg) xchg_mb_border() argument [all...] |
H A 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 in vp56_size_changed() [all...] |
H A D | tscc2.c | 45 int mb_width, mb_height; member 191 for (mb_x = 0; mb_x < c->mb_width; mb_x++) { in tscc2_decode_slice() 192 q = c->slice_quants[mb_x + c->mb_width * mb_y]; in tscc2_decode_slice() 217 int num_mb = c->mb_width * c->mb_height; in tscc2_decode_frame() 289 int skip_row = 1, j, off = i * c->mb_width; in tscc2_decode_frame() 290 for (j = 0; j < c->mb_width; j++) { in tscc2_decode_frame() 342 c->mb_width = FFALIGN(avctx->width, 16) >> 4; in tscc2_decode_init() 344 c->slice_quants = av_malloc(c->mb_width * c->mb_height); in tscc2_decode_init()
|
H A D | wmv2dec.c | 113 for (mb_x = 0; mb_x < s->mb_width; mb_x++) in parse_mb_skip() 118 if (get_bits_left(&s->gb) < s->mb_height * s->mb_width) in parse_mb_skip() 121 for (mb_x = 0; mb_x < s->mb_width; mb_x++) in parse_mb_skip() 130 for (mb_x = 0; mb_x < s->mb_width; mb_x++) in parse_mb_skip() 134 for (mb_x = 0; mb_x < s->mb_width; mb_x++) in parse_mb_skip() 141 for (mb_x = 0; mb_x < s->mb_width; mb_x++) { in parse_mb_skip() 158 for (mb_x = 0; mb_x < s->mb_width; mb_x++) in parse_mb_skip() 225 int run = skip_type == SKIP_TYPE_COL ? s->mb_width : s->mb_height; in ff_wmv2_decode_picture_header() 583 w->s.mb_width, w->s.mb_height); in wmv2_decode_init()
|
H A D | mpegutils.c | 105 int mb_width, int mb_height, int mb_stride, int quarter_sample) in ff_print_debug_info2() 111 const int mv_stride = (mb_width << mv_sample_log2) + in ff_print_debug_info2() 117 AVMotionVector *mvs = av_malloc_array(mb_width * mb_height, 2 * 4 * sizeof(AVMotionVector)); in ff_print_debug_info2() 122 for (mb_x = 0; mb_x < mb_width; mb_x++) { in ff_print_debug_info2() 201 for (x = 0; x < mb_width; x++) { in ff_print_debug_info2() 103 ff_print_debug_info2(AVCodecContext *avctx, AVFrame *pict, uint8_t *mbskip_table, uint32_t *mbtype_table, int8_t *qscale_table, int16_t (*motion_val[2])[2], int mb_width, int mb_height, int mb_stride, int quarter_sample) ff_print_debug_info2() argument
|
H A D | h264dec.c | 206 for (x = 0; x < h->mb_width; x++) { in ff_h264_alloc_tables() 217 int y_size = (2 * h->mb_width + 1) * (2 * h->mb_height + 1); in ff_h264_alloc_tables() 227 er->mb_width = h->mb_width; in ff_h264_alloc_tables() 230 er->b8_stride = h->mb_width * 2 + 1; in ff_h264_alloc_tables() 240 for (x = 0; x < h->mb_width; x++) in ff_h264_alloc_tables() 241 er->mb_index2xy[x + y * h->mb_width] = x + y * h->mb_stride; in ff_h264_alloc_tables() 243 er->mb_index2xy[h->mb_height * h->mb_width] = (h->mb_height - 1) * in ff_h264_alloc_tables() 244 h->mb_stride + h->mb_width; in ff_h264_alloc_tables() 245 er->dc_val[0] = h->dc_val_base + h->mb_width * in ff_h264_alloc_tables() [all...] |
H A D | intrax8.h | 74 int mb_width, mb_height; member 84 * @param mb_width macroblock width 92 int mb_width, int mb_height);
|
H A D | h264_slice.c | 142 h->mb_width * 16 * 3 * sizeof(uint8_t) * 2); in alloc_scratch_buffers() 144 h->mb_width * 16 * 3 * sizeof(uint8_t) * 2); in alloc_scratch_buffers() 167 const int b4_stride = h->mb_width * 4 + 1; in init_table_pools() 263 pic->mb_width = h->mb_width; in alloc_picture() 325 h->mb_width != h1->mb_width || in ff_h264_update_thread_context() 363 h->mb_width = h1->mb_width; in ff_h264_update_thread_context() 1058 if (h->mb_width ! in h264_init_ps() [all...] |
H A D | mxpegdec.c | 43 unsigned mb_width, mb_height; /* size of picture in MB's from MXM header */ member 96 s->mb_width = AV_RL16(buf_ptr+4); in mxpeg_decode_mxm() 98 mb_count = s->mb_width * s->mb_height; in mxpeg_decode_mxm() 161 if ((jpg->width + 0x0F)>>4 != s->mb_width || in mxpeg_check_dimensions()
|
H A D | cavs.c | 405 const int pic_width = 16 * h->mb_width; in mc_dir_part() 657 if (h->mbx == h->mb_width - 1) // MB C not available in ff_cavs_init_mb() 695 if (h->mbx == h->mb_width) { // New mb line in ff_cavs_next_mb() 760 h->top_qp = av_mallocz(h->mb_width); in ff_cavs_init_top_lines() 761 h->top_mv[0] = av_calloc(h->mb_width * 2 + 1, sizeof(cavs_vector)); in ff_cavs_init_top_lines() 762 h->top_mv[1] = av_calloc(h->mb_width * 2 + 1, sizeof(cavs_vector)); in ff_cavs_init_top_lines() 763 h->top_pred_Y = av_calloc(h->mb_width * 2, sizeof(*h->top_pred_Y)); in ff_cavs_init_top_lines() 764 h->top_border_y = av_calloc(h->mb_width + 1, 16); in ff_cavs_init_top_lines() 765 h->top_border_u = av_calloc(h->mb_width, 10); in ff_cavs_init_top_lines() 766 h->top_border_v = av_calloc(h->mb_width, 1 in ff_cavs_init_top_lines() [all...] |
H A 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() 835 for (mb_x = 0; mb_x < ctx->m.mb_width; mb_x++) { in dnxhd_calc_bits_thread() 836 unsigned mb = mb_y * ctx->m.mb_width + mb_x; in dnxhd_calc_bits_thread() 891 for (mb_x = 0; mb_x < ctx->m.mb_width; mb_x++) { in dnxhd_encode_thread() 892 unsigned mb = mb_y * ctx->m.mb_width + mb_x; in dnxhd_encode_thread() 926 for (mb_x = 0; mb_x < ctx->m.mb_width; mb_x++) { in dnxhd_setup_threads_slices() 927 unsigned mb = mb_y * ctx->m.mb_width + mb_x; in dnxhd_setup_threads_slices() 948 for (mb_x = 0; mb_x < ctx->m.mb_width; ++mb_x, pix += 16) { in dnxhd_mb_var_thread() 949 unsigned mb = mb_y * ctx->m.mb_width in dnxhd_mb_var_thread() [all...] |
H A 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 in ff_vc1_pred_mv_intfr() [all...] |
H A D | vaapi_mpeg4.c | 90 .num_macroblocks_in_gob = s->mb_width * H263_GOB_HEIGHT(s->height), in vaapi_mpeg4_start_frame() 92 (s->mb_width * s->mb_height) / (s->mb_width * H263_GOB_HEIGHT(s->height)), in vaapi_mpeg4_start_frame()
|
H A 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() 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() 694 ff_intrax8_common_init(AVCodecContext *avctx, IntraX8Context *w, IDCTDSPContext *idsp, int16_t (*block)[64], int block_last_index[12], int mb_width, int mb_height) ff_intrax8_common_init() argument
|
H A D | rv10.c | 143 mb_xy = s->mb_x + s->mb_y * s->mb_width; in rv10_decode_picture_header() 151 mb_count = s->mb_width * s->mb_height; in rv10_decode_picture_header() 317 return s->mb_width * s->mb_height - mb_pos; in rv20_decode_picture_header() 462 if (s->mb_x >= s->mb_width || in rv10_decode_packet() 467 mb_pos = s->mb_y * s->mb_width + s->mb_x; in rv10_decode_packet() 468 left = s->mb_width * s->mb_height - mb_pos; in rv10_decode_packet() 474 if (whole_size < s->mb_width * s->mb_height / 8) in rv10_decode_packet() 571 if (++s->mb_x == s->mb_width) { in rv10_decode_packet()
|
H A D | ljpegenc.c | 196 const int mb_width = (avctx->width + s->hsample[0] - 1) / s->hsample[0]; in ljpeg_encode_yuv() local 202 mb_width * 4 * 3 * s->hsample[0] * s->vsample[0]) { in ljpeg_encode_yuv() 207 for (mb_x = 0; mb_x < mb_width; mb_x++) in ljpeg_encode_yuv() 221 const int mb_width = (width + s->hsample[0] - 1) / s->hsample[0]; in ljpeg_encode_frame() local 232 max_pkt_size += mb_width * mb_height * 3 * 4 in ljpeg_encode_frame()
|
H A D | mpegpicture.c | 206 int mb_stride, int mb_width, int mb_height, int b8_stride) in alloc_picture_tables() 242 pic->alloc_mb_width = mb_width; in alloc_picture_tables() 256 int mb_stride, int mb_width, int mb_height, int b8_stride, in ff_alloc_picture() 262 if ( pic->alloc_mb_width != mb_width in ff_alloc_picture() 282 mb_stride, mb_width, mb_height, b8_stride); in ff_alloc_picture() 205 alloc_picture_tables(AVCodecContext *avctx, Picture *pic, int encoding, int out_format, int mb_stride, int mb_width, int mb_height, int b8_stride) alloc_picture_tables() argument 253 ff_alloc_picture(AVCodecContext *avctx, Picture *pic, MotionEstContext *me, ScratchpadContext *sc, int shared, int encoding, int chroma_x_shift, int chroma_y_shift, int out_format, int mb_stride, int mb_width, int mb_height, int b8_stride, ptrdiff_t *linesize, ptrdiff_t *uvlinesize) ff_alloc_picture() argument
|
H A D | proresenc_kostya.c | 248 int mb_width, mb_height; member 280 const int mb_width = 4 * blocks_per_mb; in get_slice_data() local 284 for (i = 0; i < mbs_per_slice; i++, src += mb_width) { in get_slice_data() 290 if (x + mb_width <= w && y + 16 <= h) { in get_slice_data() 299 bw = FFMIN(w - x, mb_width); in get_slice_data() 307 for (k = bw; k < mb_width; k++) in get_slice_data() 313 mb_width * sizeof(*emu_buf)); in get_slice_data() 341 x += mb_width; in get_slice_data() 968 for (x = mb = 0; x < ctx->mb_width; x += mbs_per_slice, mb++) { in find_quant_thread() 969 while (ctx->mb_width in find_quant_thread() [all...] |
H A D | rv34.c | 572 }else if((s->mb_x+1) == s->mb_width && (r->avail_cache[6-5] & type) & mask){ in rv34_pred_mv_b() 1210 dist = (s->mb_x - s->resync_mb_x) + (s->mb_y - s->resync_mb_y) * s->mb_width; in rv34_decode_inter_macroblock() 1214 if(dist >= s->mb_width) in rv34_decode_inter_macroblock() 1217 if(((s->mb_x+1) < s->mb_width) && dist >= s->mb_width - 1) in rv34_decode_inter_macroblock() 1219 if(s->mb_x && dist > s->mb_width) in rv34_decode_inter_macroblock() 1312 dist = (s->mb_x - s->resync_mb_x) + (s->mb_y - s->resync_mb_y) * s->mb_width; in rv34_decode_intra_macroblock() 1316 if(dist >= s->mb_width) in rv34_decode_intra_macroblock() 1319 if(((s->mb_x+1) < s->mb_width) && dist >= s->mb_width in rv34_decode_intra_macroblock() [all...] |
H A D | vc1_loopfilter.c | 152 if (s->mb_x == s->mb_width - 1 && in ff_vc1_i_overlap_filter() 194 if (s->mb_x == s->mb_width - 1) in ff_vc1_p_overlap_filter() 510 if (s->mb_x == s->mb_width - 1) { in ff_vc1_p_loop_filter() 572 if (s->mb_x == s->mb_width - 1) { in ff_vc1_p_loop_filter() 635 if (s->mb_x == s->mb_width - 1) { in ff_vc1_p_loop_filter() 698 if (s->mb_x == s->mb_width - 1) { in ff_vc1_p_loop_filter() 759 if (s->mb_x == s->mb_width - 1) { in ff_vc1_p_loop_filter() 943 if (s->mb_x == s->mb_width - 1) { in ff_vc1_p_intfr_loop_filter() 972 if (s->mb_x == s->mb_width - 1) { in ff_vc1_p_intfr_loop_filter() 1001 if (s->mb_x == s->mb_width in ff_vc1_p_intfr_loop_filter() [all...] |
H A D | mdec.c | 51 int mb_width; member 198 for (a->mb_x = 0; a->mb_x < a->mb_width; a->mb_x++) { in decode_frame() 217 a->mb_width = (avctx->coded_width + 15) / 16; in decode_init()
|
H A D | mpeg_er.c | 110 er->mb_width = s->mb_width; in ff_mpeg_er_init()
|