/external/libaom/libaom/av1/encoder/ |
D | rdopt_utils.h | 37 { NEARESTMV, { LAST_FRAME, NONE_FRAME } }, 45 { NEWMV, { LAST_FRAME, NONE_FRAME } }, 53 { NEARMV, { LAST_FRAME, NONE_FRAME } }, 61 { GLOBALMV, { LAST_FRAME, NONE_FRAME } }, 71 { NEAREST_NEARESTMV, { LAST_FRAME, ALTREF_FRAME } }, 75 { NEAREST_NEARESTMV, { LAST_FRAME, BWDREF_FRAME } }, 79 { NEAREST_NEARESTMV, { LAST_FRAME, ALTREF2_FRAME } }, 84 { NEAREST_NEARESTMV, { LAST_FRAME, LAST2_FRAME } }, 85 { NEAREST_NEARESTMV, { LAST_FRAME, LAST3_FRAME } }, 86 { NEAREST_NEARESTMV, { LAST_FRAME, GOLDEN_FRAME } }, [all …]
|
D | gop_structure.c | 162 #define REF_IDX(ref) ((ref)-LAST_FRAME) 241 next_ref_map[REF_IDX(LAST2_FRAME)] = this_ref_map[REF_IDX(LAST_FRAME)]; in set_gop_ref_frame_map() 242 next_ref_map[REF_IDX(LAST_FRAME)] = this_ref_map[REF_IDX(LAST3_FRAME)]; in set_gop_ref_frame_map() 249 this_ref_map[REF_IDX(LAST_FRAME)]; in set_gop_ref_frame_map() 250 next_ref_map[REF_IDX(LAST_FRAME)] = in set_gop_ref_frame_map() 253 next_ref_map[REF_IDX(LAST_FRAME)] = in set_gop_ref_frame_map() 256 this_ref_map[REF_IDX(LAST_FRAME)]; in set_gop_ref_frame_map()
|
D | nonrd_pickmode.c | 67 { LAST_FRAME, NEARESTMV }, { LAST_FRAME, NEARMV }, 68 { LAST_FRAME, NEWMV }, { GOLDEN_FRAME, NEARESTMV }, 109 bp->best_ref_frame = LAST_FRAME; in init_best_pickmode() 203 if (ref_frame > LAST_FRAME && gf_temporal_ref && in search_new_mv() 215 if (tmp_sad > x->pred_mv_sad[LAST_FRAME]) return -1; in search_new_mv() 279 !(force_skip_low_temp_var && ref_frame != LAST_FRAME)) { in find_predictors() 303 for (int i = LAST_FRAME; i <= ALTREF_FRAME; ++i) in estimate_single_ref_frame_costs() 316 ref_costs_single[LAST_FRAME] += x->single_ref_cost[ctx_p1][0][0]; in estimate_single_ref_frame_costs() 326 ref_costs_single[LAST_FRAME] += x->single_ref_cost[ctx_p3][2][0]; in estimate_single_ref_frame_costs() 338 ref_costs_single[LAST_FRAME] += x->single_ref_cost[ctx_p4][3][0]; in estimate_single_ref_frame_costs() [all …]
|
D | encode_strategy.c | 248 if (cm->tiles.large_scale) return (LAST_FRAME - LAST_FRAME); in choose_primary_ref_frame() 256 for (int ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ref_frame++) { in choose_primary_ref_frame() 258 primary_ref_frame = ref_frame - LAST_FRAME; in choose_primary_ref_frame() 580 for (ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ++ref_frame) { in dump_ref_frame_images() 760 int ref_frame_map_idx = get_ref_frame_map_idx(cm, LAST_FRAME); in av1_get_refresh_frame_flags() 955 for (ref_idx = 0; ref_idx <= ALTREF_FRAME - LAST_FRAME; ++ref_idx) { in find_unused_ref_frame() 960 if (ref_idx > ALTREF_FRAME - LAST_FRAME) return this_ref; in find_unused_ref_frame() 980 remapped_ref_idx[ALTREF_FRAME - LAST_FRAME] = arf_stack[arf_stack_size - 1]; in av1_get_ref_frames() 983 remapped_ref_idx[BWDREF_FRAME - LAST_FRAME] = arf_stack[0]; in av1_get_ref_frames() 986 remapped_ref_idx[ALTREF2_FRAME - LAST_FRAME] = arf_stack[1]; in av1_get_ref_frames() [all …]
|
D | rdopt.h | 174 ref_display_order_hint[ref_frame_list[i] - LAST_FRAME], in prune_ref() 203 ref_display_order_hint[GOLDEN_FRAME - LAST_FRAME], in prune_ref_by_selective_ref_frame() 217 ref_display_order_hint[LAST_FRAME - LAST_FRAME], in prune_ref_by_selective_ref_frame()
|
D | tpl_model.c | 388 xd->mi[0]->ref_frame[0] = best_rf_idx + LAST_FRAME; in mode_estimation() 890 for (int i = LAST_FRAME; i <= ALTREF_FRAME; ++i) in init_gop_frames_for_tpl() 891 tpl_frame->ref_map_index[i - LAST_FRAME] = in init_gop_frames_for_tpl() 892 ref_picture_map[cm->remapped_ref_idx[i - LAST_FRAME]]; in init_gop_frames_for_tpl() 945 for (int i = LAST_FRAME; i <= ALTREF_FRAME; ++i) in init_gop_frames_for_tpl() 946 tpl_frame->ref_map_index[i - LAST_FRAME] = in init_gop_frames_for_tpl() 947 ref_picture_map[cm->remapped_ref_idx[i - LAST_FRAME]]; in init_gop_frames_for_tpl() 949 tpl_frame->ref_map_index[ALTREF_FRAME - LAST_FRAME] = -1; in init_gop_frames_for_tpl() 950 tpl_frame->ref_map_index[LAST3_FRAME - LAST_FRAME] = -1; in init_gop_frames_for_tpl() 951 tpl_frame->ref_map_index[BWDREF_FRAME - LAST_FRAME] = -1; in init_gop_frames_for_tpl() [all …]
|
D | rdopt.c | 758 for (int i = LAST_FRAME; i <= ALTREF_FRAME; ++i) in estimate_ref_frame_costs() 771 ref_costs_single[LAST_FRAME] += x->single_ref_cost[ctx_p1][0][0]; in estimate_ref_frame_costs() 781 ref_costs_single[LAST_FRAME] += x->single_ref_cost[ctx_p3][2][0]; in estimate_ref_frame_costs() 793 ref_costs_single[LAST_FRAME] += x->single_ref_cost[ctx_p4][3][0]; in estimate_ref_frame_costs() 816 ref_bicomp_costs[LAST_FRAME] = ref_bicomp_costs[LAST2_FRAME] = in estimate_ref_frame_costs() 823 ref_bicomp_costs[LAST_FRAME] += x->comp_ref_cost[ref_comp_ctx_p][0][0]; in estimate_ref_frame_costs() 828 ref_bicomp_costs[LAST_FRAME] += x->comp_ref_cost[ref_comp_ctx_p1][1][0]; in estimate_ref_frame_costs() 849 for (ref0 = LAST_FRAME; ref0 <= GOLDEN_FRAME; ++ref0) { in estimate_ref_frame_costs() 860 ref_costs_comp[LAST_FRAME][LAST2_FRAME] = in estimate_ref_frame_costs() 864 ref_costs_comp[LAST_FRAME][LAST3_FRAME] = in estimate_ref_frame_costs() [all …]
|
D | var_based_part.c | 549 if (ref_frame_partition == LAST_FRAME && in set_low_temp_var_flag() 646 MV_REFERENCE_FRAME ref_frame_partition = LAST_FRAME; in av1_choose_var_based_partitioning() 696 const YV12_BUFFER_CONFIG *yv12 = get_ref_frame_yv12_buf(cm, LAST_FRAME); in av1_choose_var_based_partitioning() 716 get_ref_scale_factors(cm, LAST_FRAME), num_planes); in av1_choose_var_based_partitioning() 717 mi->ref_frame[0] = LAST_FRAME; in av1_choose_var_based_partitioning() 746 x->pred_mv[LAST_FRAME] = mi->mv[0].as_mv; in av1_choose_var_based_partitioning() 747 ref_frame_partition = LAST_FRAME; in av1_choose_var_based_partitioning()
|
D | firstpass.c | 710 xd->mi[0]->ref_frame[0] = LAST_FRAME; in firstpass_inter_prediction() 882 get_ref_frame_yv12_buf(cm, LAST_FRAME); in av1_first_pass() 1039 cm->ref_frame_map[get_ref_frame_map_idx(cm, LAST_FRAME)]); in av1_first_pass() 1050 &cm->ref_frame_map[get_ref_frame_map_idx(cm, LAST_FRAME)], cm->cur_frame); in av1_first_pass() 1058 cm->ref_frame_map[get_ref_frame_map_idx(cm, LAST_FRAME)]); in av1_first_pass()
|
/external/libvpx/libvpx/vp9/common/ |
D | vp9_pred_common.c | 25 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/ |
D | mvref_common.c | 841 for (ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ++ref_frame) { in av1_setup_frame_buf_refs() 844 cm->cur_frame->ref_order_hints[ref_frame - LAST_FRAME] = buf->order_hint; in av1_setup_frame_buf_refs() 845 cm->cur_frame->ref_display_order_hint[ref_frame - LAST_FRAME] = in av1_setup_frame_buf_refs() 853 for (ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ++ref_frame) { in av1_setup_frame_sign_bias() 933 for (MV_REFERENCE_FRAME rf = LAST_FRAME; rf <= INTER_REFS_PER_FRAME; ++rf) { in motion_field_projection() 936 ref_order_hints[rf - LAST_FRAME]); in motion_field_projection() 1000 for (int ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ref_frame++) { in av1_setup_motion_field() 1001 const int ref_idx = ref_frame - LAST_FRAME; in av1_setup_motion_field() 1018 if (ref_buf[LAST_FRAME - LAST_FRAME] != NULL) { in av1_setup_motion_field() 1020 ref_buf[LAST_FRAME - LAST_FRAME] in av1_setup_motion_field() [all …]
|
D | mvref_common.h | 131 { LAST_FRAME, BWDREF_FRAME }, { LAST2_FRAME, BWDREF_FRAME }, 134 { LAST_FRAME, ALTREF2_FRAME }, { LAST2_FRAME, ALTREF2_FRAME }, 137 { LAST_FRAME, ALTREF_FRAME }, { LAST2_FRAME, ALTREF_FRAME }, 140 { LAST_FRAME, LAST2_FRAME }, { LAST_FRAME, LAST3_FRAME }, 141 { LAST_FRAME, GOLDEN_FRAME }, { BWDREF_FRAME, ALTREF_FRAME },
|
D | enums.h | 574 LAST_FRAME, enumerator 589 INTER_REFS_PER_FRAME = ALTREF_FRAME - LAST_FRAME + 1, 592 FWD_REFS = GOLDEN_FRAME - LAST_FRAME + 1, 607 #define FWD_RF_OFFSET(ref) (ref - LAST_FRAME)
|
D | pred_common.c | 269 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()
|
D | entropymode.c | 1041 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/ |
D | vp9_pickmode.c | 129 ref_frame == LAST_FRAME) { in mv_refs_rt() 1121 ref_frame == LAST_FRAME && source_variance < 5) { in update_thresh_freq_fact_row_mt() 1138 ref_frame == LAST_FRAME && source_variance < 5) { in update_thresh_freq_fact() 1213 ref_frame_cost[LAST_FRAME] = ref_frame_cost[GOLDEN_FRAME] = in init_ref_frame_cost() 1216 ref_frame_cost[LAST_FRAME] += vp9_cost_bit(ref_single_p1, 0); in init_ref_frame_cost() 1230 { LAST_FRAME, ZEROMV }, { LAST_FRAME, NEARESTMV }, 1231 { GOLDEN_FRAME, ZEROMV }, { LAST_FRAME, NEARMV }, 1232 { LAST_FRAME, NEWMV }, { GOLDEN_FRAME, NEARESTMV }, 1240 { LAST_FRAME, ZEROMV }, { LAST_FRAME, NEARESTMV }, 1241 { LAST_FRAME, NEARMV }, { GOLDEN_FRAME, ZEROMV }, [all …]
|
D | vp9_encoder.h | 940 if (ref_frame == LAST_FRAME) { in get_ref_frame_map_idx() 1045 &cm->frame_refs[ref0 >= LAST_FRAME ? ref0 - LAST_FRAME : 0]; in set_ref_ptrs() 1047 &cm->frame_refs[ref1 >= LAST_FRAME ? ref1 - LAST_FRAME : 0]; in set_ref_ptrs()
|
D | vp9_rdopt.c | 50 ((1 << LAST_FRAME) | (1 << ALTREF_FRAME) | (1 << INTRA_FRAME)) 52 ((1 << LAST_FRAME) | (1 << GOLDEN_FRAME) | (1 << INTRA_FRAME)) 89 { NEARESTMV, { LAST_FRAME, NONE } }, 95 { NEWMV, { LAST_FRAME, NONE } }, 99 { NEARMV, { LAST_FRAME, NONE } }, 103 { ZEROMV, { LAST_FRAME, NONE } }, 107 { NEARESTMV, { LAST_FRAME, ALTREF_FRAME } }, 112 { NEARMV, { LAST_FRAME, ALTREF_FRAME } }, 113 { NEWMV, { LAST_FRAME, ALTREF_FRAME } }, 117 { ZEROMV, { LAST_FRAME, ALTREF_FRAME } }, [all …]
|
D | vp9_svc_layercontext.c | 456 for (ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ref_frame++) { in reset_fb_idx_unused() 464 if (first_ref != LAST_FRAME && in reset_fb_idx_unused() 465 !(cpi->ref_frame_flags & flag_list[LAST_FRAME]) && in reset_fb_idx_unused() 743 (uint8_t)(cpi->ref_frame_flags & flag_list[LAST_FRAME]); in vp9_copy_flags_ref_update_idx() 1062 for (ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ++ref_frame) { in vp9_svc_constrain_inter_layer_pred() 1090 for (ref_frame = LAST_FRAME; ref_frame <= GOLDEN_FRAME; ref_frame++) { in vp9_svc_constrain_inter_layer_pred() 1102 ref_frame == LAST_FRAME ? cpi->lst_fb_idx : cpi->gld_fb_idx; in vp9_svc_constrain_inter_layer_pred() 1103 int ref_flag = ref_frame == LAST_FRAME ? VP9_LAST_FLAG : VP9_GOLD_FLAG; in vp9_svc_constrain_inter_layer_pred()
|
/external/libvpx/libvpx/vp8/encoder/ |
D | pickinter.c | 498 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() 633 assert(plane[LAST_FRAME][0] != NULL); in vp8_pick_inter_mode() 635 cpi, x, target_y, stride, plane[LAST_FRAME][0], mb_row, mb_col, 0); in vp8_pick_inter_mode() 638 assert(plane[LAST_FRAME][1] != NULL); in vp8_pick_inter_mode() [all …]
|
D | rdopt.h | 88 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()
|
D | bitstream.c | 390 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()
|
D | encodeframe.c | 479 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()
|
/external/libvpx/libvpx/vp8/decoder/ |
D | error_concealment.c | 303 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/ |
D | decodemv.c | 925 ref_frame[0] = LAST_FRAME + cm->current_frame.skip_mode_info.ref_frame_idx_0; in set_ref_frames_for_skip_mode() 926 ref_frame[1] = LAST_FRAME + cm->current_frame.skip_mode_info.ref_frame_idx_1; in set_ref_frames_for_skip_mode() 944 ref_frame[0] = LAST_FRAME; in read_ref_frames() 962 ref_frame[0] = LAST_FRAME; in read_ref_frames() 965 ref_frame[0] = LAST_FRAME; in read_ref_frames() 969 ref_frame[0] = LAST_FRAME; in read_ref_frames() 984 ref_frame[!idx] = bit1 ? LAST2_FRAME : LAST_FRAME; in read_ref_frames() 1015 ref_frame[0] = bit3 ? LAST2_FRAME : LAST_FRAME; in read_ref_frames() 1217 if (frame < LAST_FRAME) return 0; in read_is_inter_block()
|