Home
last modified time | relevance | path

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

12

/external/libvpx/vp8/common/
Dfindnearmv.c49 if (above->mbmi.ref_frame != INTRA_FRAME) in vp8_find_near_mvs()
51 if (above->mbmi.mv.as_int) in vp8_find_near_mvs()
53 (++mv)->as_int = above->mbmi.mv.as_int; in vp8_find_near_mvs()
54 mv_bias(ref_frame_sign_bias[above->mbmi.ref_frame], refframe, mv, ref_frame_sign_bias); in vp8_find_near_mvs()
62 if (left->mbmi.ref_frame != INTRA_FRAME) in vp8_find_near_mvs()
64 if (left->mbmi.mv.as_int) in vp8_find_near_mvs()
68 this_mv.as_int = left->mbmi.mv.as_int; in vp8_find_near_mvs()
69 … mv_bias(ref_frame_sign_bias[left->mbmi.ref_frame], refframe, &this_mv, ref_frame_sign_bias); in vp8_find_near_mvs()
84 if (aboveleft->mbmi.ref_frame != INTRA_FRAME) in vp8_find_near_mvs()
86 if (aboveleft->mbmi.mv.as_int) in vp8_find_near_mvs()
[all …]
Ddebugmodes.c33 fprintf(mvs, "%2d ", mi[mb_index].mbmi.mode); in vp8_print_modes_and_motion_vectors()
52 fprintf(mvs, "%2d ", mi[mb_index].mbmi.ref_frame); in vp8_print_modes_and_motion_vectors()
72 fprintf(mvs, "%2d ", mi[mb_index].mbmi.uv_mode); in vp8_print_modes_and_motion_vectors()
99 if (mi[mb_index].mbmi.mode == B_PRED) in vp8_print_modes_and_motion_vectors()
119 … fprintf(mvs, "%5d:%-5d", mi[mb_index].mbmi.mv.as_mv.row / 2, mi[mb_index].mbmi.mv.as_mv.col / 2); in vp8_print_modes_and_motion_vectors()
Dloopfilter.c254 MB_MODE_INFO *mbmi = &mbd->mode_info_context->mbmi; in vp8_adjust_mb_lf_value() local
259 filter_level += mbd->ref_lf_deltas[mbmi->ref_frame]; in vp8_adjust_mb_lf_value()
262 if (mbmi->ref_frame == INTRA_FRAME) in vp8_adjust_mb_lf_value()
265 if (mbmi->mode == B_PRED) in vp8_adjust_mb_lf_value()
271 if (mbmi->mode == ZEROMV) in vp8_adjust_mb_lf_value()
275 else if (mbmi->mode == SPLITMV) in vp8_adjust_mb_lf_value()
355 int Segment = (alt_flt_enabled) ? mbd->mode_info_context->mbmi.segment_id : 0; in vp8_loop_filter_frame()
370 if (mbd->mode_info_context->mbmi.dc_diff > 0) in vp8_loop_filter_frame()
377 if (mbd->mode_info_context->mbmi.dc_diff > 0) in vp8_loop_filter_frame()
459 int Segment = (alt_flt_enabled) ? mbd->mode_info_context->mbmi.segment_id : 0; in vp8_loop_filter_frame_yonly()
[all …]
Dreconinter.c214 if (x->mode_info_context->mbmi.ref_frame != INTRA_FRAME && in vp8_build_inter_predictors_mbuv()
215 x->mode_info_context->mbmi.mode != SPLITMV) in vp8_build_inter_predictors_mbuv()
263 if (x->mode_info_context->mbmi.ref_frame != INTRA_FRAME && in vp8_build_inter_predictors_mby()
264 x->mode_info_context->mbmi.mode != SPLITMV) in vp8_build_inter_predictors_mby()
269 int mv_row = x->mode_info_context->mbmi.mv.as_mv.row; in vp8_build_inter_predictors_mby()
270 int mv_col = x->mode_info_context->mbmi.mv.as_mv.col; in vp8_build_inter_predictors_mby()
289 if (x->mode_info_context->mbmi.partitioning < 3) in vp8_build_inter_predictors_mby()
321 if (x->mode_info_context->mbmi.ref_frame != INTRA_FRAME && in vp8_build_inter_predictors_mb()
322 x->mode_info_context->mbmi.mode != SPLITMV) in vp8_build_inter_predictors_mb()
332 int mv_row = x->mode_info_context->mbmi.mv.as_mv.row; in vp8_build_inter_predictors_mb()
[all …]
Dpostproc.c776 sprintf(zz, "%c", mi[mb_index].mbmi.mode + 'a'); in vp8_post_proc_frame()
811 sprintf(zz, "%c", mi[mb_index].mbmi.dc_diff + '0'); in vp8_post_proc_frame()
849 if (!(ppflags->display_mv_flag & (1<<mi->mbmi.mode))) in vp8_post_proc_frame()
855 if (mi->mbmi.mode == SPLITMV) in vp8_post_proc_frame()
857 switch (mi->mbmi.partitioning) in vp8_post_proc_frame()
960 else if (mi->mbmi.mode >= NEARESTMV) in vp8_post_proc_frame()
962 MV *mv = &mi->mbmi.mv.as_mv; in vp8_post_proc_frame()
1007 if (mi->mbmi.mode == B_PRED && in vp8_post_proc_frame()
1022 if ((ppflags->display_b_modes_flag & (1<<mi->mbmi.mode)) in vp8_post_proc_frame()
1040 else if (ppflags->display_mb_modes_flag & (1<<mi->mbmi.mode)) in vp8_post_proc_frame()
[all …]
Dinvtrans.c68 if (x->mode_info_context->mbmi.mode != B_PRED && in vp8_inverse_transform_mb()
69 x->mode_info_context->mbmi.mode != SPLITMV) in vp8_inverse_transform_mb()
Dreconintra.c46 switch (x->mode_info_context->mbmi.mode) in vp8_build_intra_predictors_mby()
167 switch (x->mode_info_context->mbmi.mode) in vp8_build_intra_predictors_mby_s()
293 switch (x->mode_info_context->mbmi.uv_mode) in vp8_build_intra_predictors_mbuv()
433 switch (x->mode_info_context->mbmi.uv_mode) in vp8_build_intra_predictors_mbuv_s()
Dblockd.h183 MB_MODE_INFO mbmi; member
/external/libvpx/vp8/decoder/
Ddecodemv.c76 m->mbmi.segment_id = 0; in vp8_kfread_modes()
79 vp8_read_mb_features(bc, &m->mbmi, &pbi->mb); in vp8_kfread_modes()
83 m->mbmi.mb_skip_coeff = vp8_read(bc, pbi->prob_skip_false); in vp8_kfread_modes()
85 m->mbmi.mb_skip_coeff = 0; in vp8_kfread_modes()
89 m->mbmi.ref_frame = INTRA_FRAME; in vp8_kfread_modes()
91 if ((m->mbmi.mode = y_mode) == B_PRED) in vp8_kfread_modes()
135 m->mbmi.uv_mode = (MB_PREDICTION_MODE)vp8_read_uv_mode(bc, pbi->common.kf_uv_mode_prob); in vp8_kfread_modes()
283 static void read_mb_modes_mv(VP8D_COMP *pbi, MODE_INFO *mi, MB_MODE_INFO *mbmi, in read_mb_modes_mv() argument
291 MV *const mv = & mbmi->mv.as_mv; in read_mb_modes_mv()
302 mbmi->need_to_clamp_mvs = 0; in read_mb_modes_mv()
[all …]
Ddecodframe.c68 MB_MODE_INFO *mbmi = &xd->mode_info_context->mbmi; in mb_init_dequantizer() local
76 QIndex = xd->segment_feature_data[MB_LVL_ALT_Q][mbmi->segment_id]; in mb_init_dequantizer()
81 QIndex = pc->base_qindex + xd->segment_feature_data[MB_LVL_ALT_Q][mbmi->segment_id]; in mb_init_dequantizer()
114 if (xd->frame_type == KEY_FRAME || xd->mode_info_context->mbmi.ref_frame == INTRA_FRAME) in skip_recon_mb()
161 if (xd->mode_info_context->mbmi.mode == SPLITMV) in clamp_mvs()
172 clamp_mv_to_umv_border(&xd->mode_info_context->mbmi.mv.as_mv, xd); in clamp_mvs()
181 int i, do_clamp = xd->mode_info_context->mbmi.need_to_clamp_mvs; in decode_macroblock()
183 if (xd->mode_info_context->mbmi.mb_skip_coeff) in decode_macroblock()
198 xd->mode_info_context->mbmi.dc_diff = 1; in decode_macroblock()
200 …if (xd->mode_info_context->mbmi.mode != B_PRED && xd->mode_info_context->mbmi.mode != SPLITMV && e… in decode_macroblock()
[all …]
Dthreading.c93 int i, do_clamp = xd->mode_info_context->mbmi.need_to_clamp_mvs; in decode_macroblock()
96 if (xd->mode_info_context->mbmi.mb_skip_coeff) in decode_macroblock()
111 xd->mode_info_context->mbmi.dc_diff = 1; in decode_macroblock()
113 …if (xd->mode_info_context->mbmi.mode != B_PRED && xd->mode_info_context->mbmi.mode != SPLITMV && e… in decode_macroblock()
115 xd->mode_info_context->mbmi.dc_diff = 0; in decode_macroblock()
118 if (xd->frame_type == KEY_FRAME || xd->mode_info_context->mbmi.ref_frame == INTRA_FRAME) in decode_macroblock()
134 if (xd->frame_type == KEY_FRAME || xd->mode_info_context->mbmi.ref_frame == INTRA_FRAME) in decode_macroblock()
138 if (xd->mode_info_context->mbmi.mode != B_PRED) in decode_macroblock()
151 if (xd->mode_info_context->mbmi.mode != B_PRED && xd->mode_info_context->mbmi.mode != SPLITMV) in decode_macroblock()
180 …type == KEY_FRAME || xd->mode_info_context->mbmi.ref_frame == INTRA_FRAME) && xd->mode_info_cont… in decode_macroblock()
[all …]
Ddetokenize.c71 if (x->mode_info_context->mbmi.mode != B_PRED && x->mode_info_context->mbmi.mode != SPLITMV) in vp8_reset_mb_tokens_context()
223 if (x->mode_info_context->mbmi.mode != B_PRED && x->mode_info_context->mbmi.mode != SPLITMV) in vp8_decode_mb_tokens()
Dreconintra_mt.c47 switch (x->mode_info_context->mbmi.mode) in vp8mt_build_intra_predictors_mby()
178 switch (x->mode_info_context->mbmi.mode) in vp8mt_build_intra_predictors_mby_s()
322 switch (x->mode_info_context->mbmi.uv_mode) in vp8mt_build_intra_predictors_mbuv()
479 switch (x->mode_info_context->mbmi.uv_mode) in vp8mt_build_intra_predictors_mbuv_s()
/external/libvpx/vp8/encoder/
Dtokenize.c205 has_y2_block = (x->mode_info_context->mbmi.mode != B_PRED in mb_is_skippable()
206 && x->mode_info_context->mbmi.mode != SPLITMV); in mb_is_skippable()
230 x->mode_info_context->mbmi.dc_diff = 1; in vp8_tokenize_mb()
234 if (x->mbmi.force_no_skip) in vp8_tokenize_mb()
236 x->mbmi.mb_skip_coeff = 1; in vp8_tokenize_mb()
238 x->mbmi.force_no_skip = 0; in vp8_tokenize_mb()
245 x->mode_info_context->mbmi.mb_skip_coeff = mb_is_skippable(x); in vp8_tokenize_mb()
246 if (x->mode_info_context->mbmi.mb_skip_coeff) in vp8_tokenize_mb()
258 if (x->mode_info_context->mbmi.mode != B_PRED && x->mode_info_context->mbmi.mode != SPLITMV) in vp8_tokenize_mb()
259 x->mode_info_context->mbmi.dc_diff = 0; in vp8_tokenize_mb()
[all …]
Dencodeframe.c317 QIndex = xd->segment_feature_data[MB_LVL_ALT_Q][xd->mode_info_context->mbmi.segment_id]; in vp8cx_mb_init_quantizer()
321 …ommon.base_qindex + xd->segment_feature_data[MB_LVL_ALT_Q][xd->mode_info_context->mbmi.segment_id]; in vp8cx_mb_init_quantizer()
562 … xd->mode_info_context->mbmi.segment_id = cpi->segmentation_map[seg_map_index+mb_col]; in encode_mb_row()
564 xd->mode_info_context->mbmi.segment_id = 0; in encode_mb_row()
569 xd->mode_info_context->mbmi.segment_id = 0; // Set to Segment 0 by default in encode_mb_row()
577 y_modes[xd->mbmi.mode] ++; in encode_mb_row()
585 inter_y_modes[xd->mbmi.mode] ++; in encode_mb_row()
587 if (xd->mbmi.mode == SPLITMV) in encode_mb_row()
591 for (b = 0; b < xd->mbmi.partition_count; b++) in encode_mb_row()
600 …if ((xd->mode_info_context->mbmi.mode == ZEROMV) && (xd->mode_info_context->mbmi.ref_frame == LAST… in encode_mb_row()
[all …]
Dpickinter.c410 mb->e_mbd.mode_info_context->mbmi.uv_mode = best_mode; in vp8_pick_intra_mbuv_mode()
536 x->e_mbd.mode_info_context->mbmi.ref_frame = INTRA_FRAME; in vp8_pick_inter_mode()
548 x->e_mbd.mode_info_context->mbmi.ref_frame = vp8_ref_frame_order[mode_index]; in vp8_pick_inter_mode()
550 if (skip_mode[x->e_mbd.mode_info_context->mbmi.ref_frame]) in vp8_pick_inter_mode()
583 x->e_mbd.mode_info_context->mbmi.mode = this_mode; in vp8_pick_inter_mode()
584 x->e_mbd.mode_info_context->mbmi.uv_mode = DC_PRED; in vp8_pick_inter_mode()
587 frame_cost = ref_frame_cost[x->e_mbd.mode_info_context->mbmi.ref_frame]; in vp8_pick_inter_mode()
591 if (x->e_mbd.mode_info_context->mbmi.ref_frame) in vp8_pick_inter_mode()
593 x->e_mbd.pre.y_buffer = y_buffer[x->e_mbd.mode_info_context->mbmi.ref_frame]; in vp8_pick_inter_mode()
594 x->e_mbd.pre.u_buffer = u_buffer[x->e_mbd.mode_info_context->mbmi.ref_frame]; in vp8_pick_inter_mode()
[all …]
Dethreading.c159 … xd->mode_info_context->mbmi.segment_id = cpi->segmentation_map[seg_map_index + mb_col]; in thread_encoding_proc()
161 xd->mode_info_context->mbmi.segment_id = 0; in thread_encoding_proc()
166 xd->mode_info_context->mbmi.segment_id = 0; // Set to Segment 0 by default in thread_encoding_proc()
174 y_modes[xd->mbmi.mode] ++; in thread_encoding_proc()
182 inter_y_modes[xd->mbmi.mode] ++; in thread_encoding_proc()
184 if (xd->mbmi.mode == SPLITMV) in thread_encoding_proc()
188 for (b = 0; b < xd->mbmi.partition_count; b++) in thread_encoding_proc()
197 …if ((xd->mode_info_context->mbmi.mode == ZEROMV) && (xd->mode_info_context->mbmi.ref_frame == LAST… in thread_encoding_proc()
205 const MB_MODE_INFO * mbmi = &xd->mode_info_context->mbmi; in thread_encoding_proc() local
206 cpi->segmentation_map[seg_map_index + mb_col] = mbmi->segment_id; in thread_encoding_proc()
[all …]
Drdopt.c746 x->e_mbd.mode_info_context->mbmi.mode = mode; in vp8_rd_pick_intra16x16mby_mode()
753 [x->e_mbd.mode_info_context->mbmi.mode]; in vp8_rd_pick_intra16x16mby_mode()
767 x->e_mbd.mode_info_context->mbmi.mode = mode_selected; in vp8_rd_pick_intra16x16mby_mode()
820 x->e_mbd.mode_info_context->mbmi.uv_mode = mode; in vp8_rd_pick_intra_mbuv_mode()
829 …e = rate_to + x->intra_uv_mode_cost[x->e_mbd.frame_type][x->e_mbd.mode_info_context->mbmi.uv_mode]; in vp8_rd_pick_intra_mbuv_mode()
848 x->e_mbd.mode_info_context->mbmi.uv_mode = mode_selected; in vp8_rd_pick_intra_mbuv_mode()
866 x->e_mbd.mode_info_context->mbmi.mode = mb; in vp8_set_mbmode_and_mvs()
867 x->e_mbd.mode_info_context->mbmi.mv.as_mv.row = mv->row; in vp8_set_mbmode_and_mvs()
868 x->e_mbd.mode_info_context->mbmi.mv.as_mv.col = mv->col; in vp8_set_mbmode_and_mvs()
1421 x->e_mbd.mode_info_context->mbmi.partitioning = bsi.segment_num; in vp8_rd_pick_best_mbsegmentation()
[all …]
Dsegmentation.c41 …if ((this_mb_mode_info->mbmi.ref_frame == GOLDEN_FRAME) || (this_mb_mode_info->mbmi.ref_frame == A… in vp8_update_gf_useage_maps()
49 else if ((this_mb_mode_info->mbmi.mode != ZEROMV) && *(x->gf_active_ptr)) in vp8_update_gf_useage_maps()
Dencodemb.c161 if (x->e_mbd.mode_info_context->mbmi.mode != SPLITMV) in transform_mb()
171 if (x->e_mbd.mode_info_context->mbmi.mode != SPLITMV) in transform_mb()
189 if (x->e_mbd.mode_info_context->mbmi.mode != SPLITMV) in transform_mby()
313 if(mb->e_mbd.mode_info_context->mbmi.ref_frame==INTRA_FRAME) in optimize_b()
520 has_2nd_order = (x->e_mbd.mode_info_context->mbmi.mode != B_PRED in optimize_mb()
521 && x->e_mbd.mode_info_context->mbmi.mode != SPLITMV); in optimize_mb()
567 has_2nd_order = (x->e_mbd.mode_info_context->mbmi.mode != B_PRED in vp8_optimize_mby()
568 && x->e_mbd.mode_info_context->mbmi.mode != SPLITMV); in vp8_optimize_mby()
Dquantize.c274 int has_2nd_order = (x->e_mbd.mode_info_context->mbmi.mode != B_PRED in vp8_quantize_mby()
275 && x->e_mbd.mode_info_context->mbmi.mode != SPLITMV); in vp8_quantize_mby()
287 int has_2nd_order=(x->e_mbd.mode_info_context->mbmi.mode != B_PRED in vp8_quantize_mb()
288 && x->e_mbd.mode_info_context->mbmi.mode != SPLITMV); in vp8_quantize_mb()
Dbitstream.c915 const MB_MODE_INFO *const mi = & m->mbmi; in pack_inter_mode_mvs()
936 vp8_encode_bool(w, m->mbmi.mb_skip_coeff, prob_skip_false); in pack_inter_mode_mvs()
1085 const int ym = m->mbmi.mode; in write_kfmodes()
1088 write_mb_features(bc, &m->mbmi, &cpi->mb.e_mbd); in write_kfmodes()
1091 vp8_encode_bool(bc, m->mbmi.mb_skip_coeff, prob_skip_false); in write_kfmodes()
1115 write_uv_mode(bc, (m++)->mbmi.uv_mode, c->kf_uv_mode_prob); in write_kfmodes()
Dencodeintra.c96 switch (x->e_mbd.mode_info_context->mbmi.mode) in vp8_encode_intra16x16mby()
Dfirstpass.c93 x->e_mbd.mode_info_context->mbmi.mode = DC_PRED; in encode_intra()
94 x->e_mbd.mode_info_context->mbmi.uv_mode = DC_PRED; in encode_intra()
95 x->e_mbd.mode_info_context->mbmi.ref_frame = INTRA_FRAME; in encode_intra()
/external/libvpx/vp8/common/arm/
Dreconintra_arm.c32 int mode = x->mode_info_context->mbmi.mode; in vp8_build_intra_predictors_mby_neon()
55 int mode = x->mode_info_context->mbmi.mode; in vp8_build_intra_predictors_mby_s_neon()

12