Home
last modified time | relevance | path

Searched refs:mbmi (Results 1 – 25 of 67) sorted by relevance

123

/external/libaom/libaom/av1/decoder/
Ddecodemv.c41 MB_MODE_INFO *const mbmi = xd->mi[0]; in read_cdef() local
61 xd->cdef_preset[index] == -1 && !mbmi->skip in read_cdef()
67 aom_reader *r, MB_MODE_INFO *const mbmi, in read_delta_qindex() argument
70 BLOCK_SIZE bsize = mbmi->sb_type; in read_delta_qindex()
76 if ((bsize != cm->seq_params.sb_size || mbmi->skip == 0) && in read_delta_qindex()
99 const MB_MODE_INFO *const mbmi, int mi_col, in read_delta_lflevel() argument
102 const BLOCK_SIZE bsize = mbmi->sb_type; in read_delta_lflevel()
107 if ((bsize != cm->seq_params.sb_size || mbmi->skip == 0) && in read_delta_lflevel()
180 MB_MODE_INFO *mbmi, aom_reader *r) { in read_drl_idx() argument
181 uint8_t ref_frame_type = av1_ref_frame_type(mbmi->ref_frame); in read_drl_idx()
[all …]
Dinspection.c71 const MB_MODE_INFO *mbmi = cm->mi_grid_visible[j * cm->mi_stride + i]; in ifd_inspect() local
74 mi->segment_id = mbmi->segment_id; in ifd_inspect()
76 mi->mv[0].row = mbmi->mv[0].as_mv.row; in ifd_inspect()
77 mi->mv[0].col = mbmi->mv[0].as_mv.col; in ifd_inspect()
78 mi->mv[1].row = mbmi->mv[1].as_mv.row; in ifd_inspect()
79 mi->mv[1].col = mbmi->mv[1].as_mv.col; in ifd_inspect()
81 mi->ref_frame[0] = mbmi->ref_frame[0]; in ifd_inspect()
82 mi->ref_frame[1] = mbmi->ref_frame[1]; in ifd_inspect()
84 mi->mode = mbmi->mode; in ifd_inspect()
85 mi->intrabc = (int16_t)mbmi->use_intrabc; in ifd_inspect()
[all …]
Ddecodetxb.c120 MB_MODE_INFO *const mbmi = xd->mi[0]; in av1_read_coeffs_txb() local
122 const int16_t *const dequant = pd->seg_dequant_QTX[mbmi->segment_id]; in av1_read_coeffs_txb()
143 av1_get_txk_type_index(mbmi->sb_type, blk_row, blk_col); in av1_read_coeffs_txb()
144 mbmi->tx_skip[txk_type_idx] = all_zero; in av1_read_coeffs_txb()
152 av1_get_txk_type_index(mbmi->sb_type, blk_row, blk_col); in av1_read_coeffs_txb()
153 mbmi->txk_type[txk_type_idx] = DCT_DCT; in av1_read_coeffs_txb()
168 ? pd->seg_iqmatrix[mbmi->segment_id][qm_tx_size] in av1_read_coeffs_txb()
335 MB_MODE_INFO *const mbmi = xd->mi[0]; in av1_read_coeffs_txb_facade() local
338 const BLOCK_SIZE bsize = mbmi->sb_type; in av1_read_coeffs_txb_facade()
349 if (is_inter_block(mbmi)) { in av1_read_coeffs_txb_facade()
[all …]
/external/libvpx/libvpx/vp8/decoder/
Ddecodemv.c46 mi->mbmi.ref_frame = INTRA_FRAME; in read_kf_modes()
47 mi->mbmi.mode = read_kf_ymode(bc, vp8_kf_ymode_prob); in read_kf_modes()
49 if (mi->mbmi.mode == B_PRED) { in read_kf_modes()
51 mi->mbmi.is_4x4 = 1; in read_kf_modes()
61 mi->mbmi.uv_mode = read_uv_mode(bc, vp8_kf_uv_mode_prob); in read_kf_modes()
189 MB_MODE_INFO *mbmi, int_mv best_mv, in decode_split_mv() argument
220 if (left_mb->mbmi.mode != SPLITMV) { in decode_split_mv()
221 leftmv.as_int = left_mb->mbmi.mv.as_int; in decode_split_mv()
231 if (above_mb->mbmi.mode != SPLITMV) { in decode_split_mv()
232 abovemv.as_int = above_mb->mbmi.mv.as_int; in decode_split_mv()
[all …]
Derror_concealment.c245 MV *const filtered_mv = &(mi->mbmi.mv.as_mv); in estimate_mb_mvs()
249 mi->mbmi.need_to_clamp_mvs = 0; in estimate_mb_mvs()
260 mi->mbmi.need_to_clamp_mvs |= vp8_check_mv_bounds( in estimate_mb_mvs()
303 if (prev_mi->mbmi.ref_frame == LAST_FRAME) { in estimate_missing_mvs()
326 mi->mbmi.ref_frame = LAST_FRAME; in estimate_missing_mvs()
327 mi->mbmi.mode = SPLITMV; in estimate_missing_mvs()
328 mi->mbmi.uv_mode = DC_PRED; in estimate_missing_mvs()
329 mi->mbmi.partitioning = 3; in estimate_missing_mvs()
330 mi->mbmi.segment_id = 0; in estimate_missing_mvs()
347 assert(mi->mbmi.ref_frame < MAX_REF_FRAMES); in assign_neighbor()
[all …]
/external/libaom/libaom/av1/common/
Dblockd.h274 static INLINE int is_intrabc_block(const MB_MODE_INFO *mbmi) { in is_intrabc_block() argument
275 return mbmi->use_intrabc; in is_intrabc_block()
301 static INLINE int is_inter_block(const MB_MODE_INFO *mbmi) { in is_inter_block() argument
302 return is_intrabc_block(mbmi) || mbmi->ref_frame[0] > INTRA_FRAME; in is_inter_block()
305 static INLINE int has_second_ref(const MB_MODE_INFO *mbmi) { in has_second_ref() argument
306 return mbmi->ref_frame[1] > INTRA_FRAME; in has_second_ref()
309 static INLINE int has_uni_comp_refs(const MB_MODE_INFO *mbmi) { in has_uni_comp_refs() argument
310 return has_second_ref(mbmi) && (!((mbmi->ref_frame[0] >= BWDREF_FRAME) ^ in has_uni_comp_refs()
311 (mbmi->ref_frame[1] >= BWDREF_FRAME))); in has_uni_comp_refs()
350 static INLINE int is_global_mv_block(const MB_MODE_INFO *const mbmi, in is_global_mv_block() argument
[all …]
Dreconintra.h71 const MB_MODE_INFO *mbmi) { in av1_filter_intra_allowed() argument
72 return mbmi->mode == DC_PRED && in av1_filter_intra_allowed()
73 mbmi->palette_mode_info.palette_size[0] == 0 && in av1_filter_intra_allowed()
74 av1_filter_intra_allowed_bsize(cm, mbmi->sb_type); in av1_filter_intra_allowed()
Dmvref_common.c1075 static INLINE void record_samples(MB_MODE_INFO *mbmi, int *pts, int *pts_inref, in record_samples() argument
1078 int bw = block_size_wide[mbmi->sb_type]; in record_samples()
1079 int bh = block_size_high[mbmi->sb_type]; in record_samples()
1085 pts_inref[0] = (x * 8) + mbmi->mv[0].as_mv.col; in record_samples()
1086 pts_inref[1] = (y * 8) + mbmi->mv[0].as_mv.row; in record_samples()
1152 MB_MODE_INFO *mbmi = xd->mi[mi_row_offset * xd->mi_stride]; in findSamples() local
1153 uint8_t n4_w = mi_size_wide[mbmi->sb_type]; in findSamples()
1162 if (mbmi->ref_frame[0] == ref_frame && mbmi->ref_frame[1] == NONE_FRAME) { in findSamples()
1163 record_samples(mbmi, pts, pts_inref, 0, -1, col_offset, 1); in findSamples()
1173 mbmi = xd->mi[mi_col_offset + mi_row_offset * xd->mi_stride]; in findSamples()
[all …]
/external/libaom/libaom/av1/encoder/
Dbitstream.c98 static void write_drl_idx(FRAME_CONTEXT *ec_ctx, const MB_MODE_INFO *mbmi, in write_drl_idx() argument
100 uint8_t ref_frame_type = av1_ref_frame_type(mbmi->ref_frame); in write_drl_idx()
102 assert(mbmi->ref_mv_idx < 3); in write_drl_idx()
104 const int new_mv = mbmi->mode == NEWMV || mbmi->mode == NEW_NEWMV; in write_drl_idx()
112 aom_write_symbol(w, mbmi->ref_mv_idx != idx, ec_ctx->drl_cdf[drl_ctx], in write_drl_idx()
114 if (mbmi->ref_mv_idx == idx) return; in write_drl_idx()
120 if (have_nearmv_in_inter_mode(mbmi->mode)) { in write_drl_idx()
127 aom_write_symbol(w, mbmi->ref_mv_idx != (idx - 1), in write_drl_idx()
129 if (mbmi->ref_mv_idx == (idx - 1)) return; in write_drl_idx()
145 static void write_tx_size_vartx(MACROBLOCKD *xd, const MB_MODE_INFO *mbmi, in write_tx_size_vartx() argument
[all …]
Drdopt.c866 const MB_MODE_INFO *mbmi) { in inter_modes_info_push() argument
869 inter_modes_info->mbmi_arr[num] = *mbmi; in inter_modes_info_push()
1911 const MB_MODE_INFO *mbmi = xd->mi[0]; in prune_tx() local
1912 const int is_inter = is_inter_block(mbmi); in prune_tx()
1919 x->use_default_inter_tx_type || xd->lossless[mbmi->segment_id] || in prune_tx()
1983 const MB_MODE_INFO *mbmi = xd->mi[0]; in get_sse() local
1988 const BLOCK_SIZE bs = get_plane_block_size(mbmi->sb_type, pd->subsampling_x, in get_sse()
3083 MB_MODE_INFO *mbmi = xd->mi[0]; in search_txk_type() local
3084 const int is_inter = is_inter_block(mbmi); in search_txk_type()
3110 cpi->optimize_seg_arr[mbmi->segment_id] == NO_TRELLIS_OPT || in search_txk_type()
[all …]
Dencodeframe.c264 MB_MODE_INFO *mbmi; in set_offsets() local
269 mbmi = xd->mi[0]; in set_offsets()
270 mbmi->segment_id = 0; in set_offsets()
275 mbmi->segment_id = in set_offsets()
278 av1_init_plane_quantizers(cpi, x, mbmi->segment_id); in set_offsets()
285 const MB_MODE_INFO *mbmi) { in update_filter_type_count() argument
289 InterpFilter filter = av1_extract_interp_filter(mbmi->interp_filters, dir); in update_filter_type_count()
299 const MB_MODE_INFO *mbmi, in update_global_motion_used() argument
304 for (ref = 0; ref < 1 + has_second_ref(mbmi); ++ref) { in update_global_motion_used()
305 rdc->global_motion_used[mbmi->ref_frame[ref]] += num_4x4s; in update_global_motion_used()
[all …]
Dreconinter_enc.h44 static INLINE int has_subpel_mv_component(const MB_MODE_INFO *const mbmi, in has_subpel_mv_component() argument
48 const BLOCK_SIZE bsize = mbmi->sb_type; in has_subpel_mv_component()
53 if (mbmi->mv[ref].as_mv.col & SUBPEL_MASK) return 1; in has_subpel_mv_component()
55 if (mbmi->mv[ref].as_mv.row & SUBPEL_MASK) return 1; in has_subpel_mv_component()
60 (void)mbmi; in has_subpel_mv_component()
Daq_cyclicrefresh.c97 const MB_MODE_INFO *mbmi, int64_t rate, in candidate_refresh_aq() argument
99 MV mv = mbmi->mv[0].as_mv; in candidate_refresh_aq()
108 !is_inter_block(mbmi))) in candidate_refresh_aq()
111 is_inter_block(mbmi) && mbmi->mv[0].as_int == 0 && in candidate_refresh_aq()
200 MB_MODE_INFO *const mbmi, int mi_row, in av1_cyclic_refresh_update_segment() argument
211 candidate_refresh_aq(cr, mbmi, rate, dist, bsize); in av1_cyclic_refresh_update_segment()
219 if (cyclic_refresh_segment_id_boosted(mbmi->segment_id)) { in av1_cyclic_refresh_update_segment()
220 mbmi->segment_id = refresh_this_block; in av1_cyclic_refresh_update_segment()
222 if (skip) mbmi->segment_id = CR_SEGMENT_ID_BASE; in av1_cyclic_refresh_update_segment()
229 if (cyclic_refresh_segment_id_boosted(mbmi->segment_id)) { in av1_cyclic_refresh_update_segment()
[all …]
Dencodemb.c137 MB_MODE_INFO *const mbmi = xd->mi[0]; in av1_xform_quant() local
147 int seg_id = mbmi->segment_id; in av1_xform_quant()
169 txfm_param.lossless = xd->lossless[mbmi->segment_id]; in av1_xform_quant()
171 txfm_param.tx_size, is_inter_block(mbmi), cm->reduced_tx_set_used); in av1_xform_quant()
211 MB_MODE_INFO *mbmi = xd->mi[0]; in encode_block() local
226 if (!is_blk_skip(x, plane, blk_row * bw + blk_col) && !mbmi->skip_mode) { in encode_block()
275 assert(mbmi->txk_type[av1_get_txk_type_index(plane_bsize, blk_row, in encode_block()
280 update_txk_array(mbmi->txk_type, plane_bsize, blk_row, blk_col, tx_size, in encode_block()
308 MB_MODE_INFO *const mbmi = xd->mi[0]; in encode_block_inter() local
316 plane ? av1_get_max_uv_txsize(mbmi->sb_type, pd->subsampling_x, in encode_block_inter()
[all …]
Dtokenize.c81 const MB_MODE_INFO *const mbmi = xd->mi[0]; in get_palette_params() local
82 const PALETTE_MODE_INFO *const pmi = &mbmi->palette_mode_info; in get_palette_params()
138 MB_MODE_INFO *const mbmi = xd->mi[0]; in tokenize_vartx() local
146 plane ? av1_get_max_uv_txsize(mbmi->sb_type, pd->subsampling_x, in tokenize_vartx()
148 : mbmi->inter_tx_size[av1_get_txb_size_index(plane_bsize, blk_row, in tokenize_vartx()
152 plane_bsize = get_plane_block_size(mbmi->sb_type, pd->subsampling_x, in tokenize_vartx()
196 MB_MODE_INFO *const mbmi = xd->mi[0]; in av1_tokenize_sb_vartx() local
201 if (mbmi->skip) { in av1_tokenize_sb_vartx()
/external/libvpx/libvpx/vp8/common/
Dvp8_loopfilter.c178 int skip_lf = (mode_info_context->mbmi.mode != B_PRED && in vp8_loop_filter_row_normal()
179 mode_info_context->mbmi.mode != SPLITMV && in vp8_loop_filter_row_normal()
180 mode_info_context->mbmi.mb_skip_coeff); in vp8_loop_filter_row_normal()
182 const int mode_index = lfi_n->mode_lf_lut[mode_info_context->mbmi.mode]; in vp8_loop_filter_row_normal()
183 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_row_normal()
184 const int ref_frame = mode_info_context->mbmi.ref_frame; in vp8_loop_filter_row_normal()
231 int skip_lf = (mode_info_context->mbmi.mode != B_PRED && in vp8_loop_filter_row_simple()
232 mode_info_context->mbmi.mode != SPLITMV && in vp8_loop_filter_row_simple()
233 mode_info_context->mbmi.mb_skip_coeff); in vp8_loop_filter_row_simple()
235 const int mode_index = lfi_n->mode_lf_lut[mode_info_context->mbmi.mode]; in vp8_loop_filter_row_simple()
[all …]
Dfindnearmv.c40 if (above->mbmi.ref_frame != INTRA_FRAME) { in vp8_find_near_mvs()
41 if (above->mbmi.mv.as_int) { in vp8_find_near_mvs()
42 (++mv)->as_int = above->mbmi.mv.as_int; in vp8_find_near_mvs()
43 mv_bias(ref_frame_sign_bias[above->mbmi.ref_frame], refframe, mv, in vp8_find_near_mvs()
52 if (left->mbmi.ref_frame != INTRA_FRAME) { in vp8_find_near_mvs()
53 if (left->mbmi.mv.as_int) { in vp8_find_near_mvs()
56 this_mv.as_int = left->mbmi.mv.as_int; in vp8_find_near_mvs()
57 mv_bias(ref_frame_sign_bias[left->mbmi.ref_frame], refframe, &this_mv, in vp8_find_near_mvs()
72 if (aboveleft->mbmi.ref_frame != INTRA_FRAME) { in vp8_find_near_mvs()
73 if (aboveleft->mbmi.mv.as_int) { in vp8_find_near_mvs()
[all …]
Ddebugmodes.c27 fprintf(mvs, "%2d ", mi[mb_index].mbmi.mode); in vp8_print_modes_and_motion_vectors()
43 fprintf(mvs, "%2d ", mi[mb_index].mbmi.ref_frame); in vp8_print_modes_and_motion_vectors()
60 fprintf(mvs, "%2d ", mi[mb_index].mbmi.uv_mode); in vp8_print_modes_and_motion_vectors()
84 if (mi[mb_index].mbmi.mode == B_PRED) in vp8_print_modes_and_motion_vectors()
101 fprintf(mvs, "%5d:%-5d", mi[mb_index].mbmi.mv.as_mv.row / 2, in vp8_print_modes_and_motion_vectors()
102 mi[mb_index].mbmi.mv.as_mv.col / 2); in vp8_print_modes_and_motion_vectors()
Dfindnearmv.h91 if (cur_mb->mbmi.mode != SPLITMV) return cur_mb->mbmi.mv.as_int; in left_block_mv()
104 if (cur_mb->mbmi.mode != SPLITMV) return cur_mb->mbmi.mv.as_int; in above_block_mv()
115 switch (cur_mb->mbmi.mode) { in left_block_mode()
134 switch (cur_mb->mbmi.mode) { in above_block_mode()
/external/libvpx/libvpx/vp8/encoder/
Dmr_dissim.c32 if (x->mbmi.ref_frame != INTRA_FRAME) { \
33 mvx[cnt] = x->mbmi.mv.as_mv.row; \
34 mvy[cnt] = x->mbmi.mv.as_mv.col; \
39 if (x->mbmi.ref_frame != INTRA_FRAME) { \
40 mvx[cnt] = x->mbmi.mv.as_mv.row; \
41 mvy[cnt] = x->mbmi.mv.as_mv.col; \
42 if (cm->ref_frame_sign_bias[x->mbmi.ref_frame] != \
43 cm->ref_frame_sign_bias[tmp->mbmi.ref_frame]) { \
87 if (tmp->mbmi.ref_frame != INTRA_FRAME) { in vp8_cal_dissimilarity()
175 mmvx = VPXMAX(abs(min_mvx - here->mbmi.mv.as_mv.row), in vp8_cal_dissimilarity()
[all …]
Dpickinter.c375 mb->e_mbd.mode_info_context->mbmi.uv_mode = best_mode; in pick_intra_mbuv_mode()
382 if (xd->mode_info_context->mbmi.mode == NEWMV) { in update_mvcount()
383 x->MVcount[0][mv_max + ((xd->mode_info_context->mbmi.mv.as_mv.row - in update_mvcount()
386 x->MVcount[1][mv_max + ((xd->mode_info_context->mbmi.mv.as_mv.col - in update_mvcount()
467 MB_PREDICTION_MODE this_mode = x->e_mbd.mode_info_context->mbmi.mode; in evaluate_inter_mode()
468 int_mv mv = x->e_mbd.mode_info_context->mbmi.mv; in evaluate_inter_mode()
498 x->e_mbd.mode_info_context->mbmi.ref_frame == LAST_FRAME && in evaluate_inter_mode()
519 mv_l = mic->mbmi.mv; in calculate_zeromv_rd_adjustment()
521 if (mic->mbmi.ref_frame != INTRA_FRAME) { in calculate_zeromv_rd_adjustment()
529 mv_al = mic->mbmi.mv; in calculate_zeromv_rd_adjustment()
[all …]
Dencodeframe.c438 xd->mode_info_context->mbmi.segment_id = in encode_mb_row()
441 xd->mode_info_context->mbmi.segment_id = 0; in encode_mb_row()
447 xd->mode_info_context->mbmi.segment_id = 0; in encode_mb_row()
455 y_modes[xd->mbmi.mode]++; in encode_mb_row()
462 inter_y_modes[xd->mbmi.mode]++; in encode_mb_row()
464 if (xd->mbmi.mode == SPLITMV) { in encode_mb_row()
467 for (b = 0; b < xd->mbmi.partition_count; ++b) { in encode_mb_row()
478 if (xd->mode_info_context->mbmi.mode == ZEROMV && in encode_mb_row()
479 xd->mode_info_context->mbmi.ref_frame == LAST_FRAME) { in encode_mb_row()
505 xd->mode_info_context->mbmi.segment_id; in encode_mb_row()
[all …]
Drdopt.c379 int mv_row = x->e_mbd.mode_info_context->mbmi.mv.as_mv.row; in VP8_UVSSE()
380 int mv_col = x->e_mbd.mode_info_context->mbmi.mv.as_mv.col; in VP8_UVSSE()
658 xd->mode_info_context->mbmi.mode = mode; in rd_pick_intra16x16mby_mode()
666 x->mbmode_cost[xd->frame_type][xd->mode_info_context->mbmi.mode]; in rd_pick_intra16x16mby_mode()
680 xd->mode_info_context->mbmi.mode = mode_selected; in rd_pick_intra16x16mby_mode()
758 xd->mode_info_context->mbmi.uv_mode = mode; in rd_pick_intra_mbuv_mode()
775 [xd->mode_info_context->mbmi.uv_mode]; in rd_pick_intra_mbuv_mode()
794 xd->mode_info_context->mbmi.uv_mode = mode_selected; in rd_pick_intra_mbuv_mode()
806 x->e_mbd.mode_info_context->mbmi.mode = mb; in vp8_set_mbmode_and_mvs()
807 x->e_mbd.mode_info_context->mbmi.mv.as_int = mv->as_int; in vp8_set_mbmode_and_mvs()
[all …]
Dethreading.c161 xd->mode_info_context->mbmi.segment_id = in thread_encoding_proc()
164 xd->mode_info_context->mbmi.segment_id = 0; in thread_encoding_proc()
170 xd->mode_info_context->mbmi.segment_id = 0; in thread_encoding_proc()
178 y_modes[xd->mbmi.mode]++; in thread_encoding_proc()
185 inter_y_modes[xd->mbmi.mode]++; in thread_encoding_proc()
187 if (xd->mbmi.mode == SPLITMV) { in thread_encoding_proc()
190 for (b = 0; b < xd->mbmi.partition_count; ++b) { in thread_encoding_proc()
200 if (xd->mode_info_context->mbmi.mode == ZEROMV && in thread_encoding_proc()
201 xd->mode_info_context->mbmi.ref_frame == LAST_FRAME) { in thread_encoding_proc()
228 const MB_MODE_INFO *mbmi = &xd->mode_info_context->mbmi; in thread_encoding_proc() local
[all …]
/external/libvpx/libvpx/vp9/common/
Dvp9_mvref_common.h262 #define IF_DIFF_REF_FRAME_ADD_MV(mbmi, ref_frame, ref_sign_bias, refmv_count, \ argument
265 if (is_inter_block(mbmi)) { \
266 if ((mbmi)->ref_frame[0] != ref_frame) \
267 ADD_MV_REF_LIST(scale_mv((mbmi), 0, ref_frame, ref_sign_bias), \
269 if (has_second_ref(mbmi) && (mbmi)->ref_frame[1] != ref_frame && \
270 (mbmi)->mv[1].as_int != (mbmi)->mv[0].as_int) \
271 ADD_MV_REF_LIST(scale_mv((mbmi), 1, ref_frame, ref_sign_bias), \

123