/third_party/ffmpeg/libavcodec/ |
D | error_resilience.c | 380 …locklist(int (*blocklist)[2], int *blocklist_length, uint8_t *fixed, int mb_x, int mb_y, int mb_xy) in add_blocklist() argument 382 if (fixed[mb_xy]) in add_blocklist() 384 fixed[mb_xy] = MV_LISTED; in add_blocklist() 416 const int mb_xy = s->mb_index2xy[i]; in guess_mv() local 418 int error = s->error_status_table[mb_xy]; in guess_mv() 420 if (IS_INTRA(s->cur_pic.mb_type[mb_xy])) in guess_mv() 425 fixed[mb_xy] = f; in guess_mv() 429 const int mb_y= mb_xy / s->mb_stride; in guess_mv() 430 const int mb_x= mb_xy % s->mb_stride; in guess_mv() 434 s->cur_pic.ref_index[0][4*mb_xy] = s->last_pic.ref_index[0][4*mb_xy]; in guess_mv() [all …]
|
D | h264_direct.c | 204 int mb_xy = sl->mb_xy, mb_y = sl->mb_y; in pred_spatial_direct_motion() local 286 if (IS_INTERLACED(sl->ref_list[1][0].parent->mb_type[mb_xy])) { // AFL/AFR/FR/FL -> AFL/FL in pred_spatial_direct_motion() 289 mb_xy = sl->mb_x + in pred_spatial_direct_motion() 294 mb_xy += h->mb_stride * sl->col_fieldoff; // non-zero for FL -> FL & differ parity in pred_spatial_direct_motion() 300 mb_xy = (sl->mb_y & ~1) * h->mb_stride + sl->mb_x; in pred_spatial_direct_motion() 301 mb_type_col[0] = sl->ref_list[1][0].parent->mb_type[mb_xy]; in pred_spatial_direct_motion() 302 mb_type_col[1] = sl->ref_list[1][0].parent->mb_type[mb_xy + h->mb_stride]; in pred_spatial_direct_motion() 322 mb_type_col[1] = sl->ref_list[1][0].parent->mb_type[mb_xy]; in pred_spatial_direct_motion() 344 l1mv0 = (void*)&sl->ref_list[1][0].parent->motion_val[0][h->mb2b_xy[mb_xy]]; in pred_spatial_direct_motion() 345 l1mv1 = (void*)&sl->ref_list[1][0].parent->motion_val[1][h->mb2b_xy[mb_xy]]; in pred_spatial_direct_motion() [all …]
|
D | h263.c | 54 const int mb_xy = s->mb_y * s->mb_stride + s->mb_x; in ff_h263_update_motion_val() local 59 s->current_picture.mbskip_table[mb_xy] = s->mb_skipped; in ff_h263_update_motion_val() 75 s->p_field_mv_table[i][0][mb_xy][0]= s->mv[0][i][0]; in ff_h263_update_motion_val() 76 s->p_field_mv_table[i][0][mb_xy][1]= s->mv[0][i][1]; in ff_h263_update_motion_val() 78 s->current_picture.ref_index[0][4*mb_xy ] = in ff_h263_update_motion_val() 79 s->current_picture.ref_index[0][4*mb_xy + 1] = s->field_select[0][0]; in ff_h263_update_motion_val() 80 s->current_picture.ref_index[0][4*mb_xy + 2] = in ff_h263_update_motion_val() 81 s->current_picture.ref_index[0][4*mb_xy + 3] = s->field_select[0][1]; in ff_h263_update_motion_val() 97 s->current_picture.mb_type[mb_xy] = MB_TYPE_L0 | MB_TYPE_8x8; in ff_h263_update_motion_val() 99 s->current_picture.mb_type[mb_xy] = MB_TYPE_INTRA; in ff_h263_update_motion_val() [all …]
|
D | svq3.c | 121 int mb_xy; member 667 const int mb_xy = s->mb_xy; in hl_decode_mb() local 668 const int mb_type = s->cur_pic->mb_type[mb_xy]; in hl_decode_mb() 717 const int mb_xy = s->mb_xy; in svq3_decode_mb() local 725 s->next_pic->mb_type[mb_xy] == -1) { in svq3_decode_mb() 735 mb_type = FFMIN(s->next_pic->mb_type[mb_xy], 6); in svq3_decode_mb() 762 if (s->mb_x > 0 && s->intra4x4_pred_mode[s->mb2br_xy[mb_xy - 1] + 6] != -1) { in svq3_decode_mb() 775 … (s->intra4x4_pred_mode[s->mb2br_xy[mb_xy - s->mb_stride]] == -1) ? PART_NOT_AVAILABLE : 1, 4); in svq3_decode_mb() 781 (s->intra4x4_pred_mode[s->mb2br_xy[mb_xy - s->mb_stride + 1] + 6] == -1 || in svq3_decode_mb() 782 … s->intra4x4_pred_mode[s->mb2br_xy[mb_xy - s->mb_stride]] == -1) ? PART_NOT_AVAILABLE : 1; in svq3_decode_mb() [all …]
|
D | h264_cabac.c | 1294 const int mbb_xy = sl->mb_xy - 2*h->mb_stride; in decode_cabac_field_decoding_flag() 1343 int mb_xy = mb_x + (mb_y&~1)*h->mb_stride; in decode_cabac_mb_skip() local 1344 mba_xy = mb_xy - 1; in decode_cabac_mb_skip() 1350 mbb_xy = mb_xy - h->mb_stride; in decode_cabac_mb_skip() 1358 int mb_xy = sl->mb_xy; in decode_cabac_mb_skip() local 1359 mba_xy = mb_xy - 1; in decode_cabac_mb_skip() 1360 mbb_xy = mb_xy - (h->mb_stride << FIELD_PICTURE(h)); in decode_cabac_mb_skip() 1709 h->cbp_table[sl->mb_xy] |= 0x40 << (n - CHROMA_DC_BLOCK_INDEX); in decode_cabac_residual_internal() 1711 h->cbp_table[sl->mb_xy] |= 0x100 << (n - LUMA_DC_BLOCK_INDEX); in decode_cabac_residual_internal() 1923 int mb_xy; in ff_h264_decode_mb_cabac() local [all …]
|
D | h264dec.h | 224 int mb_xy; member 674 int8_t *i4x4 = sl->intra4x4_pred_mode + h->mb2br_xy[sl->mb_xy]; in write_back_intra_pred_mode() 686 const int mb_xy = sl->mb_xy; in write_back_non_zero_count() local 687 uint8_t *nnz = h->non_zero_count[mb_xy]; in write_back_non_zero_count() 720 uint8_t (*mvd_dst)[2] = &sl->mvd_table[list][FMO ? 8 * sl->mb_xy in write_back_motion_list() 721 : h->mb2br_xy[sl->mb_xy]]; in write_back_motion_list() 749 const int b8_xy = 4 * sl->mb_xy; in write_back_motion() 762 uint8_t *direct_table = &h->direct_table[4 * sl->mb_xy]; in write_back_motion()
|
D | h264_mb_template.c | 45 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()
|
D | h264_loopfilter.c | 248 int mb_xy = sl->mb_xy; in h264_filter_mb_fast_internal() local 256 int mb_type = h->cur_pic.mb_type[mb_xy]; in h264_filter_mb_fast_internal() 257 int qp = h->cur_pic.qscale_table[mb_xy]; in h264_filter_mb_fast_internal() 258 int qp0 = h->cur_pic.qscale_table[mb_xy - 1]; in h264_filter_mb_fast_internal() 472 int mb_xy, int mb_type, int mvy_limit, in filter_mb_dir() argument 480 const int mbm_xy = dir == 0 ? mb_xy -1 : sl->top_mb_xy; in filter_mb_dir() 503 int mbn_xy = mb_xy - 2 * h->mb_stride; in filter_mb_dir() 527 qp = (h->cur_pic.qscale_table[mb_xy] + h->cur_pic.qscale_table[mbn_xy] + 1) >> 1; in filter_mb_dir() 592 qp = (h->cur_pic.qscale_table[mb_xy] + h->cur_pic.qscale_table[mbm_xy] + 1) >> 1; in filter_mb_dir() 677 qp = h->cur_pic.qscale_table[mb_xy]; in filter_mb_dir() [all …]
|
D | h264_mvpred.h | 357 const int mb_xy = sl->mb_xy; in fill_decode_neighbors() local 368 top_xy = mb_xy - (h->mb_stride << MB_FIELD(sl)); in fill_decode_neighbors() 375 left_xy[LBOT] = left_xy[LTOP] = mb_xy - 1; in fill_decode_neighbors() 378 const int left_mb_field_flag = IS_INTERLACED(h->cur_pic.mb_type[mb_xy - 1]); in fill_decode_neighbors() 382 left_xy[LBOT] = left_xy[LTOP] = mb_xy - h->mb_stride - 1; in fill_decode_neighbors() 804 const int mb_xy = sl->mb_xy; in decode_mb_skip() local 807 memset(h->non_zero_count[mb_xy], 0, 48); in decode_mb_skip() 829 h->cur_pic.mb_type[mb_xy] = mb_type; in decode_mb_skip() 830 h->cur_pic.qscale_table[mb_xy] = sl->qscale; in decode_mb_skip() 831 h->slice_table[mb_xy] = sl->slice_num; in decode_mb_skip()
|
D | h264_cavlc.c | 697 int mb_xy; in ff_h264_decode_mb_cavlc() local 704 mb_xy = sl->mb_xy = sl->mb_x + sl->mb_y*h->mb_stride; in ff_h264_decode_mb_cavlc() 770 h->slice_table[mb_xy] = sl->slice_num; in ff_h264_decode_mb_cavlc() 785 h->cur_pic.qscale_table[mb_xy] = 0; in ff_h264_decode_mb_cavlc() 787 memset(h->non_zero_count[mb_xy], 16, 48); in ff_h264_decode_mb_cavlc() 789 h->cur_pic.mb_type[mb_xy] = mb_type; in ff_h264_decode_mb_cavlc() 1093 h->cbp_table[mb_xy]= cbp; in ff_h264_decode_mb_cavlc() 1094 h->cur_pic.mb_type[mb_xy] = mb_type; in ff_h264_decode_mb_cavlc() 1132 h->cbp_table[mb_xy] |= ret << 12; in ff_h264_decode_mb_cavlc() 1176 h->cur_pic.qscale_table[mb_xy] = sl->qscale; in ff_h264_decode_mb_cavlc()
|
D | h264_mc_template.c | 74 const int mb_xy = sl->mb_xy; in MCFUNC() local 75 const int mb_type = h->cur_pic.mb_type[mb_xy]; in MCFUNC()
|
D | h264dec.c | 72 sl->mb_xy = mb_x + mb_y * h->mb_stride; in h264_er_decode_mb() 89 fill_rectangle(&h->cur_pic.ref_index[0][4 * sl->mb_xy], in h264_er_decode_mb() 207 const int mb_xy = x + y * h->mb_stride; in ff_h264_alloc_tables() local 210 h->mb2b_xy[mb_xy] = b_xy; in ff_h264_alloc_tables() 211 h->mb2br_xy[mb_xy] = 8 * (FMO ? mb_xy : (mb_xy % (2 * h->mb_stride))); in ff_h264_alloc_tables() 830 const unsigned int mb_xy = y * p->mb_stride + x; in h264_export_enc_params() local 838 b->delta_qp = p->qscale_table[mb_xy] - par->qp; in h264_export_enc_params()
|
D | ratecontrol.c | 759 const int mb_xy = s->mb_index2xy[i]; in adaptive_quantization() local 760 float temp_cplx = sqrt(pic->mc_mb_var[mb_xy]); // FIXME merge in pow() in adaptive_quantization() 761 float spat_cplx = sqrt(pic->mb_var[mb_xy]); in adaptive_quantization() 762 const int lumi = pic->mb_mean[mb_xy]; in adaptive_quantization() 764 int mb_x = mb_xy % s->mb_stride; in adaptive_quantization() 765 int mb_y = mb_xy / s->mb_stride; in adaptive_quantization() 773 if ((s->mb_type[mb_xy] & CANDIDATE_MB_TYPE_INTRA)) { // FIXME hq mode in adaptive_quantization() 838 const int mb_xy = s->mb_index2xy[i]; in adaptive_quantization() local 852 s->lambda_table[mb_xy] = intq; in adaptive_quantization()
|
D | mpeg4videoenc.c | 234 int mb_xy = s->mb_index2xy[i]; in ff_clean_mpeg4_qscales() local 235 odd += qscale_table[mb_xy] & 1; in ff_clean_mpeg4_qscales() 244 int mb_xy = s->mb_index2xy[i]; in ff_clean_mpeg4_qscales() local 245 if ((qscale_table[mb_xy] & 1) != odd) in ff_clean_mpeg4_qscales() 246 qscale_table[mb_xy]++; in ff_clean_mpeg4_qscales() 247 if (qscale_table[mb_xy] > 31) in ff_clean_mpeg4_qscales() 248 qscale_table[mb_xy] = 31; in ff_clean_mpeg4_qscales() 252 int mb_xy = s->mb_index2xy[i]; in ff_clean_mpeg4_qscales() local 253 if (qscale_table[mb_xy] != qscale_table[s->mb_index2xy[i - 1]] && in ff_clean_mpeg4_qscales() 254 (s->mb_type[mb_xy] & CANDIDATE_MB_TYPE_DIRECT)) { in ff_clean_mpeg4_qscales() [all …]
|
D | h264_slice.c | 2336 int mb_xy, int list) in fill_filter_caches_inter() argument 2392 int8_t *ref = &h->cur_pic.ref_index[list][4 * mb_xy]; in fill_filter_caches_inter() 2416 const int mb_xy = sl->mb_xy; in fill_filter_caches() local 2422 top_xy = mb_xy - (h->mb_stride << MB_FIELD(sl)); in fill_filter_caches() 2424 left_xy[LBOT] = left_xy[LTOP] = mb_xy - 1; in fill_filter_caches() 2426 const int left_mb_field_flag = IS_INTERLACED(h->cur_pic.mb_type[mb_xy - 1]); in fill_filter_caches() 2448 int qp = h->cur_pic.qscale_table[mb_xy]; in fill_filter_caches() 2486 top_type, left_type, mb_xy, 0); in fill_filter_caches() 2489 top_type, left_type, mb_xy, 1); in fill_filter_caches() 2491 nnz = h->non_zero_count[mb_xy]; in fill_filter_caches() [all …]
|
D | h264_mb.c | 98 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()
|
D | rv10.c | 103 int mb_count, pb_frame, marker, mb_xy; in rv10_decode_picture_header() local 143 mb_xy = s->mb_x + s->mb_y * s->mb_width; in rv10_decode_picture_header() 144 if (show_bits(&s->gb, 12) == 0 || (mb_xy && mb_xy < s->mb_num)) { in rv10_decode_picture_header()
|
D | intrax8.c | 744 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()
|
D | mpegvideo_xvmc.c | 177 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()
|
D | ituh263enc.c | 289 int mb_xy= s->mb_index2xy[i]; in ff_clean_h263_qscales() local 291 …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() 292 s->mb_type[mb_xy]|= CANDIDATE_MB_TYPE_INTER; in ff_clean_h263_qscales()
|
D | vp8.c | 1960 int mb_xy, int ref) in prefetch_motion() argument 1963 if (s->ref_count[ref - 1] > (mb_xy >> 5)) { in prefetch_motion() 2293 int mb_xy = mb_y * s->mb_width; in vp78_decode_mv_mb_modes() local 2300 for (mb_x = 0; mb_x < s->mb_width; mb_x++, mb_xy++, mb++) { in vp78_decode_mv_mb_modes() 2307 decode_mb_mode(s, &s->mv_bounds, mb, mb_x, mb_y, curframe->seg_map->data + mb_xy, in vp78_decode_mv_mb_modes() 2309 prev_frame->seg_map->data + mb_xy : NULL, 1, is_vp7); in vp78_decode_mv_mb_modes() 2375 int mb_x, mb_xy = mb_y * s->mb_width; in decode_mb_row_no_filter() local 2416 for (mb_x = 0; mb_x < s->mb_width; mb_x++, mb_xy++, mb++) { in decode_mb_row_no_filter() 2438 decode_mb_mode(s, &td->mv_bounds, mb, mb_x, mb_y, curframe->seg_map->data + mb_xy, in decode_mb_row_no_filter() 2440 prev_frame->seg_map->data + mb_xy : NULL, 0, is_vp7); in decode_mb_row_no_filter() [all …]
|
D | mpegvideo_dec.c | 529 const unsigned int mb_xy = y * p->alloc_mb_stride + x; in ff_mpv_export_qp_table() local 537 b->delta_qp = p->qscale_table[mb_xy] * mult; in ff_mpv_export_qp_table()
|
D | mpegvideo.c | 1417 const int mb_xy = s->mb_y * s->mb_stride + s->mb_x; in mpv_reconstruct_mb_internal() local 1419 s->current_picture.qscale_table[mb_xy] = s->qscale; in mpv_reconstruct_mb_internal() 1424 if(s->mbintra_table[mb_xy]) in mpv_reconstruct_mb_internal() 1433 s->mbintra_table[mb_xy]=1; in mpv_reconstruct_mb_internal() 1450 uint8_t *mbskip_ptr = &s->mbskip_table[mb_xy]; in mpv_reconstruct_mb_internal()
|
D | mpegvideo_enc.c | 2048 const int mb_xy = mb_x + mb_y * s->mb_stride; in encode_mb_internal() local 2050 s->lambda = s->lambda_table[mb_xy]; in encode_mb_internal() 2054 s->qscale = s->current_picture_ptr->qscale_table[mb_xy]; in encode_mb_internal()
|