Home
last modified time | relevance | path

Searched refs:mb_xy (Results 1 – 23 of 23) sorted by relevance

/third_party/ffmpeg/libavcodec/
Derror_resilience.c381 …locklist(int (*blocklist)[2], int *blocklist_length, uint8_t *fixed, int mb_x, int mb_y, int mb_xy) in add_blocklist() argument
383 if (fixed[mb_xy]) in add_blocklist()
385 fixed[mb_xy] = MV_LISTED; in add_blocklist()
417 const int mb_xy = s->mb_index2xy[i]; in guess_mv() local
419 int error = s->error_status_table[mb_xy]; in guess_mv()
421 if (IS_INTRA(s->cur_pic.mb_type[mb_xy])) in guess_mv()
426 fixed[mb_xy] = f; in guess_mv()
430 const int mb_y= mb_xy / s->mb_stride; in guess_mv()
431 const int mb_x= mb_xy % s->mb_stride; in guess_mv()
435 s->cur_pic.ref_index[0][4*mb_xy] = s->last_pic.ref_index[0][4*mb_xy]; in guess_mv()
[all …]
Dh264_direct.c205 int mb_xy = sl->mb_xy, mb_y = sl->mb_y; in pred_spatial_direct_motion() local
287 if (IS_INTERLACED(sl->ref_list[1][0].parent->mb_type[mb_xy])) { // AFL/AFR/FR/FL -> AFL/FL in pred_spatial_direct_motion()
290 mb_xy = sl->mb_x + 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()
302 mb_type_col[0] = sl->ref_list[1][0].parent->mb_type[mb_xy]; 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()
323 mb_type_col[1] = sl->ref_list[1][0].parent->mb_type[mb_xy]; in pred_spatial_direct_motion()
345 l1mv0 = (void*)&sl->ref_list[1][0].parent->motion_val[0][h->mb2b_xy[mb_xy]]; in pred_spatial_direct_motion()
346 l1mv1 = (void*)&sl->ref_list[1][0].parent->motion_val[1][h->mb2b_xy[mb_xy]]; in pred_spatial_direct_motion()
[all …]
Dh263.c55 const int mb_xy = s->mb_y * s->mb_stride + s->mb_x; in ff_h263_update_motion_val() local
60 s->current_picture.mbskip_table[mb_xy] = s->mb_skipped; in ff_h263_update_motion_val()
76 s->p_field_mv_table[i][0][mb_xy][0]= s->mv[0][i][0]; in ff_h263_update_motion_val()
77 s->p_field_mv_table[i][0][mb_xy][1]= s->mv[0][i][1]; in ff_h263_update_motion_val()
79 s->current_picture.ref_index[0][4*mb_xy ] = in ff_h263_update_motion_val()
80 s->current_picture.ref_index[0][4*mb_xy + 1] = s->field_select[0][0]; in ff_h263_update_motion_val()
81 s->current_picture.ref_index[0][4*mb_xy + 2] = in ff_h263_update_motion_val()
82 s->current_picture.ref_index[0][4*mb_xy + 3] = s->field_select[0][1]; in ff_h263_update_motion_val()
98 s->current_picture.mb_type[mb_xy] = MB_TYPE_L0 | MB_TYPE_8x8; in ff_h263_update_motion_val()
100 s->current_picture.mb_type[mb_xy] = MB_TYPE_INTRA; in ff_h263_update_motion_val()
[all …]
Dsvq3.c120 int mb_xy; member
672 const int mb_xy = s->mb_xy; in hl_decode_mb() local
673 const int mb_type = s->cur_pic->mb_type[mb_xy]; in hl_decode_mb()
722 const int mb_xy = s->mb_xy; in svq3_decode_mb() local
731 s->next_pic->mb_type[mb_xy] == -1) { in svq3_decode_mb()
741 mb_type = FFMIN(s->next_pic->mb_type[mb_xy], 6); in svq3_decode_mb()
768 if (s->mb_x > 0 && s->intra4x4_pred_mode[s->mb2br_xy[mb_xy - 1] + 6] != -1) { in svq3_decode_mb()
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()
[all …]
Dh264_cabac.c1285 const int mbb_xy = sl->mb_xy - 2*h->mb_stride; in decode_cabac_field_decoding_flag()
1334 int mb_xy = mb_x + (mb_y&~1)*h->mb_stride; in decode_cabac_mb_skip() local
1335 mba_xy = mb_xy - 1; in decode_cabac_mb_skip()
1341 mbb_xy = mb_xy - h->mb_stride; in decode_cabac_mb_skip()
1349 int mb_xy = sl->mb_xy; in decode_cabac_mb_skip() local
1350 mba_xy = mb_xy - 1; in decode_cabac_mb_skip()
1351 mbb_xy = mb_xy - (h->mb_stride << FIELD_PICTURE(h)); in decode_cabac_mb_skip()
1700 h->cbp_table[sl->mb_xy] |= 0x40 << (n - CHROMA_DC_BLOCK_INDEX); in decode_cabac_residual_internal()
1702 h->cbp_table[sl->mb_xy] |= 0x100 << (n - LUMA_DC_BLOCK_INDEX); in decode_cabac_residual_internal()
1914 int mb_xy; in ff_h264_decode_mb_cabac() local
[all …]
Dh264dec.h238 int mb_xy; member
715 int8_t *i4x4 = sl->intra4x4_pred_mode + h->mb2br_xy[sl->mb_xy]; in write_back_intra_pred_mode()
727 const int mb_xy = sl->mb_xy; in write_back_non_zero_count() local
728 uint8_t *nnz = h->non_zero_count[mb_xy]; in write_back_non_zero_count()
761 uint8_t (*mvd_dst)[2] = &sl->mvd_table[list][FMO ? 8 * sl->mb_xy in write_back_motion_list()
762 : h->mb2br_xy[sl->mb_xy]]; in write_back_motion_list()
790 const int b8_xy = 4 * sl->mb_xy; in write_back_motion()
803 uint8_t *direct_table = &h->direct_table[4 * sl->mb_xy]; in write_back_motion()
Dh264_mb_template.c45 const int mb_xy = sl->mb_xy; in FUNC() local
46 const int mb_type = h->cur_pic.mb_type[mb_xy]; in FUNC()
63 h->list_counts[mb_xy] = sl->list_count; in FUNC()
260 const int mb_xy = sl->mb_xy; in FUNC() local
261 const int mb_type = h->cur_pic.mb_type[mb_xy]; in FUNC()
276 h->list_counts[mb_xy] = sl->list_count; in FUNC()
Dh264_loopfilter.c251 int mb_xy = sl->mb_xy; in h264_filter_mb_fast_internal() local
259 int mb_type = h->cur_pic.mb_type[mb_xy]; in h264_filter_mb_fast_internal()
260 int qp = h->cur_pic.qscale_table[mb_xy]; in h264_filter_mb_fast_internal()
261 int qp0 = h->cur_pic.qscale_table[mb_xy - 1]; in h264_filter_mb_fast_internal()
475 int mb_xy, int mb_type, int mvy_limit, in filter_mb_dir() argument
483 const int mbm_xy = dir == 0 ? mb_xy -1 : sl->top_mb_xy; in filter_mb_dir()
506 int mbn_xy = mb_xy - 2 * h->mb_stride; in filter_mb_dir()
530 qp = (h->cur_pic.qscale_table[mb_xy] + h->cur_pic.qscale_table[mbn_xy] + 1) >> 1; in filter_mb_dir()
595 qp = (h->cur_pic.qscale_table[mb_xy] + h->cur_pic.qscale_table[mbm_xy] + 1) >> 1; in filter_mb_dir()
680 qp = h->cur_pic.qscale_table[mb_xy]; in filter_mb_dir()
[all …]
Dh264_mvpred.h359 const int mb_xy = sl->mb_xy; in fill_decode_neighbors() local
370 top_xy = mb_xy - (h->mb_stride << MB_FIELD(sl)); in fill_decode_neighbors()
377 left_xy[LBOT] = left_xy[LTOP] = mb_xy - 1; in fill_decode_neighbors()
380 const int left_mb_field_flag = IS_INTERLACED(h->cur_pic.mb_type[mb_xy - 1]); in fill_decode_neighbors()
384 left_xy[LBOT] = left_xy[LTOP] = mb_xy - h->mb_stride - 1; in fill_decode_neighbors()
806 const int mb_xy = sl->mb_xy; in decode_mb_skip() local
809 memset(h->non_zero_count[mb_xy], 0, 48); in decode_mb_skip()
831 h->cur_pic.mb_type[mb_xy] = mb_type; in decode_mb_skip()
832 h->cur_pic.qscale_table[mb_xy] = sl->qscale; in decode_mb_skip()
833 h->slice_table[mb_xy] = sl->slice_num; in decode_mb_skip()
Dh264_cavlc.c699 int mb_xy; in ff_h264_decode_mb_cavlc() local
706 mb_xy = sl->mb_xy = sl->mb_x + sl->mb_y*h->mb_stride; in ff_h264_decode_mb_cavlc()
772 h->slice_table[mb_xy] = sl->slice_num; in ff_h264_decode_mb_cavlc()
787 h->cur_pic.qscale_table[mb_xy] = 0; in ff_h264_decode_mb_cavlc()
789 memset(h->non_zero_count[mb_xy], 16, 48); in ff_h264_decode_mb_cavlc()
791 h->cur_pic.mb_type[mb_xy] = mb_type; in ff_h264_decode_mb_cavlc()
1095 h->cbp_table[mb_xy]= cbp; in ff_h264_decode_mb_cavlc()
1096 h->cur_pic.mb_type[mb_xy] = mb_type; in ff_h264_decode_mb_cavlc()
1134 h->cbp_table[mb_xy] |= ret << 12; in ff_h264_decode_mb_cavlc()
1178 h->cur_pic.qscale_table[mb_xy] = sl->qscale; in ff_h264_decode_mb_cavlc()
Dh264_mc_template.c74 const int mb_xy = sl->mb_xy; in MCFUNC() local
75 const int mb_type = h->cur_pic.mb_type[mb_xy]; in MCFUNC()
Dh264dec.c76 sl->mb_xy = mb_x + mb_y * h->mb_stride; in h264_er_decode_mb()
93 fill_rectangle(&h->cur_pic.ref_index[0][4 * sl->mb_xy], in h264_er_decode_mb()
208 const int mb_xy = x + y * h->mb_stride; in ff_h264_alloc_tables() local
211 h->mb2b_xy[mb_xy] = b_xy; 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()
810 const unsigned int mb_xy = y * p->mb_stride + x; in h264_export_enc_params() local
818 b->delta_qp = p->qscale_table[mb_xy] - par->qp; in h264_export_enc_params()
Dratecontrol.c760 const int mb_xy = s->mb_index2xy[i]; in adaptive_quantization() local
761 float temp_cplx = sqrt(pic->mc_mb_var[mb_xy]); // FIXME merge in pow() in adaptive_quantization()
762 float spat_cplx = sqrt(pic->mb_var[mb_xy]); in adaptive_quantization()
763 const int lumi = pic->mb_mean[mb_xy]; in adaptive_quantization()
765 int mb_x = mb_xy % s->mb_stride; in adaptive_quantization()
766 int mb_y = mb_xy / s->mb_stride; in adaptive_quantization()
774 if ((s->mb_type[mb_xy] & CANDIDATE_MB_TYPE_INTRA)) { // FIXME hq mode in adaptive_quantization()
839 const int mb_xy = s->mb_index2xy[i]; in adaptive_quantization() local
853 s->lambda_table[mb_xy] = intq; in adaptive_quantization()
Dmpeg4videoenc.c227 int mb_xy = s->mb_index2xy[i]; in ff_clean_mpeg4_qscales() local
228 odd += qscale_table[mb_xy] & 1; in ff_clean_mpeg4_qscales()
237 int mb_xy = s->mb_index2xy[i]; in ff_clean_mpeg4_qscales() local
238 if ((qscale_table[mb_xy] & 1) != odd) in ff_clean_mpeg4_qscales()
239 qscale_table[mb_xy]++; in ff_clean_mpeg4_qscales()
240 if (qscale_table[mb_xy] > 31) in ff_clean_mpeg4_qscales()
241 qscale_table[mb_xy] = 31; in ff_clean_mpeg4_qscales()
245 int mb_xy = s->mb_index2xy[i]; in ff_clean_mpeg4_qscales() local
246 if (qscale_table[mb_xy] != qscale_table[s->mb_index2xy[i - 1]] && in ff_clean_mpeg4_qscales()
247 (s->mb_type[mb_xy] & CANDIDATE_MB_TYPE_DIRECT)) { in ff_clean_mpeg4_qscales()
[all …]
Dh264_slice.c2240 int mb_xy, int list) in fill_filter_caches_inter() argument
2296 int8_t *ref = &h->cur_pic.ref_index[list][4 * mb_xy]; in fill_filter_caches_inter()
2320 const int mb_xy = sl->mb_xy; in fill_filter_caches() local
2326 top_xy = mb_xy - (h->mb_stride << MB_FIELD(sl)); in fill_filter_caches()
2328 left_xy[LBOT] = left_xy[LTOP] = mb_xy - 1; in fill_filter_caches()
2330 const int left_mb_field_flag = IS_INTERLACED(h->cur_pic.mb_type[mb_xy - 1]); in fill_filter_caches()
2352 int qp = h->cur_pic.qscale_table[mb_xy]; in fill_filter_caches()
2390 top_type, left_type, mb_xy, 0); in fill_filter_caches()
2393 top_type, left_type, mb_xy, 1); in fill_filter_caches()
2395 nnz = h->non_zero_count[mb_xy]; in fill_filter_caches()
[all …]
Dh264_mb.c98 const int mb_xy = sl->mb_xy; in await_references() local
99 const int mb_type = h->cur_pic.mb_type[mb_xy]; in await_references()
531 deblock_topleft = h->slice_table[sl->mb_xy - 1 - h->mb_stride] == sl->slice_num; in xchg_mb_border()
801 const int mb_xy = sl->mb_xy; in ff_h264_hl_decode_mb() local
802 const int mb_type = h->cur_pic.mb_type[mb_xy]; in ff_h264_hl_decode_mb()
Dintrax8.c744 int mb_xy; in ff_intrax8_decode_picture() local
769 mb_xy = (w->mb_y >> 1) * (w->mb_width + 1); in ff_intrax8_decode_picture()
795 pict->qscale_table[mb_xy] = w->quant; in ff_intrax8_decode_picture()
796 mb_xy++; in ff_intrax8_decode_picture()
Drv10.c100 int mb_count, pb_frame, marker, mb_xy; in rv10_decode_picture_header() local
140 mb_xy = s->mb_x + s->mb_y * s->mb_width; in rv10_decode_picture_header()
141 if (show_bits(&s->gb, 12) == 0 || (mb_xy && mb_xy < s->mb_num)) { in rv10_decode_picture_header()
Dmpegvideo_xvmc.c177 const int mb_xy = s->mb_y * s->mb_stride + s->mb_x; in ff_xvmc_decode_mb() local
198 s->current_picture.qscale_table[mb_xy] = s->qscale; in ff_xvmc_decode_mb()
Dituh263enc.c283 int mb_xy= s->mb_index2xy[i]; in ff_clean_h263_qscales() local
285 …if(qscale_table[mb_xy] != qscale_table[s->mb_index2xy[i-1]] && (s->mb_type[mb_xy]&CANDIDATE_MB_TYP… in ff_clean_h263_qscales()
286 s->mb_type[mb_xy]|= CANDIDATE_MB_TYPE_INTER; in ff_clean_h263_qscales()
Dvp8.c1956 int mb_xy, int ref) in prefetch_motion() argument
1959 if (s->ref_count[ref - 1] > (mb_xy >> 5)) { in prefetch_motion()
2289 int mb_xy = mb_y * s->mb_width; in vp78_decode_mv_mb_modes() local
2296 for (mb_x = 0; mb_x < s->mb_width; mb_x++, mb_xy++, mb++) { in vp78_decode_mv_mb_modes()
2303 decode_mb_mode(s, &s->mv_bounds, mb, mb_x, mb_y, curframe->seg_map->data + mb_xy, in vp78_decode_mv_mb_modes()
2305 prev_frame->seg_map->data + mb_xy : NULL, 1, is_vp7); in vp78_decode_mv_mb_modes()
2371 int mb_x, mb_xy = mb_y * s->mb_width; in decode_mb_row_no_filter() local
2412 for (mb_x = 0; mb_x < s->mb_width; mb_x++, mb_xy++, mb++) { in decode_mb_row_no_filter()
2434 decode_mb_mode(s, &td->mv_bounds, mb, mb_x, mb_y, curframe->seg_map->data + mb_xy, in decode_mb_row_no_filter()
2436 prev_frame->seg_map->data + mb_xy : NULL, 0, is_vp7); in decode_mb_row_no_filter()
[all …]
Dmpegvideo.c1437 const unsigned int mb_xy = y * p->alloc_mb_stride + x; in ff_mpv_export_qp_table() local
1445 b->delta_qp = p->qscale_table[mb_xy] * mult; in ff_mpv_export_qp_table()
1948 const int mb_xy = s->mb_y * s->mb_stride + s->mb_x; in mpv_reconstruct_mb_internal() local
1969 s->current_picture.qscale_table[mb_xy] = s->qscale; in mpv_reconstruct_mb_internal()
1974 if(s->mbintra_table[mb_xy]) in mpv_reconstruct_mb_internal()
1983 s->mbintra_table[mb_xy]=1; in mpv_reconstruct_mb_internal()
2000 uint8_t *mbskip_ptr = &s->mbskip_table[mb_xy]; in mpv_reconstruct_mb_internal()
Dmpegvideo_enc.c2257 const int mb_xy = mb_x + mb_y * s->mb_stride; in encode_mb_internal() local
2259 s->lambda = s->lambda_table[mb_xy]; in encode_mb_internal()
2263 s->qscale = s->current_picture_ptr->qscale_table[mb_xy]; in encode_mb_internal()