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
6f0566e7
Commit
6f0566e7
authored
Jun 23, 2017
by
Debargha Mukherjee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some valgrind errors in loop-restoration
BUG=aomedia:623 Change-Id: I158072895adb8a9f5f177b8146f3beec265d7406
parent
67d968f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
av1/encoder/pickrst.c
av1/encoder/pickrst.c
+5
-3
No files found.
av1/encoder/pickrst.c
View file @
6f0566e7
...
...
@@ -1166,7 +1166,8 @@ static double search_norestore(const YV12_BUFFER_CONFIG *src, AV1_COMP *cpi,
static
double
search_switchable_restoration
(
const
YV12_BUFFER_CONFIG
*
src
,
AV1_COMP
*
cpi
,
int
partial_frame
,
int
plane
,
RestorationInfo
*
rsi
,
double
*
tile_cost
[
RESTORE_SWITCHABLE_TYPES
])
{
RestorationType
*
const
restore_types
[
RESTORE_SWITCHABLE_TYPES
],
double
*
const
tile_cost
[
RESTORE_SWITCHABLE_TYPES
],
RestorationInfo
*
rsi
)
{
AV1_COMMON
*
const
cm
=
&
cpi
->
common
;
MACROBLOCK
*
x
=
&
cpi
->
td
.
mb
;
double
cost_switchable
=
0
;
...
...
@@ -1202,6 +1203,7 @@ static double search_switchable_restoration(
if
(
force_restore_type
!=
0
)
if
(
r
!=
force_restore_type
)
continue
;
int
tilebits
=
0
;
if
(
restore_types
[
r
][
tile_idx
]
!=
r
)
continue
;
if
(
r
==
RESTORE_WIENER
)
tilebits
+=
count_wiener_bits
(
&
rsi
->
wiener_info
[
tile_idx
],
&
ref_wiener_info
);
...
...
@@ -1274,8 +1276,8 @@ void av1_pick_filter_restoration(const YV12_BUFFER_CONFIG *src, AV1_COMP *cpi,
}
if
(
plane
==
AOM_PLANE_Y
)
cost_restore
[
RESTORE_SWITCHABLE
]
=
search_switchable_restoration
(
src
,
cpi
,
method
==
LPF_PICK_FROM_SUBIMAGE
,
plane
,
&
cm
->
rst_info
[
plane
]
,
tile_cost
);
src
,
cpi
,
method
==
LPF_PICK_FROM_SUBIMAGE
,
plane
,
restore_types
,
tile_cost
,
&
cm
->
rst_info
[
plane
]);
else
cost_restore
[
RESTORE_SWITCHABLE
]
=
DBL_MAX
;
best_cost_restore
=
DBL_MAX
;
...
...
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