Home
last modified time | relevance | path

Searched refs:ref_frame (Results 1 – 25 of 44) sorted by relevance

12

/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/common/
Dvp9_pred_common.c84 ctx = (above_mbmi->ref_frame[0] == cm->comp_fixed_ref) ^ in vp9_get_reference_mode_context()
85 (left_mbmi->ref_frame[0] == cm->comp_fixed_ref); in vp9_get_reference_mode_context()
88 ctx = 2 + (above_mbmi->ref_frame[0] == cm->comp_fixed_ref || in vp9_get_reference_mode_context()
92 ctx = 2 + (left_mbmi->ref_frame[0] == cm->comp_fixed_ref || in vp9_get_reference_mode_context()
101 ctx = edge_mbmi->ref_frame[0] == cm->comp_fixed_ref; in vp9_get_reference_mode_context()
138 pred_context = 1 + 2 * (edge_mbmi->ref_frame[0] != cm->comp_var_ref[1]); in vp9_get_pred_context_comp_ref_p()
140 pred_context = 1 + 2 * (edge_mbmi->ref_frame[var_ref_idx] in vp9_get_pred_context_comp_ref_p()
145 const MV_REFERENCE_FRAME vrfa = a_sg ? above_mbmi->ref_frame[0] in vp9_get_pred_context_comp_ref_p()
146 : above_mbmi->ref_frame[var_ref_idx]; in vp9_get_pred_context_comp_ref_p()
147 const MV_REFERENCE_FRAME vrfl = l_sg ? left_mbmi->ref_frame[0] in vp9_get_pred_context_comp_ref_p()
[all …]
Dvp9_mvref_common.c141 if (ref_sign_bias[mbmi->ref_frame[ref]] != ref_sign_bias[this_ref_frame]) { in scale_mv()
168 if ((mbmi)->ref_frame[0] != ref_frame) \
169 ADD_MV_REF_LIST(scale_mv((mbmi), 0, ref_frame, ref_sign_bias)); \
171 (mbmi)->ref_frame[1] != ref_frame && \
173 ADD_MV_REF_LIST(scale_mv((mbmi), 1, ref_frame, ref_sign_bias)); \
193 MODE_INFO *mi, MV_REFERENCE_FRAME ref_frame, in find_mv_refs_idx() argument
225 if (candidate->ref_frame[0] == ref_frame) in find_mv_refs_idx()
227 else if (candidate->ref_frame[1] == ref_frame) in find_mv_refs_idx()
242 if (candidate->ref_frame[0] == ref_frame) in find_mv_refs_idx()
244 else if (candidate->ref_frame[1] == ref_frame) in find_mv_refs_idx()
[all …]
Dvp9_blockd.h135 MV_REFERENCE_FRAME ref_frame[2]; member
153 return mbmi->ref_frame[0] > INTRA_FRAME; in is_inter_block()
157 return mbmi->ref_frame[1] > INTRA_FRAME; in has_second_ref()
Dvp9_reconinter.c283 uint8_t *ref_frame, *buf_ptr; in dec_build_inter_predictors() local
290 ref_frame = ref_buf->y_buffer; in dec_build_inter_predictors()
294 ref_frame = plane == 1 ? ref_buf->u_buffer : ref_buf->v_buffer; in dec_build_inter_predictors()
343 buf_ptr = ref_frame + y0 * pre_buf->stride + x0; in dec_build_inter_predictors()
370 uint8_t *buf_ptr1 = ref_frame + y0 * pre_buf->stride + x0; in dec_build_inter_predictors()
Dvp9_mvref_common.h34 MODE_INFO *mi, MV_REFERENCE_FRAME ref_frame,
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/encoder/
Dvp9_pickmode.c39 int ref = mbmi->ref_frame[0]; in full_pixel_motion_search()
140 int ref = mbmi->ref_frame[0]; in sub_pixel_motion_search()
214 MV_REFERENCE_FRAME ref_frame, best_ref_frame = LAST_FRAME; in vp9_pick_inter_mode() local
248 mbmi->ref_frame[0] = NONE; in vp9_pick_inter_mode()
249 mbmi->ref_frame[1] = NONE; in vp9_pick_inter_mode()
257 for (ref_frame = LAST_FRAME; ref_frame <= LAST_FRAME ; ++ref_frame) { in vp9_pick_inter_mode()
258 x->pred_mv_sad[ref_frame] = INT_MAX; in vp9_pick_inter_mode()
259 if (cpi->ref_frame_flags & flag_list[ref_frame]) { in vp9_pick_inter_mode()
261 ref_frame, bsize, mi_row, mi_col, in vp9_pick_inter_mode()
264 frame_mv[NEWMV][ref_frame].as_int = INVALID_MV; in vp9_pick_inter_mode()
[all …]
Dvp9_rdopt.c60 MV_REFERENCE_FRAME ref_frame[2]; member
64 MV_REFERENCE_FRAME ref_frame[2]; member
435 const int ref = xd->mi[0]->mbmi.ref_frame[0]; in model_rd_for_sb()
1492 this_mv[0].as_int = seg_mvs[mbmi->ref_frame[0]].as_int; in labels2mode()
1496 this_mv[1].as_int = seg_mvs[mbmi->ref_frame[1]].as_int; in labels2mode()
1502 this_mv[0].as_int = frame_mv[NEARESTMV][mbmi->ref_frame[0]].as_int; in labels2mode()
1504 this_mv[1].as_int = frame_mv[NEARESTMV][mbmi->ref_frame[1]].as_int; in labels2mode()
1507 this_mv[0].as_int = frame_mv[NEARMV][mbmi->ref_frame[0]].as_int; in labels2mode()
1509 this_mv[1].as_int = frame_mv[NEARMV][mbmi->ref_frame[1]].as_int; in labels2mode()
1531 return cost_mv_ref(cpi, mode, mbmi->mode_context[mbmi->ref_frame[0]]) + in labels2mode()
[all …]
Dvp9_rdopt.h45 MV_REFERENCE_FRAME ref_frame,
53 int ref_frame);
Dvp9_bitstream.c203 assert(mbmi->ref_frame[0] == in write_ref_frames()
215 vp9_write(w, mbmi->ref_frame[0] == GOLDEN_FRAME, in write_ref_frames()
218 const int bit0 = mbmi->ref_frame[0] != LAST_FRAME; in write_ref_frames()
221 const int bit1 = mbmi->ref_frame[0] != GOLDEN_FRAME; in write_ref_frames()
283 const int mode_ctx = mbmi->mode_context[mbmi->ref_frame[0]]; in pack_inter_mode_mvs()
317 &mbmi->ref_mvs[mbmi->ref_frame[ref]][0].as_mv, in pack_inter_mode_mvs()
326 &mbmi->ref_mvs[mbmi->ref_frame[ref]][0].as_mv, nmvc, in pack_inter_mode_mvs()
1003 MV_REFERENCE_FRAME ref_frame; local
1004 for (ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ++ref_frame) {
1005 YV12_BUFFER_CONFIG *cfg = get_ref_frame_buffer(cpi, ref_frame);
[all …]
Dvp9_onyx_int.h575 MV_REFERENCE_FRAME ref_frame) { in get_ref_frame_idx() argument
576 if (ref_frame == LAST_FRAME) { in get_ref_frame_idx()
578 } else if (ref_frame == GOLDEN_FRAME) { in get_ref_frame_idx()
586 VP9_COMP *cpi, MV_REFERENCE_FRAME ref_frame) { in get_ref_frame_buffer() argument
588 return &cm->frame_bufs[cm->ref_frame_map[get_ref_frame_idx(cpi, ref_frame)]] in get_ref_frame_buffer()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/common/
Dloopfilter.c218 const int ref_frame = mode_info_context->mbmi.ref_frame; in vp8_loop_filter_row_normal() local
220 filter_level = lfi_n->lvl[seg][ref_frame][mode_index]; in vp8_loop_filter_row_normal()
275 const int ref_frame = mode_info_context->mbmi.ref_frame; in vp8_loop_filter_row_simple() local
277 filter_level = lfi_n->lvl[seg][ref_frame][mode_index]; in vp8_loop_filter_row_simple()
350 const int ref_frame = mode_info_context->mbmi.ref_frame; in vp8_loop_filter_frame() local
352 filter_level = lfi_n->lvl[seg][ref_frame][mode_index]; in vp8_loop_filter_frame()
406 const int ref_frame = mode_info_context->mbmi.ref_frame; in vp8_loop_filter_frame() local
408 filter_level = lfi_n->lvl[seg][ref_frame][mode_index]; in vp8_loop_filter_frame()
492 const int ref_frame = mode_info_context->mbmi.ref_frame; in vp8_loop_filter_frame_yonly() local
494 filter_level = lfi_n->lvl[seg][ref_frame][mode_index]; in vp8_loop_filter_frame_yonly()
[all …]
Dfindnearmv.c49 if (above->mbmi.ref_frame != INTRA_FRAME) 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()
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()
91 … mv_bias(ref_frame_sign_bias[aboveleft->mbmi.ref_frame], refframe, &this_mv, ref_frame_sign_bias); in vp8_find_near_mvs()
Dblockd.h158 uint8_t ref_frame; member
179 MV_REFERENCE_FRAME ref_frame; member
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/encoder/
Dmr_dissim.c32 if(x->mbmi.ref_frame !=INTRA_FRAME) \
40 if(x->mbmi.ref_frame !=INTRA_FRAME) \
44 if (cm->ref_frame_sign_bias[x->mbmi.ref_frame] \
45 != cm->ref_frame_sign_bias[tmp->mbmi.ref_frame]) \
96 if(tmp->mbmi.ref_frame !=INTRA_FRAME) in vp8_cal_dissimilarity()
204 store_mode_info->ref_frame = tmp->mbmi.ref_frame; in vp8_cal_dissimilarity()
Dpickinter.c436 *parent_ref_frame = store_mode_info[parent_mb_index].ref_frame; in get_lower_res_motion_info()
516 && x->e_mbd.mode_info_context->mbmi.ref_frame != LAST_FRAME) in evaluate_inter_mode()
540 if (mic->mbmi.ref_frame != INTRA_FRAME) in calculate_zeromv_rd_adjustment()
548 if (mic->mbmi.ref_frame != INTRA_FRAME) in calculate_zeromv_rd_adjustment()
556 if (mic->mbmi.ref_frame != INTRA_FRAME) in calculate_zeromv_rd_adjustment()
692 x->e_mbd.mode_info_context->mbmi.ref_frame = INTRA_FRAME; in vp8_pick_inter_mode()
714 x->e_mbd.mode_info_context->mbmi.ref_frame = this_ref_frame; in vp8_pick_inter_mode()
717 if (x->e_mbd.mode_info_context->mbmi.ref_frame) in vp8_pick_inter_mode()
788 x->ref_frame_cost[x->e_mbd.mode_info_context->mbmi.ref_frame]; in vp8_pick_inter_mode()
797 x->e_mbd.mode_info_context->mbmi.ref_frame != ALTREF_FRAME) in vp8_pick_inter_mode()
[all …]
Dsegmentation.c43 …if ((this_mb_mode_info->mbmi.ref_frame == GOLDEN_FRAME) || (this_mb_mode_info->mbmi.ref_frame == A… in vp8_update_gf_useage_maps()
Drdopt.c1553 if(here->mbmi.ref_frame != INTRA_FRAME) in vp8_mv_pred()
1561 if (above->mbmi.ref_frame != INTRA_FRAME) in vp8_mv_pred()
1564 …mv_bias(ref_frame_sign_bias[above->mbmi.ref_frame], refframe, &near_mvs[vcnt], ref_frame_sign_bias… in vp8_mv_pred()
1565 near_ref[vcnt] = above->mbmi.ref_frame; in vp8_mv_pred()
1568 if (left->mbmi.ref_frame != INTRA_FRAME) in vp8_mv_pred()
1571 …mv_bias(ref_frame_sign_bias[left->mbmi.ref_frame], refframe, &near_mvs[vcnt], ref_frame_sign_bias); in vp8_mv_pred()
1572 near_ref[vcnt] = left->mbmi.ref_frame; in vp8_mv_pred()
1575 if (aboveleft->mbmi.ref_frame != INTRA_FRAME) in vp8_mv_pred()
1578 …mv_bias(ref_frame_sign_bias[aboveleft->mbmi.ref_frame], refframe, &near_mvs[vcnt], ref_frame_sign_… in vp8_mv_pred()
1579 near_ref[vcnt] = aboveleft->mbmi.ref_frame; in vp8_mv_pred()
[all …]
Dencodeframe.c548 …->mode_info_context->mbmi.mode == ZEROMV) && (xd->mode_info_context->mbmi.ref_frame == LAST_FRAME)) in encode_mb_row()
1292 …((xd->mode_info_context->mbmi.ref_frame != LAST_FRAME) || (xd->mode_info_context->mbmi.mode != ZER… in vp8cx_encode_inter_macroblock()
1310 if ( xd->mode_info_context->mbmi.ref_frame != INTRA_FRAME ) in vp8cx_encode_inter_macroblock()
1314 if (xd->mode_info_context->mbmi.ref_frame != LAST_FRAME && in vp8cx_encode_inter_macroblock()
1333 x->count_mb_ref_frame_usage[xd->mode_info_context->mbmi.ref_frame] ++; in vp8cx_encode_inter_macroblock()
1335 if (xd->mode_info_context->mbmi.ref_frame == INTRA_FRAME) in vp8cx_encode_inter_macroblock()
1354 if (xd->mode_info_context->mbmi.ref_frame == LAST_FRAME) in vp8cx_encode_inter_macroblock()
1356 else if (xd->mode_info_context->mbmi.ref_frame == GOLDEN_FRAME) in vp8cx_encode_inter_macroblock()
Ddenoising.c215 mbmi->ref_frame = x->best_reference_frame; in vp8_denoiser_denoise_mb()
235 mbmi->ref_frame = in vp8_denoiser_denoise_mb()
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp9/decoder/
Dvp9_decodemv.c174 mbmi->ref_frame[0] = INTRA_FRAME; in read_intra_frame_mode_info()
175 mbmi->ref_frame[1] = NONE; in read_intra_frame_mode_info()
275 int segment_id, MV_REFERENCE_FRAME ref_frame[2]) { in read_ref_frames()
280 ref_frame[0] = (MV_REFERENCE_FRAME)vp9_get_segdata(&cm->seg, segment_id, in read_ref_frames()
282 ref_frame[1] = NONE; in read_ref_frames()
292 ref_frame[idx] = cm->comp_fixed_ref; in read_ref_frames()
293 ref_frame[!idx] = cm->comp_var_ref[bit]; in read_ref_frames()
304 ref_frame[0] = bit1 ? ALTREF_FRAME : GOLDEN_FRAME; in read_ref_frames()
306 ref_frame[0] = LAST_FRAME; in read_ref_frames()
309 ref_frame[1] = NONE; in read_ref_frames()
[all …]
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/vp8/decoder/
Ddecodemv.c54 mi->mbmi.ref_frame = INTRA_FRAME; in read_kf_modes()
342 mbmi->ref_frame = (MV_REFERENCE_FRAME) vp8_read(bc, pbi->prob_intra); in read_mb_modes_mv()
343 if (mbmi->ref_frame) /* inter MB */ in read_mb_modes_mv()
360 mbmi->ref_frame = in read_mb_modes_mv()
369 if (above->mbmi.ref_frame != INTRA_FRAME) in read_mb_modes_mv()
374 mv_bias(ref_frame_sign_bias[above->mbmi.ref_frame], in read_mb_modes_mv()
375 mbmi->ref_frame, nmv, ref_frame_sign_bias); in read_mb_modes_mv()
383 if (left->mbmi.ref_frame != INTRA_FRAME) in read_mb_modes_mv()
390 mv_bias(ref_frame_sign_bias[left->mbmi.ref_frame], in read_mb_modes_mv()
391 mbmi->ref_frame, &this_mv, ref_frame_sign_bias); in read_mb_modes_mv()
[all …]
Derror_concealment.c364 if (prev_mi->mbmi.ref_frame == LAST_FRAME) in estimate_missing_mvs()
391 mi->mbmi.ref_frame = LAST_FRAME; in estimate_missing_mvs()
420 assert(mi->mbmi.ref_frame < MAX_REF_FRAMES); in assign_neighbor()
421 neighbor->ref_frame = mi->mbmi.ref_frame; in assign_neighbor()
534 if (neighbors[i].ref_frame != dom_ref_frame) in interpolate_mvs()
571 neighbors[i].ref_frame = MAX_REF_FRAMES; in vp8_interpolate_motion()
583 mb->mode_info_context->mbmi.ref_frame = LAST_FRAME; in vp8_interpolate_motion()
Dthreading.c153 if (xd->mode_info_context->mbmi.ref_frame == INTRA_FRAME) in mt_decode_macroblock()
432 (xd->mode_info_context->mbmi.ref_frame == in mt_decode_mb_rows()
460 xd->pre.y_buffer = ref_buffer[xd->mode_info_context->mbmi.ref_frame][0] + recon_yoffset; in mt_decode_mb_rows()
461 xd->pre.u_buffer = ref_buffer[xd->mode_info_context->mbmi.ref_frame][1] + recon_uvoffset; in mt_decode_mb_rows()
462 xd->pre.v_buffer = ref_buffer[xd->mode_info_context->mbmi.ref_frame][2] + recon_uvoffset; in mt_decode_mb_rows()
465 xd->corrupted |= ref_fb_corrupted[xd->mode_info_context->mbmi.ref_frame]; in mt_decode_mb_rows()
493 const int ref_frame = xd->mode_info_context->mbmi.ref_frame; in mt_decode_mb_rows() local
495 filter_level = lfi_n->lvl[seg][ref_frame][mode_index]; in mt_decode_mb_rows()
510 if (next->mbmi.ref_frame == INTRA_FRAME) in mt_decode_mb_rows()
Dec_types.h51 MV_REFERENCE_FRAME ref_frame; member
Donyxd_if.c462 int vp8dx_references_buffer( VP8_COMMON *oci, int ref_frame ) in vp8dx_references_buffer() argument
471 if( mi->mbmi.ref_frame == ref_frame) in vp8dx_references_buffer()

12