Home
last modified time | relevance | path

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

123

/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()
/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_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()
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 …]
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/vc1/parser/
Dviddec_vc1_workload.c116 parser->ref_frame[VC1_REF_FRAME_T_MINUS_0].intcomp_top = intcomp1; in vc1_intcomp()
125 parser->ref_frame[VC1_REF_FRAME_T_MINUS_0].intcomp_top = intcomp1; in vc1_intcomp()
140 parser->ref_frame[VC1_REF_FRAME_T_MINUS_0].intcomp_bot = intcomp1; in vc1_intcomp()
158 parser->ref_frame[VC1_REF_FRAME_T_MINUS_0].intcomp_bot = intcomp1; in vc1_intcomp()
169 parser->ref_frame[VC1_REF_FRAME_T_MINUS_0].intcomp_bot = intcomp2; in vc1_intcomp()
176 parser->ref_frame[VC1_REF_FRAME_T_MINUS_0].intcomp_top = intcomp2; in vc1_intcomp()
186 parser->ref_frame[VC1_REF_FRAME_T_MINUS_0].intcomp_top = intcomp1; in vc1_intcomp()
193 parser->ref_frame[VC1_REF_FRAME_T_MINUS_0].intcomp_bot = intcomp1; in vc1_intcomp()
224 if(parser->ref_frame[VC1_REF_FRAME_T_MINUS_1].fcm == VC1_FCM_FIELD_INTERLACE) in handle_intensity_compensation()
232 parser->ref_frame[VC1_REF_FRAME_T_MINUS_0].intcomp_top = spr->intcomp_fwd_top; in handle_intensity_compensation()
[all …]
Dviddec_vc1_parse.c25 parser->ref_frame[i].id = -1; /* first I frame checks that value */ in viddec_vc1_init()
26 parser->ref_frame[i].anchor[0] = 1; in viddec_vc1_init()
27 parser->ref_frame[i].anchor[1] = 1; in viddec_vc1_init()
28 parser->ref_frame[i].intcomp_top = 0; in viddec_vc1_init()
29 parser->ref_frame[i].intcomp_bot = 0; in viddec_vc1_init()
100 parser->ref_frame[0].anchor[0] = 1; in viddec_vc1_parse()
101 parser->ref_frame[0].anchor[1] = 1; in viddec_vc1_parse()
102 parser->ref_frame[1].anchor[0] = 1; in viddec_vc1_parse()
103 parser->ref_frame[1].anchor[1] = 1; in viddec_vc1_parse()
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/h264/parser/
Dmix_vbp_h264_stubs.c353 wi.ref_frame.reference_id = pInfo->dpb.frame_id_need_to_be_displayed[i]; in h264_parse_emit_start_new_frame()
354 wi.ref_frame.luma_phys_addr = 0; in h264_parse_emit_start_new_frame()
355 wi.ref_frame.chroma_phys_addr = 0; in h264_parse_emit_start_new_frame()
375 wi.ref_frame.reference_id = pInfo->dpb.frame_id_need_to_be_removed[i]; in h264_parse_emit_start_new_frame()
376 wi.ref_frame.luma_phys_addr = 0; in h264_parse_emit_start_new_frame()
377 wi.ref_frame.chroma_phys_addr = 0; in h264_parse_emit_start_new_frame()
397 wi.ref_frame.reference_id = pInfo->dpb.frame_id_need_to_be_dropped[i]; in h264_parse_emit_start_new_frame()
398 wi.ref_frame.luma_phys_addr = 0; in h264_parse_emit_start_new_frame()
399 wi.ref_frame.chroma_phys_addr = 0; in h264_parse_emit_start_new_frame()
422 wi.ref_frame.reference_id = fs_id; in h264_parse_emit_start_new_frame()
[all …]
Dviddec_h264_workload.c1059 wi.ref_frame.reference_id = pInfo->dpb.frame_id_need_to_be_displayed[i]; in h264_parse_emit_start_new_frame()
1060 wi.ref_frame.luma_phys_addr = 0; in h264_parse_emit_start_new_frame()
1061 wi.ref_frame.chroma_phys_addr = 0; in h264_parse_emit_start_new_frame()
1081 wi.ref_frame.reference_id = pInfo->dpb.frame_id_need_to_be_removed[i]; in h264_parse_emit_start_new_frame()
1082 wi.ref_frame.luma_phys_addr = 0; in h264_parse_emit_start_new_frame()
1083 wi.ref_frame.chroma_phys_addr = 0; in h264_parse_emit_start_new_frame()
1103 wi.ref_frame.reference_id = pInfo->dpb.frame_id_need_to_be_dropped[i]; in h264_parse_emit_start_new_frame()
1104 wi.ref_frame.luma_phys_addr = 0; in h264_parse_emit_start_new_frame()
1105 wi.ref_frame.chroma_phys_addr = 0; in h264_parse_emit_start_new_frame()
1128 wi.ref_frame.reference_id = fs_id; in h264_parse_emit_start_new_frame()
[all …]
/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/libmix/mix_vbp/viddec_fw/fw/codecs/mp4/parser/
Dviddec_fw_mp4_workload.c95 viddec_fw_mp4_set_past_field_frame(&vop_info, parser->ref_frame[VIDDEC_MP4_INDX_2].is_field); in viddec_fw_mp4_insert_vop_workitem()
97 viddec_fw_mp4_set_future_field_frame(&vop_info, parser->ref_frame[VIDDEC_MP4_INDX_1].is_field); in viddec_fw_mp4_insert_vop_workitem()
99 viddec_fw_mp4_set_current_field_frame(&vop_info, parser->ref_frame[VIDDEC_MP4_INDX_0].is_field); in viddec_fw_mp4_insert_vop_workitem()
282 wi.ref_frame.reference_id = 0; in viddec_fw_mp4_insert_past_frame_workitem()
283 wi.ref_frame.luma_phys_addr = 0; in viddec_fw_mp4_insert_past_frame_workitem()
284 wi.ref_frame.chroma_phys_addr = 0; in viddec_fw_mp4_insert_past_frame_workitem()
296 wi.ref_frame.reference_id = 0; in viddec_fw_mp4_insert_future_frame_workitem()
297 wi.ref_frame.luma_phys_addr = 0; in viddec_fw_mp4_insert_future_frame_workitem()
298 wi.ref_frame.chroma_phys_addr = 0; in viddec_fw_mp4_insert_future_frame_workitem()
359 parser->ref_frame[VIDDEC_MP4_INDX_2] = parser->ref_frame[VIDDEC_MP4_INDX_1]; in viddec_fw_mp4_emit_workload()
[all …]
/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()
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()
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 …]
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 …]
/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()
Dec_types.h51 MV_REFERENCE_FRAME ref_frame; member
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()

123