Home
last modified time | relevance | path

Searched refs:mb_stride (Results 1 – 25 of 52) sorted by relevance

123

/third_party/ffmpeg/libavcodec/
Dvc1_loopfilter.c110 int mb_pos = s->mb_x + s->mb_y * s->mb_stride; in ff_vc1_i_overlap_filter()
150 ((i & 2) || v->over_flags_plane[mb_pos - 1 - s->mb_stride])))))) in ff_vc1_i_overlap_filter()
156 ((i & 2) || v->over_flags_plane[mb_pos - s->mb_stride])))))) in ff_vc1_i_overlap_filter()
166 int mb_pos = s->mb_x + s->mb_y * s->mb_stride; in ff_vc1_p_overlap_filter()
275 int mb_pos = s->mb_x + s->mb_y * s->mb_stride; in ff_vc1_i_loop_filter()
292 fieldtx = v->fieldtx_plane[mb_pos - s->mb_stride - 1]; in ff_vc1_i_loop_filter()
298 fieldtx = v->fieldtx_plane[mb_pos - s->mb_stride]; in ff_vc1_i_loop_filter()
437 bottom_is_intra = is_intra[s->mb_stride] & (1 << block_num); in vc1_p_v_loop_filter()
438 bottom_cbp = cbp[s->mb_stride] >> (block_num * 4); in vc1_p_v_loop_filter()
443 bottom_is_intra = is_intra[s->mb_stride] & (1 << block_num - 2); in vc1_p_v_loop_filter()
[all …]
Derror_resilience.c76 dcu = s->dc_val[1][mb_x + mb_y * s->mb_stride]; in put_dc()
77 dcv = s->dc_val[2][mb_x + mb_y * s->mb_stride]; in put_dc()
154 int mb_index_j= (b_x>>is_luma) + (b_y>>is_luma)*s->mb_stride; in guess_dc()
167 int mb_index_j= (b_x>>is_luma) + (b_y>>is_luma)*s->mb_stride; in guess_dc()
182 int mb_index_j= (b_x>>is_luma) + (b_y>>is_luma)*s->mb_stride; in guess_dc()
195 int mb_index_j= (b_x>>is_luma) + (b_y>>is_luma)*s->mb_stride; in guess_dc()
211 mb_index = (b_x >> is_luma) + (b_y >> is_luma) * s->mb_stride; in guess_dc()
254 …int left_status = s->error_status_table[( b_x >> is_luma) + (b_y >> is_luma) * s->mb_stride]; in h_block_filter()
255 …int right_status = s->error_status_table[((b_x + 1) >> is_luma) + (b_y >> is_luma) * s->mb_stride]; in h_block_filter()
256 …t_intra = IS_INTRA(s->cur_pic.mb_type[( b_x >> is_luma) + (b_y >> is_luma) * s->mb_stride]); in h_block_filter()
[all …]
Dmpegpicture.c185 int mb_stride, int mb_width, int mb_height, int b8_stride) in alloc_picture_tables() argument
187 const int big_mb_num = mb_stride * (mb_height + 1) + 1; in alloc_picture_tables()
188 const int mb_array_size = mb_stride * mb_height; in alloc_picture_tables()
194 pic->qscale_table_buf = av_buffer_allocz(big_mb_num + mb_stride); in alloc_picture_tables()
195 pic->mb_type_buf = av_buffer_allocz((big_mb_num + mb_stride) * in alloc_picture_tables()
223 pic->alloc_mb_stride = mb_stride; in alloc_picture_tables()
235 int mb_stride, int mb_width, int mb_height, int b8_stride, in ff_alloc_picture() argument
261 mb_stride, mb_width, mb_height, b8_stride); in ff_alloc_picture()
274 pic->qscale_table = pic->qscale_table_buf->data + 2 * mb_stride + 1; in ff_alloc_picture()
275 pic->mb_type = (uint32_t*)pic->mb_type_buf->data + 2 * mb_stride + 1; in ff_alloc_picture()
Dh263.c55 const int mb_xy = s->mb_y * s->mb_stride + s->mb_x; in ff_h263_update_motion_val()
120 wrap = s->mb_stride; in ff_h263_pred_dc()
151 const int xy = s->mb_y * s->mb_stride + s->mb_x; in ff_h263_loop_filter()
170 if (IS_SKIP(s->current_picture.mb_type[xy - s->mb_stride])) in ff_h263_loop_filter()
173 qp_tt = s->current_picture.qscale_table[xy - s->mb_stride]; in ff_h263_loop_filter()
193 if (qp_tt || IS_SKIP(s->current_picture.mb_type[xy - 1 - s->mb_stride])) in ff_h263_loop_filter()
196 qp_dt = s->current_picture.qscale_table[xy - 1 - s->mb_stride]; in ff_h263_loop_filter()
248 wrap = s->mb_stride; in ff_h263_pred_acdc()
Dmpeg_er.c103 int mb_array_size = s->mb_height * s->mb_stride; in ff_mpeg_er_init()
112 er->mb_stride = s->mb_stride; in ff_mpeg_er_init()
115 er->er_temp_buffer = av_malloc(s->mb_height * s->mb_stride * (4*sizeof(int) + 1)); in ff_mpeg_er_init()
Dvc1dec.c331 v->mv_type_mb_plane = av_malloc (s->mb_stride * mb_height); in ff_vc1_decode_init_alloc_tables()
332 v->direct_mb_plane = av_malloc (s->mb_stride * mb_height); in ff_vc1_decode_init_alloc_tables()
333 v->forward_mb_plane = av_malloc (s->mb_stride * mb_height); in ff_vc1_decode_init_alloc_tables()
334 v->fieldtx_plane = av_mallocz(s->mb_stride * mb_height); in ff_vc1_decode_init_alloc_tables()
335 v->acpred_plane = av_malloc (s->mb_stride * mb_height); in ff_vc1_decode_init_alloc_tables()
336 v->over_flags_plane = av_malloc (s->mb_stride * mb_height); in ff_vc1_decode_init_alloc_tables()
343 v->cbp_base = av_malloc(sizeof(v->cbp_base[0]) * 3 * s->mb_stride); in ff_vc1_decode_init_alloc_tables()
346 v->cbp = v->cbp_base + 2 * s->mb_stride; in ff_vc1_decode_init_alloc_tables()
347 v->ttblk_base = av_malloc(sizeof(v->ttblk_base[0]) * 3 * s->mb_stride); in ff_vc1_decode_init_alloc_tables()
350 v->ttblk = v->ttblk_base + 2 * s->mb_stride; in ff_vc1_decode_init_alloc_tables()
[all …]
Dh264dec.c76 sl->mb_xy = mb_x + mb_y * h->mb_stride; in h264_er_decode_mb()
183 const int big_mb_num = h->mb_stride * (h->mb_height + 1); in ff_h264_alloc_tables()
184 const int row_mb_num = 2*h->mb_stride*FFMAX(h->nb_slice_ctx, 1); in ff_h264_alloc_tables()
185 const int st_size = big_mb_num + h->mb_stride; in ff_h264_alloc_tables()
205 h->slice_table = h->slice_table_base + h->mb_stride * 2 + 1; in ff_h264_alloc_tables()
208 const int mb_xy = x + y * h->mb_stride; in ff_h264_alloc_tables()
212 h->mb2br_xy[mb_xy] = 8 * (FMO ? mb_xy : (mb_xy % (2 * h->mb_stride))); in ff_h264_alloc_tables()
225 int mb_array_size = h->mb_height * h->mb_stride; in ff_h264_slice_context_init()
227 int c_size = h->mb_stride * (h->mb_height + 1); in ff_h264_slice_context_init()
241 const int er_size = h->mb_height * h->mb_stride * (4*sizeof(int) + 1); in ff_h264_slice_context_init()
[all …]
Drv30.c159 mb_pos = row * s->mb_stride; in rv30_loop_filter()
171 mb_pos = row * s->mb_stride; in rv30_loop_filter()
213 mb_pos = row * s->mb_stride; in rv30_loop_filter()
217 … top_lim = rv30_loop_filt_lim[s->current_picture_ptr->qscale_table[mb_pos - s->mb_stride]]; in rv30_loop_filter()
225 else if(!j && r->deblock_coefs[mb_pos - s->mb_stride] & (1 << (ij + 12))) in rv30_loop_filter()
237 top_cbp = (r->cbp_chroma[mb_pos - s->mb_stride] >> (k*4)) & 0xF; in rv30_loop_filter()
Dmpegutils.c106 int mb_width, int mb_height, int mb_stride, int quarter_sample) in ff_print_debug_info2() argument
124 int i, direction, mb_type = mbtype_table[mb_x + mb_y * mb_stride]; in ff_print_debug_info2()
204 int count = mbskip_table ? mbskip_table[x + y * mb_stride] : 0; in ff_print_debug_info2()
211 qscale_table[x + y * mb_stride]); in ff_print_debug_info2()
214 int mb_type = mbtype_table[x + y * mb_stride]; in ff_print_debug_info2()
Dwmv2dec.c45 mb_type[mb_y * s->mb_stride + mb_x] = in parse_mb_skip()
53 mb_type[mb_y * s->mb_stride + mb_x] = in parse_mb_skip()
62 mb_type[mb_y * s->mb_stride + mb_x] = in parse_mb_skip()
66 mb_type[mb_y * s->mb_stride + mb_x] = in parse_mb_skip()
77 mb_type[mb_y * s->mb_stride + mb_x] = in parse_mb_skip()
81 mb_type[mb_y * s->mb_stride + mb_x] = in parse_mb_skip()
90 coded_mb_count += !IS_SKIP(mb_type[mb_y * s->mb_stride + mb_x]); in parse_mb_skip()
388 if (IS_SKIP(s->current_picture.mb_type[s->mb_y * s->mb_stride + s->mb_x])) { in ff_wmv2_decode_mb()
Dsvq3.c122 int mb_stride, mb_num; member
781 … (s->intra4x4_pred_mode[s->mb2br_xy[mb_xy - s->mb_stride]] == -1) ? PART_NOT_AVAILABLE : 1, 4); in svq3_decode_mb()
787 (s->intra4x4_pred_mode[s->mb2br_xy[mb_xy - s->mb_stride + 1] + 6] == -1 || in svq3_decode_mb()
788 … s->intra4x4_pred_mode[s->mb2br_xy[mb_xy - s->mb_stride]] == -1) ? PART_NOT_AVAILABLE : 1; in svq3_decode_mb()
795 … (s->intra4x4_pred_mode[s->mb2br_xy[mb_xy - s->mb_stride - 1] + 3] == -1) ? PART_NOT_AVAILABLE : 1; in svq3_decode_mb()
844 …intra4x4_pred_mode_cache[4 + 8 * 0] = s->intra4x4_pred_mode[s->mb2br_xy[mb_xy - s->mb_stride] + 0]; in svq3_decode_mb()
845 …intra4x4_pred_mode_cache[5 + 8 * 0] = s->intra4x4_pred_mode[s->mb2br_xy[mb_xy - s->mb_stride] + 1]; in svq3_decode_mb()
846 …intra4x4_pred_mode_cache[6 + 8 * 0] = s->intra4x4_pred_mode[s->mb2br_xy[mb_xy - s->mb_stride] + 2]; in svq3_decode_mb()
847 …intra4x4_pred_mode_cache[7 + 8 * 0] = s->intra4x4_pred_mode[s->mb2br_xy[mb_xy - s->mb_stride] + 3]; in svq3_decode_mb()
1099 memset(s->intra4x4_pred_mode + s->mb2br_xy[mb_xy - s->mb_stride], in svq3_decode_slice_header()
[all …]
Dh264_direct.c291 ((sl->mb_y & ~1) + sl->col_parity) * h->mb_stride; in pred_spatial_direct_motion()
295 mb_xy += h->mb_stride * sl->col_fieldoff; // non-zero for FL -> FL & differ parity in pred_spatial_direct_motion()
301 mb_xy = (sl->mb_y & ~1) * h->mb_stride + sl->mb_x; in pred_spatial_direct_motion()
303 mb_type_col[1] = sl->ref_list[1][0].parent->mb_type[mb_xy + h->mb_stride]; in pred_spatial_direct_motion()
304 b8_stride = 2 + 4 * h->mb_stride; in pred_spatial_direct_motion()
509 ((sl->mb_y & ~1) + sl->col_parity) * h->mb_stride; in pred_temp_direct_motion()
513 mb_xy += h->mb_stride * sl->col_fieldoff; // non-zero for FL -> FL & differ parity in pred_temp_direct_motion()
519 mb_xy = sl->mb_x + (sl->mb_y & ~1) * h->mb_stride; in pred_temp_direct_motion()
521 mb_type_col[1] = sl->ref_list[1][0].parent->mb_type[mb_xy + h->mb_stride]; in pred_temp_direct_motion()
522 b8_stride = 2 + 4 * h->mb_stride; in pred_temp_direct_motion()
Dh264_mvpred.h50 const int mb_type = mb_types[xy + (y4 >> 2) * h->mb_stride]; \ in fetch_diagonal_mv()
67 SET_DIAG_MV(* 2, >> 1, sl->left_mb_xy[0] + h->mb_stride, in fetch_diagonal_mv()
370 top_xy = mb_xy - (h->mb_stride << MB_FIELD(sl)); in fill_decode_neighbors()
384 left_xy[LBOT] = left_xy[LTOP] = mb_xy - h->mb_stride - 1; in fill_decode_neighbors()
386 left_xy[LBOT] += h->mb_stride; in fill_decode_neighbors()
389 topleft_xy += h->mb_stride; in fill_decode_neighbors()
398 topleft_xy += h->mb_stride & (((h->cur_pic.mb_type[top_xy - 1] >> 7) & 1) - 1); in fill_decode_neighbors()
399 topright_xy += h->mb_stride & (((h->cur_pic.mb_type[top_xy + 1] >> 7) & 1) - 1); in fill_decode_neighbors()
400 top_xy += h->mb_stride & (((h->cur_pic.mb_type[top_xy] >> 7) & 1) - 1); in fill_decode_neighbors()
404 left_xy[LBOT] += h->mb_stride; in fill_decode_neighbors()
[all …]
Drv40.c236 int mb_pos = s->mb_x + s->mb_y * s->mb_stride; in rv40_decode_mb_info()
252 blocks[r->mb_type[mb_pos - s->mb_stride]]++; in rv40_decode_mb_info()
254 blocks[r->mb_type[mb_pos - s->mb_stride + 1]]++; in rv40_decode_mb_info()
256 blocks[r->mb_type[mb_pos - s->mb_stride - 1]]++; in rv40_decode_mb_info()
374 mb_pos = row * s->mb_stride; in rv40_loop_filter()
382 mb_pos = row * s->mb_stride; in rv40_loop_filter()
404 int pos = mb_pos + neighbour_offs_x[i] + neighbour_offs_y[i]*s->mb_stride; in rv40_loop_filter()
Dmotion_est.c499 const int xy= s->mb_x + s->mb_y*s->mb_stride; in set_p_mv_tables()
750 const int mot_stride= s->mb_stride; in interlaced_search()
918 pic->mb_mean[s->mb_stride * mb_y + mb_x] = (sum+128)>>8; in ff_estimate_p_frame_motion()
919 pic->mb_var [s->mb_stride * mb_y + mb_x] = (varc+128)>>8; in ff_estimate_p_frame_motion()
966 pic->mc_mb_var[s->mb_stride * mb_y + mb_x] = (vard+128)>>8; in ff_estimate_p_frame_motion()
1047 … s->current_picture.mb_type[mb_y*s->mb_stride + mb_x] = CANDIDATE_MB_TYPE_INTRA; //FIXME cleanup in ff_estimate_p_frame_motion()
1049 s->current_picture.mb_type[mb_y*s->mb_stride + mb_x] = 0; in ff_estimate_p_frame_motion()
1058 s->mb_type[mb_y*s->mb_stride + mb_x]= mb_type; in ff_estimate_p_frame_motion()
1068 const int xy= mb_x + mb_y*s->mb_stride; in ff_pre_estimate_p_frame_motion()
1091 P_TOP[0] = s->p_mv_table[xy + s->mb_stride ][0]; in ff_pre_estimate_p_frame_motion()
[all …]
Dmpegvideo.c355 s->mb_stride, s->mb_width, s->mb_height, s->b8_stride, in alloc_picture()
362 int c_size = s->mb_stride * (s->mb_height + 1); in init_duplicate_context()
367 yc_size += 2*s->b8_stride + 2*s->mb_stride; in init_duplicate_context()
402 s->ac_val[1] = s->ac_val_base + y_size + s->mb_stride + 1; in init_duplicate_context()
721 s->mb_stride = s->mb_width + 1; in init_context_frame()
723 mb_array_size = s->mb_height * s->mb_stride; in init_context_frame()
724 mv_table_size = (s->mb_height + 2) * s->mb_stride + 1; in init_context_frame()
738 s->block_wrap[5] = s->mb_stride; in init_context_frame()
741 c_size = s->mb_stride * (s->mb_height + 1); in init_context_frame()
745 yc_size += 2*s->b8_stride + 2*s->mb_stride; in init_context_frame()
[all …]
Dclearvideo.c56 int mb_stride; member
305 pred_mv = mvi->mv[mvi->mb_stride + mb_x - 1]; in mvi_predict()
312 MV A = mvi->mv[mvi->mb_stride + mb_x - 1]; in mvi_predict()
338 mvi->mv[mvi->mb_stride + mb_x].x = res.x + diff.x; in mvi_predict()
339 mvi->mv[mvi->mb_stride + mb_x].y = res.y + diff.y; in mvi_predict()
350 mvi->mb_stride = mb_w; in mvi_reset()
351 memset(mvi->mv, 0, sizeof(MV) * mvi->mb_stride * 2); in mvi_reset()
359 for (i = 0 ; i < mvi->mb_stride; i++) { in mvi_update_row()
360 mvi->mv[i] = mvi->mv[mvi->mb_stride + i]; in mvi_update_row()
Dvc1_block.c122 fieldtx = v->fieldtx_plane[s->mb_y * s->mb_stride + s->mb_x - 1]; in vc1_put_blocks_clamped()
143 fieldtx = v->fieldtx_plane[s->mb_y * s->mb_stride + s->mb_x]; in vc1_put_blocks_clamped()
410 int mb_pos = s->mb_x + s->mb_y * s->mb_stride; in ff_vc1_pred_dc()
436 q2 = FFABS(s->current_picture.qscale_table[mb_pos - s->mb_stride]); in ff_vc1_pred_dc()
445 off -= s->mb_stride; in ff_vc1_pred_dc()
730 int mb_pos = s->mb_x + s->mb_y * s->mb_stride; in vc1_decode_i_block_adv()
786 else if (a_avail && mb_pos >= s->mb_stride) in vc1_decode_i_block_adv()
787 q2 = s->current_picture.qscale_table[mb_pos - s->mb_stride]; in vc1_decode_i_block_adv()
917 int mb_pos = s->mb_x + s->mb_y * s->mb_stride; in vc1_decode_intra_block()
983 if (!dc_pred_dir && a_avail && mb_pos >= s->mb_stride) in vc1_decode_intra_block()
[all …]
Drv34.c350 int mb_pos = s->mb_x + s->mb_y * s->mb_stride; in rv34_decode_intra_mb_header()
385 int mb_pos = s->mb_x + s->mb_y * s->mb_stride; in rv34_decode_inter_mb_header()
546 int mb_pos = s->mb_x + s->mb_y * s->mb_stride; in rv34_pred_mv_b()
886 next_bt = s->next_picture_ptr->mb_type[s->mb_x + s->mb_y * s->mb_stride]; in rv34_decode_mv()
1186 r->deblock_coefs[s->mb_x - 1 + s->mb_y*s->mb_stride] |= (vmvmask & 0x1111) << 3; in rv34_set_deblock_coef()
1188 r->deblock_coefs[s->mb_x + (s->mb_y - 1)*s->mb_stride] |= (hmvmask & 0xF) << 12; in rv34_set_deblock_coef()
1199 int mb_pos = s->mb_x + s->mb_y * s->mb_stride; in rv34_decode_inter_macroblock()
1214 r->avail_cache[3] = s->current_picture_ptr->mb_type[mb_pos - s->mb_stride]; in rv34_decode_inter_macroblock()
1216 r->avail_cache[4] = s->current_picture_ptr->mb_type[mb_pos - s->mb_stride + 1]; in rv34_decode_inter_macroblock()
1218 r->avail_cache[1] = s->current_picture_ptr->mb_type[mb_pos - s->mb_stride - 1]; in rv34_decode_inter_macroblock()
[all …]
Dh264_slice.c162 const int big_mb_num = h->mb_stride * (h->mb_height + 1) + 1; in init_table_pools()
163 const int mb_array_size = h->mb_stride * h->mb_height; in init_table_pools()
167 h->qscale_table_pool = av_buffer_pool_init(big_mb_num + h->mb_stride, in init_table_pools()
169 h->mb_type_pool = av_buffer_pool_init((big_mb_num + h->mb_stride) * in init_table_pools()
233 pic->mb_type = (uint32_t*)pic->mb_type_buf->data + 2 * h->mb_stride + 1; in alloc_picture()
234 pic->qscale_table = pic->qscale_table_buf->data + 2 * h->mb_stride + 1; in alloc_picture()
253 pic->mb_stride = h->mb_stride; in alloc_picture()
353 h->mb_stride = h1->mb_stride; in ff_h264_update_thread_context()
988 sl->intra4x4_pred_mode = h->intra4x4_pred_mode + i * 8 * 2 * h->mb_stride; in h264_slice_header_init()
989 sl->mvd_table[0] = h->mvd_table[0] + i * 8 * 2 * h->mb_stride; in h264_slice_header_init()
[all …]
Dsvq1enc.c243 …s->block_index[4]= s->mb_stride*(s->mb_y + 1) + s->b8_stride*s->mb_height*2 + s->mb… in init_block_index()
244 …s->block_index[5]= s->mb_stride*(s->mb_y + s->mb_height + 2) + s->b8_stride*s->mb_height*2 + s->mb… in init_block_index()
283 s->m.mb_stride = s->m.mb_width + 1; in svq1_encode_plane()
303 s->motion_val16[plane] = av_mallocz((s->m.mb_stride * in svq1_encode_plane()
320 s->m.mb_stride + 1; in svq1_encode_plane()
385 (s->m.mb_type[x + y * s->m.mb_stride] & in svq1_encode_plane()
412 if (s->m.mb_type[x + y * s->m.mb_stride] & in svq1_encode_plane()
Dh264_picture.c128 dst->mb_stride = src->mb_stride; in ff_h264_ref_picture()
Dmpeg4video.c51 c_wrap = s->mb_stride; in ff_mpeg4_clean_buffers()
119 const int mb_index = s->mb_x + s->mb_y * s->mb_stride; in ff_mpeg4_set_direct_mv()
Derror_resilience.h61 ptrdiff_t mb_stride; member
Dmpegpicture.h101 int mb_stride, int mb_width, int mb_height, int b8_stride,

123