Home
last modified time | relevance | path

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

123

/external/libvpx/libvpx/vp9/common/
Dvp9_pred_common.c78 ctx = (above_mbmi->ref_frame[0] == cm->comp_fixed_ref) ^ in vp9_get_reference_mode_context()
79 (left_mbmi->ref_frame[0] == cm->comp_fixed_ref); in vp9_get_reference_mode_context()
82 ctx = 2 + (above_mbmi->ref_frame[0] == cm->comp_fixed_ref || in vp9_get_reference_mode_context()
86 ctx = 2 + (left_mbmi->ref_frame[0] == cm->comp_fixed_ref || in vp9_get_reference_mode_context()
95 ctx = edge_mbmi->ref_frame[0] == cm->comp_fixed_ref; in vp9_get_reference_mode_context()
132 pred_context = 1 + 2 * (edge_mbmi->ref_frame[0] != cm->comp_var_ref[1]); in vp9_get_pred_context_comp_ref_p()
134 pred_context = 1 + 2 * (edge_mbmi->ref_frame[var_ref_idx] in vp9_get_pred_context_comp_ref_p()
139 const MV_REFERENCE_FRAME vrfa = a_sg ? above_mbmi->ref_frame[0] in vp9_get_pred_context_comp_ref_p()
140 : above_mbmi->ref_frame[var_ref_idx]; in vp9_get_pred_context_comp_ref_p()
141 const MV_REFERENCE_FRAME vrfl = l_sg ? left_mbmi->ref_frame[0] in vp9_get_pred_context_comp_ref_p()
[all …]
Dvp9_mvref_common.c17 MODE_INFO *mi, MV_REFERENCE_FRAME ref_frame, in find_mv_refs_idx() argument
47 if (candidate->ref_frame[0] == ref_frame) in find_mv_refs_idx()
50 else if (candidate->ref_frame[1] == ref_frame) in find_mv_refs_idx()
66 if (candidate->ref_frame[0] == ref_frame) in find_mv_refs_idx()
68 else if (candidate->ref_frame[1] == ref_frame) in find_mv_refs_idx()
90 if (prev_frame_mvs->ref_frame[0] == ref_frame) { in find_mv_refs_idx()
92 } else if (prev_frame_mvs->ref_frame[1] == ref_frame) { in find_mv_refs_idx()
108 IF_DIFF_REF_FRAME_ADD_MV(candidate, ref_frame, ref_sign_bias, in find_mv_refs_idx()
116 if (prev_frame_mvs->ref_frame[0] != ref_frame && in find_mv_refs_idx()
117 prev_frame_mvs->ref_frame[0] > INTRA_FRAME) { in find_mv_refs_idx()
[all …]
Dvp9_mvref_common.h151 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
179 if ((mbmi)->ref_frame[0] != ref_frame) \
180 ADD_MV_REF_LIST(scale_mv((mbmi), 0, ref_frame, ref_sign_bias), \
183 (mbmi)->ref_frame[1] != ref_frame && \
185 ADD_MV_REF_LIST(scale_mv((mbmi), 1, ref_frame, ref_sign_bias), \
212 MODE_INFO *mi, MV_REFERENCE_FRAME ref_frame,
/external/webrtc/webrtc/common_video/libyuv/
Dwebrtc_libyuv.cc295 double I420PSNR(const VideoFrame* ref_frame, const VideoFrame* test_frame) { in I420PSNR() argument
296 if (!ref_frame || !test_frame) in I420PSNR()
298 else if ((ref_frame->width() != test_frame->width()) || in I420PSNR()
299 (ref_frame->height() != test_frame->height())) in I420PSNR()
301 else if (ref_frame->width() < 0 || ref_frame->height() < 0) in I420PSNR()
304 double psnr = libyuv::I420Psnr(ref_frame->buffer(kYPlane), in I420PSNR()
305 ref_frame->stride(kYPlane), in I420PSNR()
306 ref_frame->buffer(kUPlane), in I420PSNR()
307 ref_frame->stride(kUPlane), in I420PSNR()
308 ref_frame->buffer(kVPlane), in I420PSNR()
[all …]
/external/webrtc/webrtc/voice_engine/
Dutility_unittest.cc82 void VerifyParams(const AudioFrame& ref_frame, const AudioFrame& test_frame) { in VerifyParams() argument
83 EXPECT_EQ(ref_frame.num_channels_, test_frame.num_channels_); in VerifyParams()
84 EXPECT_EQ(ref_frame.samples_per_channel_, test_frame.samples_per_channel_); in VerifyParams()
85 EXPECT_EQ(ref_frame.sample_rate_hz_, test_frame.sample_rate_hz_); in VerifyParams()
91 float ComputeSNR(const AudioFrame& ref_frame, const AudioFrame& test_frame, in ComputeSNR() argument
93 VerifyParams(ref_frame, test_frame); in ComputeSNR()
99 for (size_t i = 0; i < ref_frame.samples_per_channel_ * in ComputeSNR()
100 ref_frame.num_channels_ - delay; i++) { in ComputeSNR()
101 int error = ref_frame.data_[i] - test_frame.data_[i + delay]; in ComputeSNR()
103 variance += ref_frame.data_[i] * ref_frame.data_[i]; in ComputeSNR()
[all …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_pickmode.c46 MODE_INFO *mi, MV_REFERENCE_FRAME ref_frame, in mv_refs_rt() argument
74 if (candidate->ref_frame[0] == ref_frame) in mv_refs_rt()
92 if (candidate->ref_frame[0] == ref_frame) in mv_refs_rt()
108 IF_DIFF_REF_FRAME_ADD_MV(candidate, ref_frame, ref_sign_bias, in mv_refs_rt()
116 x->mbmi_ext->mode_context[ref_frame] = counter_to_context[context_counter]; in mv_refs_rt()
135 const int ref = mbmi->ref_frame[0]; in combined_motion_search()
776 MV_REFERENCE_FRAME ref_frame, in encode_breakout_test() argument
833 xd->plane[1].pre[0] = yv12_mb[ref_frame][1]; in encode_breakout_test()
834 xd->plane[2].pre[0] = yv12_mb[ref_frame][2]; in encode_breakout_test()
855 *rate = cpi->inter_mode_cost[x->mbmi_ext->mode_context[ref_frame]] in encode_breakout_test()
[all …]
Dvp9_rdopt.c59 MV_REFERENCE_FRAME ref_frame[2]; member
63 MV_REFERENCE_FRAME ref_frame[2]; member
168 const int ref = xd->mi[0]->mbmi.ref_frame[0]; in model_rd_for_sb()
1281 this_mv[0].as_int = seg_mvs[mbmi->ref_frame[0]].as_int; in set_and_cost_bmi_mvs()
1285 this_mv[1].as_int = seg_mvs[mbmi->ref_frame[1]].as_int; in set_and_cost_bmi_mvs()
1292 this_mv[0].as_int = frame_mv[mode][mbmi->ref_frame[0]].as_int; in set_and_cost_bmi_mvs()
1294 this_mv[1].as_int = frame_mv[mode][mbmi->ref_frame[1]].as_int; in set_and_cost_bmi_mvs()
1315 return cost_mv_ref(cpi, mode, mbmi_ext->mode_context[mbmi->ref_frame[0]]) + in set_and_cost_bmi_mvs()
1545 const int refs[2] = {mbmi->ref_frame[0], in joint_motion_search()
1546 mbmi->ref_frame[1] < 0 ? 0 : mbmi->ref_frame[1]}; in joint_motion_search()
[all …]
Dvp9_rd.c457 int ref_frame, BLOCK_SIZE block_size) { in vp9_mv_pred() argument
472 pred_mv[0] = x->mbmi_ext->ref_mvs[ref_frame][0].as_mv; in vp9_mv_pred()
473 pred_mv[1] = x->mbmi_ext->ref_mvs[ref_frame][1].as_mv; in vp9_mv_pred()
474 pred_mv[2] = x->pred_mv[ref_frame]; in vp9_mv_pred()
478 x->mbmi_ext->ref_mvs[ref_frame][0].as_int == in vp9_mv_pred()
479 x->mbmi_ext->ref_mvs[ref_frame][1].as_int; in vp9_mv_pred()
507 x->mv_best_ref_index[ref_frame] = best_index; in vp9_mv_pred()
508 x->max_mv_context[ref_frame] = max_mv; in vp9_mv_pred()
509 x->pred_mv_sad[ref_frame] = best_sad; in vp9_mv_pred()
548 int ref_frame) { in vp9_get_scaled_ref_frame() argument
[all …]
Dvp9_encoder.h562 MV_REFERENCE_FRAME ref_frame) { in get_ref_frame_map_idx() argument
563 if (ref_frame == LAST_FRAME) { in get_ref_frame_map_idx()
565 } else if (ref_frame == GOLDEN_FRAME) { in get_ref_frame_map_idx()
573 int ref_frame) { in get_ref_frame_buf_idx() argument
575 const int map_idx = get_ref_frame_map_idx(cpi, ref_frame); in get_ref_frame_buf_idx()
580 VP9_COMP *cpi, MV_REFERENCE_FRAME ref_frame) { in get_ref_frame_buffer() argument
582 const int buf_idx = get_ref_frame_buf_idx(cpi, ref_frame); in get_ref_frame_buffer()
Dvp9_bitstream.c211 assert(mbmi->ref_frame[0] == in write_ref_frames()
223 vpx_write(w, mbmi->ref_frame[0] == GOLDEN_FRAME, in write_ref_frames()
226 const int bit0 = mbmi->ref_frame[0] != LAST_FRAME; in write_ref_frames()
229 const int bit1 = mbmi->ref_frame[0] != GOLDEN_FRAME; in write_ref_frames()
291 const int mode_ctx = mbmi_ext->mode_context[mbmi->ref_frame[0]]; in pack_inter_mode_mvs()
324 &mbmi_ext->ref_mvs[mbmi->ref_frame[ref]][0].as_mv, in pack_inter_mode_mvs()
333 &mbmi_ext->ref_mvs[mbmi->ref_frame[ref]][0].as_mv, nmvc, in pack_inter_mode_mvs()
994 MV_REFERENCE_FRAME ref_frame; in write_frame_size_with_refs() local
995 for (ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ++ref_frame) { in write_frame_size_with_refs()
996 YV12_BUFFER_CONFIG *cfg = get_ref_frame_buffer(cpi, ref_frame); in write_frame_size_with_refs()
[all …]
Dvp9_rd.h149 int ref_frame);
172 int ref_frame, BLOCK_SIZE block_size);
/external/webrtc/webrtc/tools/psnr_ssim_analyzer/
Dpsnr_ssim_analyzer.cc38 uint8_t* ref_frame = new uint8_t[size]; in CompareFiles() local
44 reference_file_name, width, height, frame_counter, ref_frame): in CompareFiles()
46 height, frame_counter, ref_frame); in CompareFiles()
55 webrtc::test::kPSNR, ref_frame, test_frame, width, height); in CompareFiles()
57 webrtc::test::kSSIM, ref_frame, test_frame, width, height); in CompareFiles()
62 delete[] ref_frame; in CompareFiles()
/external/libvpx/libvpx/vp8/common/
Dvp8_loopfilter.c216 const int ref_frame = mode_info_context->mbmi.ref_frame; in vp8_loop_filter_row_normal() local
218 filter_level = lfi_n->lvl[seg][ref_frame][mode_index]; in vp8_loop_filter_row_normal()
273 const int ref_frame = mode_info_context->mbmi.ref_frame; in vp8_loop_filter_row_simple() local
275 filter_level = lfi_n->lvl[seg][ref_frame][mode_index]; in vp8_loop_filter_row_simple()
348 const int ref_frame = mode_info_context->mbmi.ref_frame; in vp8_loop_filter_frame() local
350 filter_level = lfi_n->lvl[seg][ref_frame][mode_index]; in vp8_loop_filter_frame()
404 const int ref_frame = mode_info_context->mbmi.ref_frame; in vp8_loop_filter_frame() local
406 filter_level = lfi_n->lvl[seg][ref_frame][mode_index]; in vp8_loop_filter_frame()
490 const int ref_frame = mode_info_context->mbmi.ref_frame; in vp8_loop_filter_frame_yonly() local
492 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()
/external/webrtc/webrtc/test/testsupport/metrics/
Dvideo_metrics.cc112 VideoFrame ref_frame; in CalculateMetrics() local
119 ref_frame.CreateEmptyFrame(width, height, width, half_width, half_width); in CalculateMetrics()
127 kVideoRotation_0, &ref_frame); in CalculateMetrics()
132 CalculateFrame(kPSNR, &ref_frame, &test_frame, frame_number, in CalculateMetrics()
136 CalculateFrame(kSSIM, &ref_frame, &test_frame, frame_number, in CalculateMetrics()
140 CalculateFrame(kPSNR, &ref_frame, &test_frame, frame_number, in CalculateMetrics()
142 CalculateFrame(kSSIM, &ref_frame, &test_frame, frame_number, in CalculateMetrics()
/external/libvpx/libvpx/vp9/decoder/
Dvp9_decodemv.c223 mbmi->ref_frame[0] = INTRA_FRAME; in read_intra_frame_mode_info()
224 mbmi->ref_frame[1] = NONE; in read_intra_frame_mode_info()
326 int segment_id, MV_REFERENCE_FRAME ref_frame[2]) { in read_ref_frames()
331 ref_frame[0] = (MV_REFERENCE_FRAME)get_segdata(&cm->seg, segment_id, in read_ref_frames()
333 ref_frame[1] = NONE; in read_ref_frames()
343 ref_frame[idx] = cm->comp_fixed_ref; in read_ref_frames()
344 ref_frame[!idx] = cm->comp_var_ref[bit]; in read_ref_frames()
355 ref_frame[0] = bit1 ? ALTREF_FRAME : GOLDEN_FRAME; in read_ref_frames()
357 ref_frame[0] = LAST_FRAME; in read_ref_frames()
360 ref_frame[1] = NONE; in read_ref_frames()
[all …]
/external/libvpx/libvpx/vp8/encoder/
Dmr_dissim.c34 if(x->mbmi.ref_frame !=INTRA_FRAME) \
42 if(x->mbmi.ref_frame !=INTRA_FRAME) \
46 if (cm->ref_frame_sign_bias[x->mbmi.ref_frame] \
47 != cm->ref_frame_sign_bias[tmp->mbmi.ref_frame]) \
98 if(tmp->mbmi.ref_frame !=INTRA_FRAME) in vp8_cal_dissimilarity()
208 store_mode_info->ref_frame = tmp->mbmi.ref_frame; in vp8_cal_dissimilarity()
Dpickinter.c535 *parent_ref_frame = store_mode_info[parent_mb_index].ref_frame; in get_lower_res_motion_info()
621 x->e_mbd.mode_info_context->mbmi.ref_frame == LAST_FRAME && in evaluate_inter_mode()
648 if (mic->mbmi.ref_frame != INTRA_FRAME) in calculate_zeromv_rd_adjustment()
656 if (mic->mbmi.ref_frame != INTRA_FRAME) in calculate_zeromv_rd_adjustment()
664 if (mic->mbmi.ref_frame != INTRA_FRAME) in calculate_zeromv_rd_adjustment()
884 x->e_mbd.mode_info_context->mbmi.ref_frame = INTRA_FRAME; in vp8_pick_inter_mode()
924 x->e_mbd.mode_info_context->mbmi.ref_frame = this_ref_frame; in vp8_pick_inter_mode()
927 if (x->e_mbd.mode_info_context->mbmi.ref_frame) in vp8_pick_inter_mode()
998 x->ref_frame_cost[x->e_mbd.mode_info_context->mbmi.ref_frame]; in vp8_pick_inter_mode()
1007 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.c1555 if(here->mbmi.ref_frame != INTRA_FRAME) in vp8_mv_pred()
1563 if (above->mbmi.ref_frame != INTRA_FRAME) in vp8_mv_pred()
1566 …mv_bias(ref_frame_sign_bias[above->mbmi.ref_frame], refframe, &near_mvs[vcnt], ref_frame_sign_bias… in vp8_mv_pred()
1567 near_ref[vcnt] = above->mbmi.ref_frame; in vp8_mv_pred()
1570 if (left->mbmi.ref_frame != INTRA_FRAME) in vp8_mv_pred()
1573 …mv_bias(ref_frame_sign_bias[left->mbmi.ref_frame], refframe, &near_mvs[vcnt], ref_frame_sign_bias); in vp8_mv_pred()
1574 near_ref[vcnt] = left->mbmi.ref_frame; in vp8_mv_pred()
1577 if (aboveleft->mbmi.ref_frame != INTRA_FRAME) in vp8_mv_pred()
1580 …mv_bias(ref_frame_sign_bias[aboveleft->mbmi.ref_frame], refframe, &near_mvs[vcnt], ref_frame_sign_… in vp8_mv_pred()
1581 near_ref[vcnt] = aboveleft->mbmi.ref_frame; in vp8_mv_pred()
[all …]
/external/libvpx/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.c363 if (prev_mi->mbmi.ref_frame == LAST_FRAME) in estimate_missing_mvs()
390 mi->mbmi.ref_frame = LAST_FRAME; in estimate_missing_mvs()
419 assert(mi->mbmi.ref_frame < MAX_REF_FRAMES); in assign_neighbor()
420 neighbor->ref_frame = mi->mbmi.ref_frame; in assign_neighbor()
533 if (neighbors[i].ref_frame != dom_ref_frame) in interpolate_mvs()
570 neighbors[i].ref_frame = MAX_REF_FRAMES; in vp8_interpolate_motion()
582 mb->mode_info_context->mbmi.ref_frame = LAST_FRAME; in vp8_interpolate_motion()
Dthreading.c156 if (xd->mode_info_context->mbmi.ref_frame == INTRA_FRAME) in mt_decode_macroblock()
435 (xd->mode_info_context->mbmi.ref_frame == in mt_decode_mb_rows()
463 xd->pre.y_buffer = ref_buffer[xd->mode_info_context->mbmi.ref_frame][0] + recon_yoffset; in mt_decode_mb_rows()
464 xd->pre.u_buffer = ref_buffer[xd->mode_info_context->mbmi.ref_frame][1] + recon_uvoffset; in mt_decode_mb_rows()
465 xd->pre.v_buffer = ref_buffer[xd->mode_info_context->mbmi.ref_frame][2] + recon_uvoffset; in mt_decode_mb_rows()
468 xd->corrupted |= ref_fb_corrupted[xd->mode_info_context->mbmi.ref_frame]; in mt_decode_mb_rows()
496 const int ref_frame = xd->mode_info_context->mbmi.ref_frame; in mt_decode_mb_rows() local
498 filter_level = lfi_n->lvl[seg][ref_frame][mode_index]; in mt_decode_mb_rows()
513 if (next->mbmi.ref_frame == INTRA_FRAME) in mt_decode_mb_rows()
/external/webrtc/webrtc/common_video/libyuv/include/
Dwebrtc_libyuv.h152 double I420PSNR(const VideoFrame* ref_frame, const VideoFrame* test_frame);
154 double I420SSIM(const VideoFrame* ref_frame, const VideoFrame* test_frame);
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_vertex_buffers.h128 struct pipe_vertex_buffer vl_vb_get_mv(struct vl_vertex_buffer *buffer, int ref_frame);
132 struct vl_motionvector *vl_vb_get_mv_stream(struct vl_vertex_buffer *buffer, int ref_frame);

123