/third_party/ffmpeg/libavcodec/ |
D | error_resilience.c | 381 …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 …]
|
D | h264_direct.c | 205 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 …]
|
D | h263.c | 43 const int mb_xy = s->mb_y * s->mb_stride + s->mb_x; in ff_h263_update_motion_val() local 48 s->current_picture.mbskip_table[mb_xy] = s->mb_skipped; in ff_h263_update_motion_val() 64 s->p_field_mv_table[i][0][mb_xy][0]= s->mv[0][i][0]; in ff_h263_update_motion_val() 65 s->p_field_mv_table[i][0][mb_xy][1]= s->mv[0][i][1]; in ff_h263_update_motion_val() 67 s->current_picture.ref_index[0][4*mb_xy ] = in ff_h263_update_motion_val() 68 s->current_picture.ref_index[0][4*mb_xy + 1] = s->field_select[0][0]; in ff_h263_update_motion_val() 69 s->current_picture.ref_index[0][4*mb_xy + 2] = in ff_h263_update_motion_val() 70 s->current_picture.ref_index[0][4*mb_xy + 3] = s->field_select[0][1]; in ff_h263_update_motion_val() 86 s->current_picture.mb_type[mb_xy] = MB_TYPE_L0 | MB_TYPE_8x8; in ff_h263_update_motion_val() 88 s->current_picture.mb_type[mb_xy] = MB_TYPE_INTRA; in ff_h263_update_motion_val() [all …]
|
D | svq3.c | 124 int mb_xy; member 677 const int mb_xy = s->mb_xy; in hl_decode_mb() local 678 const int mb_type = s->cur_pic->mb_type[mb_xy]; in hl_decode_mb() 727 const int mb_xy = s->mb_xy; in svq3_decode_mb() local 736 s->next_pic->mb_type[mb_xy] == -1) { in svq3_decode_mb() 746 mb_type = FFMIN(s->next_pic->mb_type[mb_xy], 6); in svq3_decode_mb() 773 if (s->mb_x > 0 && s->intra4x4_pred_mode[s->mb2br_xy[mb_xy - 1] + 6] != -1) { in svq3_decode_mb() 786 … (s->intra4x4_pred_mode[s->mb2br_xy[mb_xy - s->mb_stride]] == -1) ? PART_NOT_AVAILABLE : 1, 4); in svq3_decode_mb() 792 (s->intra4x4_pred_mode[s->mb2br_xy[mb_xy - s->mb_stride + 1] + 6] == -1 || in svq3_decode_mb() 793 … 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 | 1285 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 …]
|
D | h264dec.h | 237 int mb_xy; member 714 int8_t *i4x4 = sl->intra4x4_pred_mode + h->mb2br_xy[sl->mb_xy]; in write_back_intra_pred_mode() 726 const int mb_xy = sl->mb_xy; in write_back_non_zero_count() local 727 uint8_t *nnz = h->non_zero_count[mb_xy]; in write_back_non_zero_count() 760 uint8_t (*mvd_dst)[2] = &sl->mvd_table[list][FMO ? 8 * sl->mb_xy in write_back_motion_list() 761 : h->mb2br_xy[sl->mb_xy]]; in write_back_motion_list() 789 const int b8_xy = 4 * sl->mb_xy; in write_back_motion() 802 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 | 250 int mb_xy = sl->mb_xy; in h264_filter_mb_fast_internal() local 258 int mb_type = h->cur_pic.mb_type[mb_xy]; in h264_filter_mb_fast_internal() 259 int qp = h->cur_pic.qscale_table[mb_xy]; in h264_filter_mb_fast_internal() 260 int qp0 = h->cur_pic.qscale_table[mb_xy - 1]; in h264_filter_mb_fast_internal() 474 int mb_xy, int mb_type, int mvy_limit, in filter_mb_dir() argument 482 const int mbm_xy = dir == 0 ? mb_xy -1 : sl->top_mb_xy; in filter_mb_dir() 505 int mbn_xy = mb_xy - 2 * h->mb_stride; in filter_mb_dir() 529 qp = (h->cur_pic.qscale_table[mb_xy] + h->cur_pic.qscale_table[mbn_xy] + 1) >> 1; in filter_mb_dir() 594 qp = (h->cur_pic.qscale_table[mb_xy] + h->cur_pic.qscale_table[mbm_xy] + 1) >> 1; in filter_mb_dir() 679 qp = h->cur_pic.qscale_table[mb_xy]; in filter_mb_dir() [all …]
|
D | h264_mvpred.h | 358 const int mb_xy = sl->mb_xy; in fill_decode_neighbors() local 369 top_xy = mb_xy - (h->mb_stride << MB_FIELD(sl)); in fill_decode_neighbors() 376 left_xy[LBOT] = left_xy[LTOP] = mb_xy - 1; in fill_decode_neighbors() 379 const int left_mb_field_flag = IS_INTERLACED(h->cur_pic.mb_type[mb_xy - 1]); in fill_decode_neighbors() 383 left_xy[LBOT] = left_xy[LTOP] = mb_xy - h->mb_stride - 1; in fill_decode_neighbors() 805 const int mb_xy = sl->mb_xy; in decode_mb_skip() local 808 memset(h->non_zero_count[mb_xy], 0, 48); in decode_mb_skip() 830 h->cur_pic.mb_type[mb_xy] = mb_type; in decode_mb_skip() 831 h->cur_pic.qscale_table[mb_xy] = sl->qscale; in decode_mb_skip() 832 h->slice_table[mb_xy] = sl->slice_num; in decode_mb_skip()
|
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 | h264_cavlc.c | 704 int mb_xy; in ff_h264_decode_mb_cavlc() local 711 mb_xy = sl->mb_xy = sl->mb_x + sl->mb_y*h->mb_stride; in ff_h264_decode_mb_cavlc() 777 h->slice_table[mb_xy] = sl->slice_num; in ff_h264_decode_mb_cavlc() 792 h->cur_pic.qscale_table[mb_xy] = 0; in ff_h264_decode_mb_cavlc() 794 memset(h->non_zero_count[mb_xy], 16, 48); in ff_h264_decode_mb_cavlc() 796 h->cur_pic.mb_type[mb_xy] = mb_type; in ff_h264_decode_mb_cavlc() 1100 h->cbp_table[mb_xy]= cbp; in ff_h264_decode_mb_cavlc() 1101 h->cur_pic.mb_type[mb_xy] = mb_type; in ff_h264_decode_mb_cavlc() 1139 h->cbp_table[mb_xy] |= ret << 12; in ff_h264_decode_mb_cavlc() 1183 h->cur_pic.qscale_table[mb_xy] = sl->qscale; in ff_h264_decode_mb_cavlc()
|
D | h264dec.c | 76 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() 221 const int mb_xy = x + y * h->mb_stride; in ff_h264_alloc_tables() local 224 h->mb2b_xy[mb_xy] = b_xy; in ff_h264_alloc_tables() 225 h->mb2br_xy[mb_xy] = 8 * (FMO ? mb_xy : (mb_xy % (2 * h->mb_stride))); in ff_h264_alloc_tables() 835 const unsigned int mb_xy = y * p->mb_stride + x; in h264_export_enc_params() local 843 b->delta_qp = p->qscale_table[mb_xy] - par->qp; in h264_export_enc_params()
|
D | ratecontrol.c | 760 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()
|
D | mpeg4videoenc.c | 227 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 …]
|
D | h264_slice.c | 2225 int mb_xy, int list) in fill_filter_caches_inter() argument 2281 int8_t *ref = &h->cur_pic.ref_index[list][4 * mb_xy]; in fill_filter_caches_inter() 2305 const int mb_xy = sl->mb_xy; in fill_filter_caches() local 2311 top_xy = mb_xy - (h->mb_stride << MB_FIELD(sl)); in fill_filter_caches() 2313 left_xy[LBOT] = left_xy[LTOP] = mb_xy - 1; in fill_filter_caches() 2315 const int left_mb_field_flag = IS_INTERLACED(h->cur_pic.mb_type[mb_xy - 1]); in fill_filter_caches() 2337 int qp = h->cur_pic.qscale_table[mb_xy]; in fill_filter_caches() 2375 top_type, left_type, mb_xy, 0); in fill_filter_caches() 2378 top_type, left_type, mb_xy, 1); in fill_filter_caches() 2380 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 | 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 | rv10.c | 251 int mb_count, pb_frame, marker, mb_xy; in rv10_decode_picture_header() local 291 mb_xy = s->mb_x + s->mb_y * s->mb_width; in rv10_decode_picture_header() 292 if (show_bits(&s->gb, 12) == 0 || (mb_xy && mb_xy < s->mb_num)) { in rv10_decode_picture_header()
|
D | intrax8.c | 778 int mb_xy; in ff_intrax8_decode_picture() local 803 mb_xy = (w->mb_y >> 1) * (w->mb_width + 1); in ff_intrax8_decode_picture() 829 pict->qscale_table[mb_xy] = w->quant; in ff_intrax8_decode_picture() 830 mb_xy++; in ff_intrax8_decode_picture()
|
D | ituh263enc.c | 283 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()
|
D | vp8.c | 1952 int mb_xy, int ref) in prefetch_motion() argument 1955 if (s->ref_count[ref - 1] > (mb_xy >> 5)) { in prefetch_motion() 2285 int mb_xy = mb_y * s->mb_width; in vp78_decode_mv_mb_modes() local 2292 for (mb_x = 0; mb_x < s->mb_width; mb_x++, mb_xy++, mb++) { in vp78_decode_mv_mb_modes() 2299 decode_mb_mode(s, &s->mv_bounds, mb, mb_x, mb_y, curframe->seg_map->data + mb_xy, in vp78_decode_mv_mb_modes() 2301 prev_frame->seg_map->data + mb_xy : NULL, 1, is_vp7); in vp78_decode_mv_mb_modes() 2367 int mb_x, mb_xy = mb_y * s->mb_width; in decode_mb_row_no_filter() local 2408 for (mb_x = 0; mb_x < s->mb_width; mb_x++, mb_xy++, mb++) { in decode_mb_row_no_filter() 2430 decode_mb_mode(s, &td->mv_bounds, mb, mb_x, mb_y, curframe->seg_map->data + mb_xy, in decode_mb_row_no_filter() 2432 prev_frame->seg_map->data + mb_xy : NULL, 0, is_vp7); in decode_mb_row_no_filter() [all …]
|
D | mpegvideo.c | 1953 const int mb_xy = s->mb_y * s->mb_stride + s->mb_x; in mpv_reconstruct_mb_internal() local 1974 s->current_picture.qscale_table[mb_xy] = s->qscale; in mpv_reconstruct_mb_internal() 1979 if(s->mbintra_table[mb_xy]) in mpv_reconstruct_mb_internal() 1988 s->mbintra_table[mb_xy]=1; in mpv_reconstruct_mb_internal() 2005 uint8_t *mbskip_ptr = &s->mbskip_table[mb_xy]; in mpv_reconstruct_mb_internal()
|
D | mpegvideo_enc.c | 2216 const int mb_xy = mb_x + mb_y * s->mb_stride; in encode_mb_internal() local 2218 s->lambda = s->lambda_table[mb_xy]; in encode_mb_internal() 2222 s->qscale = s->current_picture_ptr->qscale_table[mb_xy]; in encode_mb_internal()
|