Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
bd57508f
Commit
bd57508f
authored
Aug 07, 2014
by
Marco Paniconi
Committed by
Gerrit Code Review
Aug 07, 2014
Browse files
Merge "vp8: for spatial resize, reallocate denoiser in vp8_allocate_comp."
parents
65234504
84ba62d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp8/encoder/onyx_if.c
View file @
bd57508f
...
...
@@ -1277,6 +1277,16 @@ void vp8_alloc_compressor_data(VP8_COMP *cpi)
vpx_free
(
cpi
->
tplist
);
CHECK_MEM_ERROR
(
cpi
->
tplist
,
vpx_malloc
(
sizeof
(
TOKENLIST
)
*
cm
->
mb_rows
));
#if CONFIG_TEMPORAL_DENOISING
if
(
cpi
->
oxcf
.
noise_sensitivity
>
0
)
{
vp8_denoiser_free
(
&
cpi
->
denoiser
);
vp8_denoiser_allocate
(
&
cpi
->
denoiser
,
width
,
height
,
cm
->
mb_rows
,
cm
->
mb_cols
,
((
cpi
->
oxcf
.
noise_sensitivity
==
3
)
?
1
:
0
));
}
#endif
}
...
...
@@ -2762,19 +2772,6 @@ static int resize_key_frame(VP8_COMP *cpi)
cm
->
Height
=
new_height
;
vp8_alloc_compressor_data
(
cpi
);
scale_and_extend_source
(
cpi
->
un_scaled_source
,
cpi
);
#if CONFIG_TEMPORAL_DENOISING
// TODO(marpan): denoiser_allocate() is not called in
// vp8_alloc_compressor_data() (currently denoiser_allocate is
// only called in change_config()). Check if we can move this call
// of denoiser_free/allocate into vp8_alloc_compressor_data().
if
(
cpi
->
oxcf
.
noise_sensitivity
>
0
)
{
vp8_denoiser_free
(
&
cpi
->
denoiser
);
vp8_denoiser_allocate
(
&
cpi
->
denoiser
,
new_width
,
new_height
,
cm
->
mb_rows
,
cm
->
mb_cols
,
((
cpi
->
oxcf
.
noise_sensitivity
==
3
)
?
1
:
0
));
}
#endif
return
1
;
}
}
...
...
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