Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions av2/encoder/speed_features.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,11 +461,15 @@ static void set_good_speed_features_framesize_independent(
sf->mv_sf.reduce_search_range = 1;
sf->mv_sf.subpel_search_type = boosted ? USE_8_TAPS : USE_4_TAPS;
sf->mv_sf.subpel_iters_per_step = boosted ? 2 : 1;
sf->mv_sf.warp_mv_refine_early_term =
(cm->current_frame.pyramid_level >= 3);

sf->lpf_sf.ccso_chroma_dep = 1;
}

if (speed >= 2) {
sf->mv_sf.warp_search_method_sec_ref = WARP_SEARCH_DIAMOND;
sf->mv_sf.warp_mv_refine_early_term = boosted ? false : true;

sf->lpf_sf.early_terminate_ccso_search_by_cost = 1;
sf->part_sf.partition_pruning_with_mlp_none_thresh = 2.5f;
Expand Down
5 changes: 4 additions & 1 deletion av2/encoder/speed_features.h
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,10 @@ typedef struct MV_SPEED_FEATURES {
int warp_search_iters;

// Early-terminate warp MV refinement when the RD improvement over the
// previous iteration is less than ~5%. Enabled for speed >= 3.
// previous iteration is less than ~5%.
// For speed = 1, enabled for frames with pyramid_level >= 3.
// For speed = 2, enabled for frames with pyramid_level >= 2.
// For speed >= 3, enabled for all frames.
bool warp_mv_refine_early_term;

// Use faster motion search settings for partition blocks with at least one
Expand Down
Loading