Home
last modified time | relevance | path

Searched refs:LAST_FRAME (Results 1 – 25 of 57) sorted by relevance

123

/external/libvpx/libvpx/vp9/common/
Dvp9_pred_common.c25 if (cm->ref_frame_sign_bias[LAST_FRAME] == in vp9_setup_compound_reference_mode()
28 cm->comp_var_ref[0] = LAST_FRAME; in vp9_setup_compound_reference_mode()
30 } else if (cm->ref_frame_sign_bias[LAST_FRAME] == in vp9_setup_compound_reference_mode()
33 cm->comp_var_ref[0] = LAST_FRAME; in vp9_setup_compound_reference_mode()
36 cm->comp_fixed_ref = LAST_FRAME; in vp9_setup_compound_reference_mode()
186 pred_context = 4 * (edge_mi->ref_frame[0] == LAST_FRAME); in vp9_get_pred_context_single_ref_p1()
188 pred_context = 1 + (edge_mi->ref_frame[0] == LAST_FRAME || in vp9_get_pred_context_single_ref_p1()
189 edge_mi->ref_frame[1] == LAST_FRAME); in vp9_get_pred_context_single_ref_p1()
199 pred_context = 1 + (above0 == LAST_FRAME || above1 == LAST_FRAME || in vp9_get_pred_context_single_ref_p1()
200 left0 == LAST_FRAME || left1 == LAST_FRAME); in vp9_get_pred_context_single_ref_p1()
[all …]
/external/libaom/libaom/av1/common/
Dmvref_common.c870 for (ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ++ref_frame) { in av1_setup_frame_buf_refs()
873 cm->cur_frame->ref_order_hints[ref_frame - LAST_FRAME] = buf->order_hint; in av1_setup_frame_buf_refs()
879 for (ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ++ref_frame) { in av1_setup_frame_sign_bias()
959 for (MV_REFERENCE_FRAME rf = LAST_FRAME; rf <= INTER_REFS_PER_FRAME; ++rf) { in motion_field_projection()
962 ref_order_hints[rf - LAST_FRAME]); in motion_field_projection()
1025 for (int ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ref_frame++) { in av1_setup_motion_field()
1026 const int ref_idx = ref_frame - LAST_FRAME; in av1_setup_motion_field()
1043 if (ref_buf[LAST_FRAME - LAST_FRAME] != NULL) { in av1_setup_motion_field()
1045 ref_buf[LAST_FRAME - LAST_FRAME] in av1_setup_motion_field()
1046 ->ref_order_hints[ALTREF_FRAME - LAST_FRAME]; in av1_setup_motion_field()
[all …]
Dmvref_common.h138 { LAST_FRAME, BWDREF_FRAME }, { LAST2_FRAME, BWDREF_FRAME },
141 { LAST_FRAME, ALTREF2_FRAME }, { LAST2_FRAME, ALTREF2_FRAME },
144 { LAST_FRAME, ALTREF_FRAME }, { LAST2_FRAME, ALTREF_FRAME },
147 { LAST_FRAME, LAST2_FRAME }, { LAST_FRAME, LAST3_FRAME },
148 { LAST_FRAME, GOLDEN_FRAME }, { BWDREF_FRAME, ALTREF_FRAME },
Denums.h554 LAST_FRAME, enumerator
569 INTER_REFS_PER_FRAME = ALTREF_FRAME - LAST_FRAME + 1,
572 FWD_REFS = GOLDEN_FRAME - LAST_FRAME + 1,
587 #define FWD_RF_OFFSET(ref) (ref - LAST_FRAME)
Dpred_common.c269 const int frf_count = ref_counts[LAST_FRAME] + ref_counts[LAST2_FRAME] + in av1_get_pred_context_uni_comp_ref_p()
338 const int last_last2_count = ref_counts[LAST_FRAME] + ref_counts[LAST2_FRAME]; in get_pred_context_ll2_or_l3gld()
356 const int last_count = ref_counts[LAST_FRAME]; in get_pred_context_last_or_last2()
459 const int fwd_count = ref_counts[LAST_FRAME] + ref_counts[LAST2_FRAME] + in av1_get_pred_context_single_ref_p1()
Dentropymode.c1041 ref_deltas[LAST_FRAME] = 0; in av1_set_default_ref_deltas()
1042 ref_deltas[LAST2_FRAME] = ref_deltas[LAST_FRAME]; in av1_set_default_ref_deltas()
1043 ref_deltas[LAST3_FRAME] = ref_deltas[LAST_FRAME]; in av1_set_default_ref_deltas()
1044 ref_deltas[BWDREF_FRAME] = ref_deltas[LAST_FRAME]; in av1_set_default_ref_deltas()
1075 for (int i = LAST_FRAME; i <= ALTREF_FRAME; ++i) { in av1_setup_frame_contexts()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_pickmode.c129 ref_frame == LAST_FRAME) { in mv_refs_rt()
1086 ref_frame == LAST_FRAME && source_variance < 5) { in update_thresh_freq_fact_row_mt()
1103 ref_frame == LAST_FRAME && source_variance < 5) { in update_thresh_freq_fact()
1178 ref_frame_cost[LAST_FRAME] = ref_frame_cost[GOLDEN_FRAME] = in init_ref_frame_cost()
1181 ref_frame_cost[LAST_FRAME] += vp9_cost_bit(ref_single_p1, 0); in init_ref_frame_cost()
1195 { LAST_FRAME, ZEROMV }, { LAST_FRAME, NEARESTMV },
1196 { GOLDEN_FRAME, ZEROMV }, { LAST_FRAME, NEARMV },
1197 { LAST_FRAME, NEWMV }, { GOLDEN_FRAME, NEARESTMV },
1205 { LAST_FRAME, ZEROMV }, { LAST_FRAME, NEARESTMV },
1206 { LAST_FRAME, NEARMV }, { GOLDEN_FRAME, ZEROMV },
[all …]
Dvp9_encoder.h929 if (ref_frame == LAST_FRAME) { in get_ref_frame_map_idx()
1034 &cm->frame_refs[ref0 >= LAST_FRAME ? ref0 - LAST_FRAME : 0]; in set_ref_ptrs()
1036 &cm->frame_refs[ref1 >= LAST_FRAME ? ref1 - LAST_FRAME : 0]; in set_ref_ptrs()
Dvp9_rdopt.c48 ((1 << LAST_FRAME) | (1 << ALTREF_FRAME) | (1 << INTRA_FRAME))
50 ((1 << LAST_FRAME) | (1 << GOLDEN_FRAME) | (1 << INTRA_FRAME))
84 { NEARESTMV, { LAST_FRAME, NONE } },
90 { NEWMV, { LAST_FRAME, NONE } },
94 { NEARMV, { LAST_FRAME, NONE } },
98 { ZEROMV, { LAST_FRAME, NONE } },
102 { NEARESTMV, { LAST_FRAME, ALTREF_FRAME } },
107 { NEARMV, { LAST_FRAME, ALTREF_FRAME } },
108 { NEWMV, { LAST_FRAME, ALTREF_FRAME } },
112 { ZEROMV, { LAST_FRAME, ALTREF_FRAME } },
[all …]
Dvp9_svc_layercontext.c454 for (ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ref_frame++) { in reset_fb_idx_unused()
462 if (first_ref != LAST_FRAME && in reset_fb_idx_unused()
463 !(cpi->ref_frame_flags & flag_list[LAST_FRAME]) && in reset_fb_idx_unused()
723 (uint8_t)(cpi->ref_frame_flags & flag_list[LAST_FRAME]); in vp9_copy_flags_ref_update_idx()
1005 for (ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ++ref_frame) { in vp9_svc_constrain_inter_layer_pred()
1025 for (ref_frame = LAST_FRAME; ref_frame <= GOLDEN_FRAME; ref_frame++) { in vp9_svc_constrain_inter_layer_pred()
1037 ref_frame == LAST_FRAME ? cpi->lst_fb_idx : cpi->gld_fb_idx; in vp9_svc_constrain_inter_layer_pred()
1038 int ref_flag = ref_frame == LAST_FRAME ? VP9_LAST_FLAG : VP9_GOLD_FLAG; in vp9_svc_constrain_inter_layer_pred()
Dvp9_denoiser.c236 (frame != LAST_FRAME && in perform_motion_compensation()
239 frame = LAST_FRAME; in perform_motion_compensation()
256 if (frame == LAST_FRAME) in perform_motion_compensation()
540 if (mi->ref_frame[0] == LAST_FRAME) ctx->zeromv_lastref_sse = sse; in vp9_denoiser_update_frame_stats()
/external/libaom/libaom/av1/encoder/
Dencode_strategy.c245 const RefCntBuffer *last_buf = get_ref_frame_buf(cm, LAST_FRAME); in get_ref_frame_flags()
362 for (int ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ref_frame++) { in choose_primary_ref_frame()
364 primary_ref_frame = ref_frame - LAST_FRAME; in choose_primary_ref_frame()
710 for (ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ++ref_frame) { in dump_ref_frame_images()
724 new_map[new_ref - LAST_FRAME] = cm->remapped_ref_idx[old_ref - LAST_FRAME]; in assign_new_map()
742 const int lst_map_idx = get_ref_frame_map_idx(cm, LAST_FRAME); in update_ref_frame_map()
805 assign_new_map(cm, new_map, LAST_FRAME, BWDREF_FRAME); in update_ref_frame_map()
808 assign_new_map(cm, new_map, LAST2_FRAME, LAST_FRAME); in update_ref_frame_map()
830 assign_new_map(cm, new_map, LAST2_FRAME, LAST_FRAME); in update_ref_frame_map()
831 assign_new_map(cm, new_map, LAST_FRAME, LAST3_FRAME); in update_ref_frame_map()
Drdopt.c203 { NEARESTMV, { LAST_FRAME, NONE_FRAME } },
211 { NEWMV, { LAST_FRAME, NONE_FRAME } },
219 { NEARMV, { LAST_FRAME, NONE_FRAME } },
227 { GLOBALMV, { LAST_FRAME, NONE_FRAME } },
237 { NEAREST_NEARESTMV, { LAST_FRAME, ALTREF_FRAME } },
241 { NEAREST_NEARESTMV, { LAST_FRAME, BWDREF_FRAME } },
245 { NEAREST_NEARESTMV, { LAST_FRAME, ALTREF2_FRAME } },
250 { NEAREST_NEARESTMV, { LAST_FRAME, LAST2_FRAME } },
251 { NEAREST_NEARESTMV, { LAST_FRAME, LAST3_FRAME } },
252 { NEAREST_NEARESTMV, { LAST_FRAME, GOLDEN_FRAME } },
[all …]
Dfirstpass.c359 get_ref_frame_yv12_buf(cm, LAST_FRAME); in av1_first_pass()
656 xd->mi[0]->ref_frame[0] = LAST_FRAME; in av1_first_pass()
821 cm->ref_frame_map[get_ref_frame_map_idx(cm, LAST_FRAME)]); in av1_first_pass()
832 &cm->ref_frame_map[get_ref_frame_map_idx(cm, LAST_FRAME)], cm->cur_frame); in av1_first_pass()
840 cm->ref_frame_map[get_ref_frame_map_idx(cm, LAST_FRAME)]); in av1_first_pass()
Dpartition_strategy.c221 assert(cpi->ref_frame_flags & av1_ref_frame_flag_list[LAST_FRAME] || in simple_motion_search_prune_part_features()
225 const int ref_list[] = { LAST_FRAME, ALTREF_FRAME }; in simple_motion_search_prune_part_features()
464 assert(cpi->ref_frame_flags & av1_ref_frame_flag_list[LAST_FRAME] || in firstpass_simple_motion_search_features()
468 const int ref_list[] = { LAST_FRAME, ALTREF_FRAME }; in firstpass_simple_motion_search_features()
Dvar_based_part.c504 const YV12_BUFFER_CONFIG *yv12 = get_ref_frame_yv12_buf(cm, LAST_FRAME); in av1_choose_var_based_partitioning()
509 get_ref_scale_factors(cm, LAST_FRAME), num_planes); in av1_choose_var_based_partitioning()
510 mi->ref_frame[0] = LAST_FRAME; in av1_choose_var_based_partitioning()
527 x->pred_mv[LAST_FRAME] = mi->mv[0].as_mv; in av1_choose_var_based_partitioning()
Dbitstream.c507 assert(mbmi->ref_frame[0] == LAST_FRAME); in write_ref_frames()
531 assert(mbmi->ref_frame[0] == LAST_FRAME); in write_ref_frames()
585 const int bit3 = mbmi->ref_frame[0] != LAST_FRAME; in write_ref_frames()
2292 for (ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ++ref_frame) { in write_frame_size_with_refs()
2470 for (ref_frame = LAST_FRAME; ref_frame < REF_FRAMES; ref_frame++) { in write_film_grain_params()
2695 for (frame = LAST_FRAME; frame <= ALTREF_FRAME; ++frame) { in write_global_motion()
2730 for (int ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ++ref_frame) { in check_frame_refs_short_signaling()
2756 const int lst_map_idx = get_ref_frame_map_idx(cm, LAST_FRAME); in check_frame_refs_short_signaling()
2773 if (get_ref_frame_buf(cm, LAST_FRAME + ref_idx) != ref_frame_buf_new) { in check_frame_refs_short_signaling()
2782 for (int ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ++ref_frame) { in check_frame_refs_short_signaling()
[all …]
/external/libvpx/libvpx/vp8/encoder/
Dpickinter.c498 x->e_mbd.mode_info_context->mbmi.ref_frame == LAST_FRAME && in evaluate_inter_mode()
499 (denoise_aggressive || (cpi->closest_reference_frame == LAST_FRAME))) { in evaluate_inter_mode()
622 cpi->denoiser.yv12_running_avg[LAST_FRAME].y_buffer + recon_yoffset; in vp8_pick_inter_mode()
623 stride = cpi->denoiser.yv12_running_avg[LAST_FRAME].y_stride; in vp8_pick_inter_mode()
625 target_u = cpi->denoiser.yv12_running_avg[LAST_FRAME].u_buffer + in vp8_pick_inter_mode()
627 target_v = cpi->denoiser.yv12_running_avg[LAST_FRAME].v_buffer + in vp8_pick_inter_mode()
629 stride_uv = cpi->denoiser.yv12_running_avg[LAST_FRAME].uv_stride; in vp8_pick_inter_mode()
634 cpi, x, target_y, stride, plane[LAST_FRAME][0], mb_row, mb_col, 0); in vp8_pick_inter_mode()
638 cpi, x, target_u, stride_uv, plane[LAST_FRAME][1], mb_row, mb_col, 1); in vp8_pick_inter_mode()
641 cpi, x, target_v, stride_uv, plane[LAST_FRAME][2], mb_row, mb_col, in vp8_pick_inter_mode()
[all …]
Dbitstream.c390 rfct[LAST_FRAME] + rfct[GOLDEN_FRAME] + rfct[ALTREF_FRAME]; in vp8_convert_rfct_to_prob()
397 cpi->prob_last_coded = rf_inter ? (rfct[LAST_FRAME] * 255) / rf_inter : 128; in vp8_convert_rfct_to_prob()
491 if (rf == LAST_FRAME) in pack_inter_mode_mvs()
786 ref_frame_cost[LAST_FRAME] = in vp8_calc_ref_frame_costs()
802 rfct[LAST_FRAME] + rfct[GOLDEN_FRAME] + rfct[ALTREF_FRAME]; in vp8_estimate_entropy_savings()
811 new_last = rf_inter ? (rfct[LAST_FRAME] * 255) / rf_inter : 128; in vp8_estimate_entropy_savings()
821 rfct[LAST_FRAME] * ref_frame_cost[LAST_FRAME] + in vp8_estimate_entropy_savings()
830 rfct[LAST_FRAME] * ref_frame_cost[LAST_FRAME] + in vp8_estimate_entropy_savings()
Drdopt.h88 plane[LAST_FRAME], recon_yoffset, recon_uvoffset); in get_predictor_pointers()
107 if (cpi->ref_frame_flags & VP8_LAST_FRAME) ref_frame_map[i++] = LAST_FRAME; in get_reference_search_order()
Dencodeframe.c479 xd->mode_info_context->mbmi.ref_frame == LAST_FRAME) { in encode_mb_row()
517 (xd->mode_info_context->mbmi.ref_frame == LAST_FRAME)) { in encode_mb_row()
934 cpi->mb.count_mb_ref_frame_usage[LAST_FRAME] + in vp8_encode_frame()
1192 ((xd->mode_info_context->mbmi.ref_frame != LAST_FRAME) || in vp8cx_encode_inter_macroblock()
1211 if (xd->mode_info_context->mbmi.ref_frame != LAST_FRAME && in vp8cx_encode_inter_macroblock()
1245 if (xd->mode_info_context->mbmi.ref_frame == LAST_FRAME) { in vp8cx_encode_inter_macroblock()
Donyx_if.c667 cpi->mb.e_mbd.ref_lf_deltas[LAST_FRAME] = 0; in set_default_lf_deltas()
1795 cpi->recent_ref_frame_usage[LAST_FRAME] = 1; in vp8_create_compressor()
2617 cpi->recent_ref_frame_usage[LAST_FRAME] = 1; in update_golden_frame_stats()
2647 cpi->recent_ref_frame_usage[LAST_FRAME] += in update_golden_frame_stats()
2648 cpi->mb.count_mb_ref_frame_usage[LAST_FRAME]; in update_golden_frame_stats()
2666 rfct[LAST_FRAME] + rfct[GOLDEN_FRAME] + rfct[ALTREF_FRAME]; in update_rd_ref_frame_probs()
2892 cpi->current_ref_frames[LAST_FRAME]; in update_reference_frames()
2924 cpi->current_ref_frames[LAST_FRAME]; in update_reference_frames()
2944 cpi->current_ref_frames[LAST_FRAME] = cm->current_video_frame; in update_reference_frames()
2955 for (i = LAST_FRAME; i < MAX_REF_FRAMES; ++i) in update_reference_frames()
[all …]
/external/libvpx/libvpx/vp8/decoder/
Derror_concealment.c303 if (prev_mi->mbmi.ref_frame == LAST_FRAME) { in estimate_missing_mvs()
326 mi->mbmi.ref_frame = LAST_FRAME; in estimate_missing_mvs()
475 interpolate_mvs(mb, neighbors, LAST_FRAME); in vp8_interpolate_motion()
477 mb->mode_info_context->mbmi.ref_frame = LAST_FRAME; in vp8_interpolate_motion()
/external/libaom/libaom/av1/decoder/
Ddecodemv.c910 ref_frame[0] = LAST_FRAME + cm->current_frame.skip_mode_info.ref_frame_idx_0; in set_ref_frames_for_skip_mode()
911 ref_frame[1] = LAST_FRAME + cm->current_frame.skip_mode_info.ref_frame_idx_1; in set_ref_frames_for_skip_mode()
929 ref_frame[0] = LAST_FRAME; in read_ref_frames()
947 ref_frame[0] = LAST_FRAME; in read_ref_frames()
950 ref_frame[0] = LAST_FRAME; in read_ref_frames()
954 ref_frame[0] = LAST_FRAME; in read_ref_frames()
1000 ref_frame[0] = bit3 ? LAST2_FRAME : LAST_FRAME; in read_ref_frames()
1204 if (frame < LAST_FRAME) return 0; in read_is_inter_block()
/external/libvpx/libvpx/vp8/common/
Dblockd.h135 LAST_FRAME = 1, enumerator

123