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
a1daf009
Commit
a1daf009
authored
Jan 08, 2015
by
Jingning Han
Committed by
Gerrit Code Review
Jan 08, 2015
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Use lookup table to find pixel numbers in block"
parents
00bbe342
e3f0b19f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
vp9/encoder/vp9_denoiser.c
vp9/encoder/vp9_denoiser.c
+4
-9
No files found.
vp9/encoder/vp9_denoiser.c
View file @
a1daf009
...
...
@@ -49,9 +49,7 @@ static int noise_motion_thresh(BLOCK_SIZE bs, int increase_denoising) {
}
static
unsigned
int
sse_thresh
(
BLOCK_SIZE
bs
,
int
increase_denoising
)
{
return
(
4
<<
b_width_log2_lookup
[
bs
])
*
(
4
<<
b_height_log2_lookup
[
bs
])
*
(
increase_denoising
?
60
:
40
);
return
(
1
<<
num_pels_log2_lookup
[
bs
])
*
(
increase_denoising
?
60
:
40
);
}
static
int
sse_diff_thresh
(
BLOCK_SIZE
bs
,
int
increase_denoising
,
...
...
@@ -60,19 +58,16 @@ static int sse_diff_thresh(BLOCK_SIZE bs, int increase_denoising,
noise_motion_thresh
(
bs
,
increase_denoising
))
{
return
0
;
}
else
{
return
(
4
<<
b_width_log2_lookup
[
bs
])
*
(
4
<<
b_height_log2_lookup
[
bs
])
*
20
;
return
(
1
<<
num_pels_log2_lookup
[
bs
])
*
20
;
}
}
int
total_adj_strong_thresh
(
BLOCK_SIZE
bs
,
int
increase_denoising
)
{
return
(
4
<<
b_width_log2_lookup
[
bs
])
*
(
4
<<
b_height_log2_lookup
[
bs
])
*
(
increase_denoising
?
3
:
2
);
return
(
1
<<
num_pels_log2_lookup
[
bs
])
*
(
increase_denoising
?
3
:
2
);
}
static
int
total_adj_weak_thresh
(
BLOCK_SIZE
bs
,
int
increase_denoising
)
{
return
(
4
<<
b_width_log2_lookup
[
bs
])
*
(
4
<<
b_height_log2_lookup
[
bs
])
*
(
increase_denoising
?
3
:
2
);
return
(
1
<<
num_pels_log2_lookup
[
bs
])
*
(
increase_denoising
?
3
:
2
);
}
// TODO(jackychen): If increase_denoising is enabled in the future,
...
...
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