• Home
  • Raw
  • Download

Lines Matching refs:xd

29 static PREDICTION_MODE read_intra_mode_y(VP9_COMMON *cm, MACROBLOCKD *xd,  in read_intra_mode_y()  argument
33 FRAME_COUNTS *counts = xd->counts; in read_intra_mode_y()
39 static PREDICTION_MODE read_intra_mode_uv(VP9_COMMON *cm, MACROBLOCKD *xd, in read_intra_mode_uv() argument
44 FRAME_COUNTS *counts = xd->counts; in read_intra_mode_uv()
50 static PREDICTION_MODE read_inter_mode(VP9_COMMON *cm, MACROBLOCKD *xd, in read_inter_mode() argument
54 FRAME_COUNTS *counts = xd->counts; in read_inter_mode()
65 static TX_SIZE read_selected_tx_size(VP9_COMMON *cm, MACROBLOCKD *xd, in read_selected_tx_size() argument
67 FRAME_COUNTS *counts = xd->counts; in read_selected_tx_size()
68 const int ctx = get_tx_size_context(xd); in read_selected_tx_size()
82 static TX_SIZE read_tx_size(VP9_COMMON *cm, MACROBLOCKD *xd, in read_tx_size() argument
85 BLOCK_SIZE bsize = xd->mi[0]->mbmi.sb_type; in read_tx_size()
88 return read_selected_tx_size(cm, xd, max_tx_size, r); in read_tx_size()
149 static int read_inter_segment_id(VP9_COMMON *const cm, MACROBLOCKD *const xd, in read_inter_segment_id() argument
152 MB_MODE_INFO *const mbmi = &xd->mi[0]->mbmi; in read_inter_segment_id()
155 const int bw = xd->plane[0].n4_w >> 1; in read_inter_segment_id()
156 const int bh = xd->plane[0].n4_h >> 1; in read_inter_segment_id()
176 const vpx_prob pred_prob = vp9_get_pred_prob_seg_id(seg, xd); in read_inter_segment_id()
187 static int read_skip(VP9_COMMON *cm, const MACROBLOCKD *xd, in read_skip() argument
192 const int ctx = vp9_get_skip_context(xd); in read_skip()
194 FRAME_COUNTS *counts = xd->counts; in read_skip()
202 MACROBLOCKD *const xd, in read_intra_frame_mode_info() argument
204 MODE_INFO *const mi = xd->mi[0]; in read_intra_frame_mode_info()
206 const MODE_INFO *above_mi = xd->above_mi; in read_intra_frame_mode_info()
207 const MODE_INFO *left_mi = xd->left_mi; in read_intra_frame_mode_info()
211 const int bw = xd->plane[0].n4_w >> 1; in read_intra_frame_mode_info()
212 const int bh = xd->plane[0].n4_h >> 1; in read_intra_frame_mode_info()
219 mbmi->skip = read_skip(cm, xd, mbmi->segment_id, r); in read_intra_frame_mode_info()
220 mbmi->tx_size = read_tx_size(cm, xd, 1, r); in read_intra_frame_mode_info()
306 const MACROBLOCKD *xd, in read_block_reference_mode() argument
309 const int ctx = vp9_get_reference_mode_context(cm, xd); in read_block_reference_mode()
312 FRAME_COUNTS *counts = xd->counts; in read_block_reference_mode()
322 static void read_ref_frames(VP9_COMMON *const cm, MACROBLOCKD *const xd, in read_ref_frames() argument
326 FRAME_COUNTS *counts = xd->counts; in read_ref_frames()
333 const REFERENCE_MODE mode = read_block_reference_mode(cm, xd, r); in read_ref_frames()
337 const int ctx = vp9_get_pred_context_comp_ref_p(cm, xd); in read_ref_frames()
344 const int ctx0 = vp9_get_pred_context_single_ref_p1(xd); in read_ref_frames()
349 const int ctx1 = vp9_get_pred_context_single_ref_p2(xd); in read_ref_frames()
367 VP9_COMMON *const cm, MACROBLOCKD *const xd, in read_switchable_interp_filter() argument
369 const int ctx = vp9_get_pred_context_switchable_interp(xd); in read_switchable_interp_filter()
373 FRAME_COUNTS *counts = xd->counts; in read_switchable_interp_filter()
380 MACROBLOCKD *const xd, MODE_INFO *mi, in read_intra_block_mode_info() argument
392 mi->bmi[i].as_mode = read_intra_mode_y(cm, xd, r, 0); in read_intra_block_mode_info()
396 mi->bmi[0].as_mode = mi->bmi[2].as_mode = read_intra_mode_y(cm, xd, in read_intra_block_mode_info()
399 read_intra_mode_y(cm, xd, r, 0); in read_intra_block_mode_info()
402 mi->bmi[0].as_mode = mi->bmi[1].as_mode = read_intra_mode_y(cm, xd, in read_intra_block_mode_info()
405 read_intra_mode_y(cm, xd, r, 0); in read_intra_block_mode_info()
408 mbmi->mode = read_intra_mode_y(cm, xd, r, size_group_lookup[bsize]); in read_intra_block_mode_info()
411 mbmi->uv_mode = read_intra_mode_uv(cm, xd, r, mbmi->mode); in read_intra_block_mode_info()
419 static INLINE int assign_mv(VP9_COMMON *cm, MACROBLOCKD *xd, in assign_mv() argument
429 FRAME_COUNTS *counts = xd->counts; in assign_mv()
463 static int read_is_inter_block(VP9_COMMON *const cm, MACROBLOCKD *const xd, in read_is_inter_block() argument
468 const int ctx = vp9_get_intra_inter_context(xd); in read_is_inter_block()
470 FRAME_COUNTS *counts = xd->counts; in read_is_inter_block()
484 MACROBLOCKD *const xd, in read_inter_block_mode_info() argument
496 read_ref_frames(cm, xd, r, mbmi->segment_id, mbmi->ref_frame); in read_inter_block_mode_info()
503 xd->block_refs[ref] = ref_buf; in read_inter_block_mode_info()
505 vpx_internal_error(xd->error_info, VPX_CODEC_UNSUP_BITSTREAM, in read_inter_block_mode_info()
507 vp9_setup_pre_planes(xd, ref, ref_buf->buf, mi_row, mi_col, in read_inter_block_mode_info()
509 vp9_find_mv_refs(cm, xd, mi, frame, ref_mvs[frame], in read_inter_block_mode_info()
516 vpx_internal_error(xd->error_info, VPX_CODEC_UNSUP_BITSTREAM, in read_inter_block_mode_info()
522 mbmi->mode = read_inter_mode(cm, xd, r, in read_inter_block_mode_info()
528 vp9_find_best_ref_mvs(xd, allow_hp, ref_mvs[mbmi->ref_frame[ref]], in read_inter_block_mode_info()
534 ? read_switchable_interp_filter(cm, xd, r) in read_inter_block_mode_info()
538 const int num_4x4_w = 1 << xd->bmode_blocks_wl; in read_inter_block_mode_info()
539 const int num_4x4_h = 1 << xd->bmode_blocks_hl; in read_inter_block_mode_info()
547 b_mode = read_inter_mode(cm, xd, r, inter_mode_ctx[mbmi->ref_frame[0]]); in read_inter_block_mode_info()
552 vp9_append_sub8x8_mvs_for_idx(cm, xd, j, ref, mi_row, mi_col, in read_inter_block_mode_info()
558 if (!assign_mv(cm, xd, b_mode, block, nearestmv, in read_inter_block_mode_info()
561 xd->corrupted |= 1; in read_inter_block_mode_info()
581 xd->corrupted |= !assign_mv(cm, xd, mbmi->mode, mbmi->mv, nearestmv, in read_inter_block_mode_info()
587 MACROBLOCKD *const xd, in read_inter_frame_mode_info() argument
590 MODE_INFO *const mi = xd->mi[0]; in read_inter_frame_mode_info()
596 mbmi->segment_id = read_inter_segment_id(cm, xd, mi_row, mi_col, r); in read_inter_frame_mode_info()
597 mbmi->skip = read_skip(cm, xd, mbmi->segment_id, r); in read_inter_frame_mode_info()
598 inter_block = read_is_inter_block(cm, xd, mbmi->segment_id, r); in read_inter_frame_mode_info()
599 mbmi->tx_size = read_tx_size(cm, xd, !mbmi->skip || !inter_block, r); in read_inter_frame_mode_info()
602 read_inter_block_mode_info(pbi, xd, mi, mi_row, mi_col, r); in read_inter_frame_mode_info()
604 read_intra_block_mode_info(cm, xd, mi, r); in read_inter_frame_mode_info()
607 void vpx_read_mode_info(VP9Decoder *const pbi, MACROBLOCKD *xd, in vpx_read_mode_info() argument
611 MODE_INFO *const mi = xd->mi[0]; in vpx_read_mode_info()
616 read_intra_frame_mode_info(cm, xd, mi_row, mi_col, r); in vpx_read_mode_info()
618 read_inter_frame_mode_info(pbi, xd, mi_row, mi_col, r); in vpx_read_mode_info()