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
4efcf838
Commit
4efcf838
authored
Jun 24, 2014
by
Tim Kopp
Committed by
Gerrit Code Review
Jun 24, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Fixed VP9 denoiser COPY_BLOCK case"
parents
9aca602e
b79d5b62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
vp9/encoder/vp9_denoiser.c
vp9/encoder/vp9_denoiser.c
+7
-6
No files found.
vp9/encoder/vp9_denoiser.c
View file @
4efcf838
...
...
@@ -93,20 +93,21 @@ void vp9_denoiser_denoise(VP9_DENOISER *denoiser, MACROBLOCK *mb,
int
decision
=
COPY_BLOCK
;
YV12_BUFFER_CONFIG
avg
=
denoiser
->
running_avg_y
[
INTRA_FRAME
];
YV12_BUFFER_CONFIG
mc_avg
=
denoiser
->
mc_running_avg_y
;
uint8_t
*
avg_start
=
block_start
(
avg
.
y_buffer
,
avg
.
y_stride
,
mi_row
,
mi_col
);
uint8_t
*
mc_avg_start
=
block_start
(
mc_avg
.
y_buffer
,
mc_avg
.
y_stride
,
mi_row
,
mi_col
);
struct
buf_2d
src
=
mb
->
plane
[
0
].
src
;
update_running_avg
(
denoiser
->
mc_running_avg_y
.
y_buffer
,
denoiser
->
mc_running_avg_y
.
y_stride
,
denoiser
->
running_avg_y
[
INTRA_FRAME
].
y_buffer
,
denoiser
->
running_avg_y
[
INTRA_FRAME
].
y_stride
,
update_running_avg
(
mc_avg_start
,
mc_avg
.
y_stride
,
avg_start
,
avg
.
y_stride
,
mb
->
plane
[
0
].
src
.
buf
,
mb
->
plane
[
0
].
src
.
stride
,
0
,
bs
);
if
(
decision
==
FILTER_BLOCK
)
{
// TODO(tkopp)
}
if
(
decision
==
COPY_BLOCK
)
{
copy_block
(
block_start
(
avg
.
y_buffer
,
avg
.
y_stride
,
mi_row
,
mi_col
),
avg
.
y_stride
,
src
.
buf
,
src
.
stride
,
bs
);
copy_block
(
avg_start
,
avg
.
y_stride
,
src
.
buf
,
src
.
stride
,
bs
);
}
}
...
...
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