Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
fbb75a99
Commit
fbb75a99
authored
Jan 11, 2018
by
Hui Su
Committed by
Fred BARBIER
Jan 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support tx depth search speed feature for intra blocks
Change-Id: I26d23cd1107b4568c6f473df373be77fddb7c752
parent
37eab1dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
av1/encoder/rdopt.c
av1/encoder/rdopt.c
+8
-8
No files found.
av1/encoder/rdopt.c
View file @
fbb75a99
...
...
@@ -2416,6 +2416,13 @@ static INLINE int bsize_to_num_blk(BLOCK_SIZE bsize) {
return num_blk;
}
static int get_search_init_depth(int mi_width, int mi_height,
const SPEED_FEATURES *sf) {
if (sf->tx_size_search_method == USE_LARGESTALL) return MAX_VARTX_DEPTH;
return (mi_height != mi_width) ? sf->tx_size_search_init_depth_rect
: sf->tx_size_search_init_depth_sqr;
}
static void choose_tx_size_type_from_rd(const AV1_COMP *const cpi,
MACROBLOCK *x, RD_STATS *rd_stats,
int64_t ref_best_rd, BLOCK_SIZE bs) {
...
...
@@ -2442,7 +2449,7 @@ static void choose_tx_size_type_from_rd(const AV1_COMP *const cpi,
if (tx_select) {
start_tx = max_rect_tx_size;
depth =
0
;
depth =
get_search_init_depth(mi_size_wide[bs], mi_size_high[bs], &cpi->sf)
;
} else {
const TX_SIZE chosen_tx_size =
tx_size_from_tx_mode(bs, cm->tx_mode, is_inter);
...
...
@@ -3930,13 +3937,6 @@ static void select_tx_block(const AV1_COMP *cpi, MACROBLOCK *x, int blk_row,
}
}
static int get_search_init_depth(int mi_width, int mi_height,
const SPEED_FEATURES *sf) {
if (sf->tx_size_search_method == USE_LARGESTALL) return MAX_VARTX_DEPTH;
return (mi_height != mi_width) ? sf->tx_size_search_init_depth_rect
: sf->tx_size_search_init_depth_sqr;
}
static void select_inter_block_yrd(const AV1_COMP *cpi, MACROBLOCK *x,
RD_STATS *rd_stats, BLOCK_SIZE bsize,
int64_t ref_best_rd, int fast,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment