Home
last modified time | relevance | path

Searched refs:best_rd (Results 1 – 18 of 18) sorted by relevance

/external/libaom/libaom/av1/encoder/
Dintra_mode_search.c263 int64_t *best_rd, int64_t *best_model_rd, uint8_t *best_tx_type_map, in calc_rd_given_intra_angle() argument
286 if (this_rd < *best_rd) { in calc_rd_given_intra_angle()
289 *best_rd = this_rd; in calc_rd_given_intra_angle()
414 int64_t *best_rd, int64_t *best_model_rd, in rd_pick_filter_intra_sby() argument
438 *best_rd); in rd_pick_filter_intra_sby()
451 if (this_rd < *best_rd) { in rd_pick_filter_intra_sby()
452 *best_rd = this_rd; in rd_pick_filter_intra_sby()
566 uint8_t *best_palette_color_map, int64_t *best_rd, int64_t *best_model_rd, in palette_rd_y() argument
607 *best_rd); in palette_rd_y()
620 if (this_rd < *best_rd) { in palette_rd_y()
[all …]
Dintra_mode_search.h43 int64_t best_rd);
55 RD_STATS *rd_stats_uv, int64_t best_rd,
61 BLOCK_SIZE bsize, int64_t best_rd,
Dpartition_strategy.c808 static INLINE void add_rd_feature(int64_t rd, int64_t best_rd, float *features, in add_rd_feature() argument
811 const float rd_ratio = rd_valid ? (float)rd / best_rd : 1.0f; in add_rd_feature()
819 int64_t best_rd, int64_t part_none_rd, in av1_ml_early_term_after_split() argument
824 if (best_rd <= 0 || best_rd == INT64_MAX || *terminate_partition_search) in av1_ml_early_term_after_split()
868 features[f_idx++] = logf(1.0f + (float)best_rd / bs / bs / 1024.0f); in av1_ml_early_term_after_split()
870 add_rd_feature(part_none_rd, best_rd, features, &f_idx); in av1_ml_early_term_after_split()
871 add_rd_feature(part_split_rd, best_rd, features, &f_idx); in av1_ml_early_term_after_split()
874 add_rd_feature(split_block_rd[i], best_rd, features, &f_idx); in av1_ml_early_term_after_split()
909 int64_t best_rd, int64_t none_rd, in av1_ml_prune_rect_partition() argument
912 if (bsize < BLOCK_8X8 || best_rd >= 1000000000) return; in av1_ml_prune_rect_partition()
[all …]
Dpartition_strategy.h91 int64_t best_rd, int64_t part_none_rd,
105 int64_t best_rd, int64_t none_rd,
112 int64_t best_rd, int64_t horz_rd[2],
121 BLOCK_SIZE bsize, int part_ctx, int64_t best_rd,
Drdopt.c322 int64_t best_rd; member
1276 int64_t best_rd = INT64_MAX; in motion_mode_rd() local
1322 best_rd = simple_states->rd_stats.rdcost; in motion_mode_rd()
1589 if (mode_index == 0 || tmp_rd < best_rd) { in motion_mode_rd()
1591 best_rd = tmp_rd; in motion_mode_rd()
1608 if (best_rd == INT64_MAX) { in motion_mode_rd()
2268 int64_t best_rd = INT64_MAX; in handle_inter_mode() local
2405 assert(best_rd != INT64_MAX); in handle_inter_mode()
2409 best_rd = RDCOST(x->rdmult, best_rd_stats.rate, in handle_inter_mode()
2411 if (best_rd < ref_best_rd) ref_best_rd = best_rd; in handle_inter_mode()
[all …]
Dcompound_type.c197 int64_t rd, best_rd = INT64_MAX; in pick_wedge() local
247 if (rd < best_rd) { in pick_wedge()
250 best_rd = rd; in pick_wedge()
255 return best_rd - in pick_wedge()
273 int64_t rd, best_rd = INT64_MAX; in pick_wedge_fixed_sign() local
290 if (rd < best_rd) { in pick_wedge_fixed_sign()
292 best_rd = rd; in pick_wedge_fixed_sign()
296 return best_rd - in pick_wedge_fixed_sign()
345 int64_t best_rd = INT64_MAX; in pick_interinter_seg() local
371 if (rd0 < best_rd) { in pick_interinter_seg()
[all …]
Drd.h274 static INLINE int rd_less_than_thresh(int64_t best_rd, int thresh, in rd_less_than_thresh() argument
276 return best_rd < ((int64_t)thresh * thresh_fact >> 5) || thresh == INT_MAX; in rd_less_than_thresh()
Dtx_search.c30 int64_t best_rd; member
2099 int64_t best_rd = INT64_MAX; in search_tx_type() local
2237 if (cpi->sf.rd_sf.optimize_b_precheck && best_rd < INT64_MAX && in search_tx_type()
2243 const int64_t best_rd_ = AOMMIN(best_rd, ref_best_rd); in search_tx_type()
2258 if (RDCOST(x->rdmult, rate_cost, 0) > best_rd) continue; in search_tx_type()
2309 if (rd < best_rd) { in search_tx_type()
2310 best_rd = rd; in search_tx_type()
2366 if ((best_rd - (best_rd >> cpi->sf.tx_sf.adaptive_txb_search_level)) > in search_tx_type()
2377 assert(best_rd != INT64_MAX); in search_tx_type()
2769 int64_t best_rd = INT64_MAX; in choose_tx_size_type_from_rd() local
[all …]
Dpickcdef.c518 uint64_t best_rd = UINT64_MAX; in av1_cdef_search() local
538 if (rd < best_rd) { in av1_cdef_search()
539 best_rd = rd; in av1_cdef_search()
Drdopt.h56 PICK_MODE_CONTEXT *ctx, int64_t best_rd);
Dencodeframe.c726 PICK_MODE_CONTEXT *ctx, RD_STATS best_rd, in pick_sb_modes() argument
728 if (best_rd.rdcost < 0) { in pick_sb_modes()
825 av1_rd_cost_update(x->rdmult, &best_rd); in pick_sb_modes()
835 av1_rd_pick_intra_mode_sb(cpi, x, rd_cost, bsize, ctx, best_rd.rdcost); in pick_sb_modes()
851 rd_cost, bsize, ctx, best_rd.rdcost); in pick_sb_modes()
857 best_rd.rdcost); in pick_sb_modes()
861 best_rd.rdcost); in pick_sb_modes()
/external/libvpx/libvpx/vp9/encoder/
Dvp9_rdopt.c77 int64_t best_rd; member
845 if (args->this_rd + rd > args->best_rd) { in block_rd_txfm()
870 if (args->this_rd > args->best_rd) { in block_rd_txfm()
889 args.best_rd = ref_best_rd; in txfm_rd_in_plane()
948 int64_t best_rd = ref_best_rd; in choose_tx_size_from_rd() local
987 txfm_rd_in_plane(cpi, x, &r[n][0], &d[n], &s[n], &sse[n], best_rd, 0, bs, in choose_tx_size_from_rd()
990 txfm_rd_in_plane(cpi, x, &r[n][0], &d[n], &s[n], &sse[n], best_rd, 0, bs, in choose_tx_size_from_rd()
1023 if (rd[n][1] < best_rd) { in choose_tx_size_from_rd()
1025 best_rd = rd[n][1]; in choose_tx_size_from_rd()
1093 int64_t best_rd = rd_thresh; in rd_pick_intra4x4block() local
[all …]
Dvp9_rd.h191 static INLINE int rd_less_than_thresh(int64_t best_rd, int thresh, in rd_less_than_thresh() argument
193 return best_rd < ((int64_t)thresh * (*thresh_fact) >> 5) || thresh == INT_MAX; in rd_less_than_thresh()
Dvp9_rdopt.h30 PICK_MODE_CONTEXT *ctx, int64_t best_rd);
Dvp9_pickmode.c1103 static INLINE int rd_less_than_thresh_row_mt(int64_t best_rd, int thresh, in rd_less_than_thresh_row_mt() argument
1107 best_rd < ((int64_t)thresh * (*thresh_fact) >> 5) || thresh == INT_MAX; in rd_less_than_thresh_row_mt()
2752 int64_t best_rd = INT64_MAX; in vp9_pick_inter_mode_sub8x8() local
2960 if (this_rd < best_rd) { in vp9_pick_inter_mode_sub8x8()
2961 best_rd = this_rd; in vp9_pick_inter_mode_sub8x8()
2984 rd_cost->rdcost = best_rd; in vp9_pick_inter_mode_sub8x8()
Dvp9_encodeframe.c2007 int64_t best_rd = INT64_MAX; in rd_pick_sb_modes() local
2067 best_rd = vp9_calculate_rd_cost(x->rdmult, x->rddiv, rate_in_best_rd, in rd_pick_sb_modes()
2074 vp9_rd_pick_intra_mode_sb(cpi, x, rd_cost, bsize, ctx, best_rd); in rd_pick_sb_modes()
2079 ctx, best_rd); in rd_pick_sb_modes()
2082 bsize, ctx, best_rd); in rd_pick_sb_modes()
2085 bsize, ctx, best_rd); in rd_pick_sb_modes()
4826 int64_t best_rd, PC_TREE *pc_tree) { in nonrd_pick_partition() argument
4864 best_rdc.rdcost = best_rd; in nonrd_pick_partition()
/external/libvpx/libvpx/vp8/encoder/
Drdopt.c527 int best_rd = INT_MAX; in rd_pick_intra4x4block() local
568 if (this_rd < best_rd) { in rd_pick_intra4x4block()
572 best_rd = this_rd; in rd_pick_intra4x4block()
584 return best_rd; in rd_pick_intra4x4block()
588 int *Distortion, int best_rd) { in rd_pick_intra4x4mby_modes() argument
634 if (total_rd >= (int64_t)best_rd) break; in rd_pick_intra4x4mby_modes()
637 if (total_rd >= (int64_t)best_rd) return INT_MAX; in rd_pick_intra4x4mby_modes()
652 int best_rd = INT_MAX; in rd_pick_intra16x16mby_mode() local
670 if (this_rd < best_rd) { in rd_pick_intra16x16mby_mode()
672 best_rd = this_rd; in rd_pick_intra16x16mby_mode()
[all …]
Dpickinter.c183 int best_rd = INT_MAX; in pick_intra4x4block() local
201 if (this_rd < best_rd) { in pick_intra4x4block()
204 best_rd = this_rd; in pick_intra4x4block()
211 return best_rd; in pick_intra4x4block()
573 int best_rd = INT_MAX; in vp8_pick_inter_mode() local
774 if (best_rd <= x->rd_threshes[mode_index]) continue; in vp8_pick_inter_mode()
1133 if (this_rd < best_rd || x->skip) { in vp8_pick_inter_mode()
1140 best_rd = this_rd; in vp8_pick_inter_mode()
1267 if (this_rd < best_rd) { in vp8_pick_inter_mode()