/external/libvpx/libvpx/vp8/decoder/ |
D | decodemv.c | 54 mi->mbmi.ref_frame = INTRA_FRAME; in read_kf_modes() 55 mi->mbmi.mode = read_kf_ymode(bc, vp8_kf_ymode_prob); in read_kf_modes() 57 if (mi->mbmi.mode == B_PRED) in read_kf_modes() 60 mi->mbmi.is_4x4 = 1; in read_kf_modes() 73 mi->mbmi.uv_mode = read_uv_mode(bc, vp8_kf_uv_mode_prob); in read_kf_modes() 232 MB_MODE_INFO *mbmi, int_mv best_mv, in decode_split_mv() argument 267 if(left_mb->mbmi.mode != SPLITMV) in decode_split_mv() 268 leftmv.as_int = left_mb->mbmi.mv.as_int; in decode_split_mv() 278 if(above_mb->mbmi.mode != SPLITMV) in decode_split_mv() 279 abovemv.as_int = above_mb->mbmi.mv.as_int; in decode_split_mv() [all …]
|
D | error_concealment.c | 288 MV * const filtered_mv = &(mi->mbmi.mv.as_mv); in estimate_mb_mvs() 292 mi->mbmi.need_to_clamp_mvs = 0; in estimate_mb_mvs() 305 mi->mbmi.need_to_clamp_mvs |= vp8_check_mv_bounds( in estimate_mb_mvs() 362 if (prev_mi->mbmi.ref_frame == LAST_FRAME) in estimate_missing_mvs() 389 mi->mbmi.ref_frame = LAST_FRAME; in estimate_missing_mvs() 390 mi->mbmi.mode = SPLITMV; in estimate_missing_mvs() 391 mi->mbmi.uv_mode = DC_PRED; in estimate_missing_mvs() 392 mi->mbmi.partitioning = 3; in estimate_missing_mvs() 393 mi->mbmi.segment_id = 0; in estimate_missing_mvs() 418 assert(mi->mbmi.ref_frame < MAX_REF_FRAMES); in assign_neighbor() [all …]
|
D | threading.c | 103 if (xd->mode_info_context->mbmi.mb_skip_coeff) in mt_decode_macroblock() 113 xd->mode_info_context->mbmi.mb_skip_coeff = (eobtotal==0); in mt_decode_macroblock() 116 mode = xd->mode_info_context->mbmi.mode; in mt_decode_macroblock() 155 if (xd->mode_info_context->mbmi.ref_frame == INTRA_FRAME) in mt_decode_macroblock() 181 if(xd->mode_info_context->mbmi.mb_skip_coeff) in mt_decode_macroblock() 251 if(!xd->mode_info_context->mbmi.mb_skip_coeff) in mt_decode_macroblock() 434 (xd->mode_info_context->mbmi.ref_frame == in mt_decode_mb_rows() 462 xd->pre.y_buffer = ref_buffer[xd->mode_info_context->mbmi.ref_frame][0] + recon_yoffset; in mt_decode_mb_rows() 463 xd->pre.u_buffer = ref_buffer[xd->mode_info_context->mbmi.ref_frame][1] + recon_uvoffset; in mt_decode_mb_rows() 464 xd->pre.v_buffer = ref_buffer[xd->mode_info_context->mbmi.ref_frame][2] + recon_uvoffset; in mt_decode_mb_rows() [all …]
|
/external/libvpx/libvpx/vp9/decoder/ |
D | vp9_decodemv.c | 85 BLOCK_SIZE bsize = xd->mi[0]->mbmi.sb_type; in read_tx_size() 152 MB_MODE_INFO *const mbmi = &xd->mi[0]->mbmi; in read_inter_segment_id() local 177 mbmi->seg_id_predicted = vpx_read(r, pred_prob); in read_inter_segment_id() 178 segment_id = mbmi->seg_id_predicted ? predicted_segment_id in read_inter_segment_id() 205 MB_MODE_INFO *const mbmi = &mi->mbmi; in read_intra_frame_mode_info() local 208 const BLOCK_SIZE bsize = mbmi->sb_type; in read_intra_frame_mode_info() 218 mbmi->segment_id = read_intra_segment_id(cm, mi_offset, x_mis, y_mis, r); 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() 221 mbmi->ref_frame[0] = INTRA_FRAME; in read_intra_frame_mode_info() [all …]
|
/external/libvpx/libvpx/vp9/common/ |
D | vp9_mvref_common.h | 139 return block_idx >= 0 && candidate->mbmi.sb_type < BLOCK_8X8 in get_sub_block_mv() 142 : candidate->mbmi.mv[which_mv]; in get_sub_block_mv() 147 static INLINE int_mv scale_mv(const MB_MODE_INFO *mbmi, int ref, in scale_mv() argument 150 int_mv mv = mbmi->mv[ref]; in scale_mv() 151 if (ref_sign_bias[mbmi->ref_frame[ref]] != ref_sign_bias[this_ref_frame]) { in scale_mv() 175 #define IF_DIFF_REF_FRAME_ADD_MV(mbmi, ref_frame, ref_sign_bias, refmv_count, \ argument 178 if (is_inter_block(mbmi)) { \ 179 if ((mbmi)->ref_frame[0] != ref_frame) \ 180 ADD_MV_REF_LIST(scale_mv((mbmi), 0, ref_frame, ref_sign_bias), \ 182 if (has_second_ref(mbmi) && \ [all …]
|
D | vp9_blockd.h | 87 MB_MODE_INFO mbmi; member 92 return mi->mbmi.sb_type < BLOCK_8X8 ? mi->bmi[block].as_mode in get_y_mode() 93 : mi->mbmi.mode; in get_y_mode() 96 static INLINE int is_inter_block(const MB_MODE_INFO *mbmi) { in is_inter_block() argument 97 return mbmi->ref_frame[0] > INTRA_FRAME; in is_inter_block() 100 static INLINE int has_second_ref(const MB_MODE_INFO *mbmi) { in has_second_ref() argument 101 return mbmi->ref_frame[1] > INTRA_FRAME; in has_second_ref() 212 const MB_MODE_INFO *const mbmi = &xd->mi[0]->mbmi; in get_tx_type() local 214 if (plane_type != PLANE_TYPE_Y || xd->lossless || is_inter_block(mbmi)) in get_tx_type() 217 return intra_mode_to_tx_type_lookup[mbmi->mode]; in get_tx_type() [all …]
|
D | vp9_blockd.c | 16 if (!left_mi || is_inter_block(&left_mi->mbmi)) in vp9_left_block_mode() 29 if (!above_mi || is_inter_block(&above_mi->mbmi)) in vp9_above_block_mode() 43 const MB_MODE_INFO* mbmi = &xd->mi[0]->mbmi; in vp9_foreach_transformed_block_in_plane() local 47 const TX_SIZE tx_size = plane ? get_uv_tx_size(mbmi, pd) in vp9_foreach_transformed_block_in_plane() 48 : mbmi->tx_size; in vp9_foreach_transformed_block_in_plane()
|
D | vp9_debugmodes.c | 38 *((int*) ((char *) (&mi[0]->mbmi) + in print_mi_data() 67 fprintf(mvs, "%2d ", mi[0]->mbmi.skip); in vp9_print_modes_and_motion_vectors() 81 fprintf(mvs, "%4d:%4d ", mi[0]->mbmi.mv[0].as_mv.row, in vp9_print_modes_and_motion_vectors() 82 mi[0]->mbmi.mv[0].as_mv.col); in vp9_print_modes_and_motion_vectors()
|
/external/libvpx/libvpx/vp8/common/ |
D | vp8_loopfilter.c | 210 int skip_lf = (mode_info_context->mbmi.mode != B_PRED && in vp8_loop_filter_row_normal() 211 mode_info_context->mbmi.mode != SPLITMV && in vp8_loop_filter_row_normal() 212 mode_info_context->mbmi.mb_skip_coeff); in vp8_loop_filter_row_normal() 214 const int mode_index = lfi_n->mode_lf_lut[mode_info_context->mbmi.mode]; in vp8_loop_filter_row_normal() 215 const int seg = mode_info_context->mbmi.segment_id; in vp8_loop_filter_row_normal() 216 const int ref_frame = mode_info_context->mbmi.ref_frame; in vp8_loop_filter_row_normal() 267 int skip_lf = (mode_info_context->mbmi.mode != B_PRED && in vp8_loop_filter_row_simple() 268 mode_info_context->mbmi.mode != SPLITMV && in vp8_loop_filter_row_simple() 269 mode_info_context->mbmi.mb_skip_coeff); in vp8_loop_filter_row_simple() 271 const int mode_index = lfi_n->mode_lf_lut[mode_info_context->mbmi.mode]; in vp8_loop_filter_row_simple() [all …]
|
D | findnearmv.c | 49 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 …]
|
D | debugmodes.c | 33 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() 98 if (mi[mb_index].mbmi.mode == B_PRED) in vp8_print_modes_and_motion_vectors() 118 … 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()
|
D | findnearmv.h | 111 if(cur_mb->mbmi.mode != SPLITMV) in left_block_mv() 112 return cur_mb->mbmi.mv.as_int; in left_block_mv() 126 if(cur_mb->mbmi.mode != SPLITMV) in above_block_mv() 127 return cur_mb->mbmi.mv.as_int; in above_block_mv() 139 switch (cur_mb->mbmi.mode) in left_block_mode() 166 switch (cur_mb->mbmi.mode) in above_block_mode()
|
/external/libvpx/libvpx/vp8/encoder/ |
D | mr_dissim.c | 33 if(x->mbmi.ref_frame !=INTRA_FRAME) \ 35 mvx[cnt] = x->mbmi.mv.as_mv.row; \ 36 mvy[cnt] = x->mbmi.mv.as_mv.col; \ 41 if(x->mbmi.ref_frame !=INTRA_FRAME) \ 43 mvx[cnt] = x->mbmi.mv.as_mv.row; \ 44 mvy[cnt] = x->mbmi.mv.as_mv.col; \ 45 if (cm->ref_frame_sign_bias[x->mbmi.ref_frame] \ 46 != cm->ref_frame_sign_bias[tmp->mbmi.ref_frame]) \ 97 if(tmp->mbmi.ref_frame !=INTRA_FRAME) in vp8_cal_dissimilarity() 195 mmvx = MAX(abs(min_mvx - here->mbmi.mv.as_mv.row), in vp8_cal_dissimilarity() [all …]
|
D | pickinter.c | 487 mb->e_mbd.mode_info_context->mbmi.uv_mode = best_mode; in pick_intra_mbuv_mode() 496 if (xd->mode_info_context->mbmi.mode == NEWMV) in update_mvcount() 498 x->MVcount[0][mv_max+((xd->mode_info_context->mbmi.mv.as_mv.row - in update_mvcount() 500 x->MVcount[1][mv_max+((xd->mode_info_context->mbmi.mv.as_mv.col - in update_mvcount() 586 MB_PREDICTION_MODE this_mode = x->e_mbd.mode_info_context->mbmi.mode; in evaluate_inter_mode() 587 int_mv mv = x->e_mbd.mode_info_context->mbmi.mv; in evaluate_inter_mode() 619 x->e_mbd.mode_info_context->mbmi.ref_frame == LAST_FRAME && in evaluate_inter_mode() 644 mv_l = mic->mbmi.mv; in calculate_zeromv_rd_adjustment() 646 if (mic->mbmi.ref_frame != INTRA_FRAME) in calculate_zeromv_rd_adjustment() 652 mv_al = mic->mbmi.mv; in calculate_zeromv_rd_adjustment() [all …]
|
D | encodeframe.c | 490 xd->mode_info_context->mbmi.segment_id = cpi->segmentation_map[map_index+mb_col]; in encode_mb_row() 492 xd->mode_info_context->mbmi.segment_id = 0; in encode_mb_row() 498 xd->mode_info_context->mbmi.segment_id = 0; in encode_mb_row() 506 y_modes[xd->mbmi.mode] ++; in encode_mb_row() 514 inter_y_modes[xd->mbmi.mode] ++; in encode_mb_row() 516 if (xd->mbmi.mode == SPLITMV) in encode_mb_row() 520 for (b = 0; b < xd->mbmi.partition_count; b++) in encode_mb_row() 532 if (xd->mode_info_context->mbmi.mode == ZEROMV && in encode_mb_row() 533 xd->mode_info_context->mbmi.ref_frame == LAST_FRAME) { in encode_mb_row() 557 cpi->segmentation_map[map_index+mb_col] = xd->mode_info_context->mbmi.segment_id; in encode_mb_row() [all …]
|
D | rdopt.c | 479 int mv_row = x->e_mbd.mode_info_context->mbmi.mv.as_mv.row; in VP8_UVSSE() 480 int mv_col = x->e_mbd.mode_info_context->mbmi.mv.as_mv.col; in VP8_UVSSE() 786 xd->mode_info_context->mbmi.mode = mode; in rd_pick_intra16x16mby_mode() 797 [xd->mode_info_context->mbmi.mode]; in rd_pick_intra16x16mby_mode() 811 xd->mode_info_context->mbmi.mode = mode_selected; in rd_pick_intra16x16mby_mode() 894 xd->mode_info_context->mbmi.uv_mode = mode; in rd_pick_intra_mbuv_mode() 913 … this_rate = rate_to + x->intra_uv_mode_cost[xd->frame_type][xd->mode_info_context->mbmi.uv_mode]; in rd_pick_intra_mbuv_mode() 932 xd->mode_info_context->mbmi.uv_mode = mode_selected; in rd_pick_intra_mbuv_mode() 946 x->e_mbd.mode_info_context->mbmi.mode = mb; in vp8_set_mbmode_and_mvs() 947 x->e_mbd.mode_info_context->mbmi.mv.as_int = mv->as_int; in vp8_set_mbmode_and_mvs() [all …]
|
D | ethreading.c | 170 … xd->mode_info_context->mbmi.segment_id = cpi->segmentation_map[map_index + mb_col]; in thread_encoding_proc() 172 xd->mode_info_context->mbmi.segment_id = 0; in thread_encoding_proc() 178 xd->mode_info_context->mbmi.segment_id = 0; in thread_encoding_proc() 186 y_modes[xd->mbmi.mode] ++; in thread_encoding_proc() 194 inter_y_modes[xd->mbmi.mode] ++; in thread_encoding_proc() 196 if (xd->mbmi.mode == SPLITMV) in thread_encoding_proc() 200 for (b = 0; b < xd->mbmi.partition_count; b++) in thread_encoding_proc() 211 if (xd->mode_info_context->mbmi.mode == ZEROMV && in thread_encoding_proc() 212 xd->mode_info_context->mbmi.ref_frame == in thread_encoding_proc() 238 const MB_MODE_INFO * mbmi = &xd->mode_info_context->mbmi; in thread_encoding_proc() local [all …]
|
D | segmentation.c | 43 …if ((this_mb_mode_info->mbmi.ref_frame == GOLDEN_FRAME) || (this_mb_mode_info->mbmi.ref_frame == A… in vp8_update_gf_useage_maps() 51 else if ((this_mb_mode_info->mbmi.mode != ZEROMV) && *(x->gf_active_ptr)) in vp8_update_gf_useage_maps()
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_rdopt.c | 167 const int ref = xd->mi[0]->mbmi.ref_frame[0]; in model_rd_for_sb() 341 MB_MODE_INFO *mbmi = &xd->mi[0]->mbmi; in cost_coeffs() local 349 x->token_costs[tx_size][type][is_inter_block(mbmi)]; in cost_coeffs() 360 assert(type == PLANE_TYPE_Y ? mbmi->tx_size == tx_size in cost_coeffs() 361 : get_uv_tx_size(mbmi, pd) == tx_size); in cost_coeffs() 441 if (x->skip_encode && !is_inter_block(&xd->mi[0]->mbmi)) { in dist_block() 471 MB_MODE_INFO *const mbmi = &xd->mi[0]->mbmi; in block_rd_txfm() local 480 if (!is_inter_block(mbmi)) { in block_rd_txfm() 481 struct encode_b_args arg = {x, NULL, &mbmi->skip}; in block_rd_txfm() 568 xd->mi[0]->mbmi.tx_size = tx_size; in txfm_rd_in_plane() [all …]
|
D | vp9_pickmode.c | 51 const POSITION *const mv_ref_search = mv_ref_blocks[mi->mbmi.sb_type]; in mv_refs_rt() 68 const MB_MODE_INFO *const candidate = &candidate_mi->mbmi; in mv_refs_rt() 88 xd->mi_stride]->mbmi; in mv_refs_rt() 104 * xd->mi_stride]->mbmi; in mv_refs_rt() 129 MB_MODE_INFO *mbmi = &xd->mi[0]->mbmi; in combined_motion_search() local 134 const int ref = mbmi->ref_frame[0]; in combined_motion_search() 302 cyclic_refresh_segment_id_boosted(xd->mi[0]->mbmi.segment_id)) in model_rd_for_sb_y_large() 312 xd->mi[0]->mbmi.tx_size = tx_size; in model_rd_for_sb_y_large() 381 const TX_SIZE uv_tx_size = get_uv_tx_size(&xd->mi[0]->mbmi, pd); in model_rd_for_sb_y_large() 477 xd->mi[0]->mbmi.tx_size = in model_rd_for_sb_y() [all …]
|
D | vp9_aq_cyclicrefresh.c | 116 const MB_MODE_INFO *mbmi, in candidate_refresh_aq() argument 120 MV mv = mbmi->mv[0].as_mv; in candidate_refresh_aq() 129 !is_inter_block(mbmi))) in candidate_refresh_aq() 133 is_inter_block(mbmi) && in candidate_refresh_aq() 134 mbmi->mv[0].as_int == 0 && in candidate_refresh_aq() 216 MB_MODE_INFO *const mbmi, in vp9_cyclic_refresh_update_segment() argument 229 const int refresh_this_block = candidate_refresh_aq(cr, mbmi, rate, dist, in vp9_cyclic_refresh_update_segment() 237 if (cyclic_refresh_segment_id_boosted(mbmi->segment_id)) { in vp9_cyclic_refresh_update_segment() 238 mbmi->segment_id = refresh_this_block; in vp9_cyclic_refresh_update_segment() 241 mbmi->segment_id = CR_SEGMENT_ID_BASE; in vp9_cyclic_refresh_update_segment() [all …]
|
D | vp9_encodeframe.c | 188 MB_MODE_INFO *mbmi; in set_offsets() local 197 mbmi = &xd->mi[0]->mbmi; in set_offsets() 226 mbmi->segment_id = get_segment_id(cm, map, bsize, mi_row, mi_col); in set_offsets() 230 x->encode_breakout = cpi->segment_encode_breakout[mbmi->segment_id]; in set_offsets() 232 mbmi->segment_id = 0; in set_offsets() 260 xd->mi[0]->mbmi.sb_type = bsize; in set_block_size() 703 MB_MODE_INFO *mbmi = &xd->mi[0]->mbmi; in choose_partitioning() local 734 mbmi->ref_frame[0] = LAST_FRAME; in choose_partitioning() 735 mbmi->ref_frame[1] = NONE; in choose_partitioning() 736 mbmi->sb_type = BLOCK_64X64; in choose_partitioning() [all …]
|
D | vp9_denoiser.c | 203 MB_MODE_INFO *mbmi = &filter_mbd->mi[0]->mbmi; in perform_motion_compensation() local 214 saved_mbmi = *mbmi; in perform_motion_compensation() 220 mbmi->ref_frame[0] = ctx->best_reference_frame; in perform_motion_compensation() 221 mbmi->mode = ctx->best_sse_inter_mode; in perform_motion_compensation() 222 mbmi->mv[0] = ctx->best_sse_mv; in perform_motion_compensation() 227 mbmi->ref_frame[0] = ctx->best_zeromv_reference_frame; in perform_motion_compensation() 228 mbmi->mode = ZEROMV; in perform_motion_compensation() 229 mbmi->mv[0].as_int = 0; in perform_motion_compensation() 238 *mbmi = saved_mbmi; in perform_motion_compensation() 244 *mbmi = saved_mbmi; in perform_motion_compensation() [all …]
|
D | vp9_encodemv.c | 231 static void inc_mvs(const MB_MODE_INFO *mbmi, const MB_MODE_INFO_EXT *mbmi_ext, in inc_mvs() argument 236 for (i = 0; i < 1 + has_second_ref(mbmi); ++i) { in inc_mvs() 237 const MV *ref = &mbmi_ext->ref_mvs[mbmi->ref_frame[i]][0].as_mv; in inc_mvs() 247 const MB_MODE_INFO *const mbmi = &mi->mbmi; in vp9_update_mv_count() local 250 if (mbmi->sb_type < BLOCK_8X8) { in vp9_update_mv_count() 251 const int num_4x4_w = num_4x4_blocks_wide_lookup[mbmi->sb_type]; in vp9_update_mv_count() 252 const int num_4x4_h = num_4x4_blocks_high_lookup[mbmi->sb_type]; in vp9_update_mv_count() 259 inc_mvs(mbmi, mbmi_ext, mi->bmi[i].as_mv, &td->counts->mv); in vp9_update_mv_count() 263 if (mbmi->mode == NEWMV) in vp9_update_mv_count() 264 inc_mvs(mbmi, mbmi_ext, mbmi->mv, &td->counts->mv); in vp9_update_mv_count()
|
D | vp9_bitstream.c | 81 TX_SIZE tx_size = xd->mi[0]->mbmi.tx_size; in write_selected_tx_size() 82 BLOCK_SIZE bsize = xd->mi[0]->mbmi.sb_type; in write_selected_tx_size() 99 const int skip = mi->mbmi.skip; in write_skip() 204 const MB_MODE_INFO *const mbmi = &xd->mi[0]->mbmi; in write_ref_frames() local 205 const int is_compound = has_second_ref(mbmi); in write_ref_frames() 206 const int segment_id = mbmi->segment_id; in write_ref_frames() 212 assert(mbmi->ref_frame[0] == in write_ref_frames() 224 vpx_write(w, mbmi->ref_frame[0] == GOLDEN_FRAME, in write_ref_frames() 227 const int bit0 = mbmi->ref_frame[0] != LAST_FRAME; in write_ref_frames() 230 const int bit1 = mbmi->ref_frame[0] != GOLDEN_FRAME; in write_ref_frames() [all …]
|