Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aom-rav1e
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
aom-rav1e
Commits
ee810273
Commit
ee810273
authored
Sep 13, 2017
by
Yushin Cho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a static analyzer warning
Also fix asan warnings. Change-Id: I21fe3150635540abacb5b1b8928c6470db605035
parent
74acf004
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
av1/encoder/rdopt.c
av1/encoder/rdopt.c
+12
-10
No files found.
av1/encoder/rdopt.c
View file @
ee810273
...
...
@@ -802,8 +802,7 @@ static double od_compute_dist_common(int activity_masking, uint16_t *x,
static
double
od_compute_dist
(
uint16_t
*
x
,
uint16_t
*
y
,
int
bsize_w
,
int
bsize_h
,
int
qindex
)
{
int
i
;
double
sum
;
sum
=
0
;
double
sum
=
0
;
assert
(
bsize_w
>=
8
&&
bsize_h
>=
8
);
...
...
@@ -841,8 +840,7 @@ static double od_compute_dist(uint16_t *x, uint16_t *y, int bsize_w,
static
double
od_compute_dist_diff
(
uint16_t
*
x
,
int16_t
*
e
,
int
bsize_w
,
int
bsize_h
,
int
qindex
)
{
int
i
;
double
sum
;
sum
=
0
;
double
sum
=
0
;
assert
(
bsize_w
>=
8
&&
bsize_h
>=
8
);
...
...
@@ -888,11 +886,13 @@ int64_t av1_dist_8x8(const AV1_COMP *const cpi, const MACROBLOCK *x,
DECLARE_ALIGNED
(
16
,
uint16_t
,
orig
[
MAX_TX_SQUARE
]);
DECLARE_ALIGNED
(
16
,
uint16_t
,
rec
[
MAX_TX_SQUARE
]);
assert
(
bsw
>=
8
);
assert
(
bsh
>=
8
);
assert
((
bsw
&
0x07
)
==
0
);
assert
((
bsh
&
0x07
)
==
0
);
if
(
x
->
tune_metric
==
AOM_TUNE_CDEF_DIST
||
x
->
tune_metric
==
AOM_TUNE_DAALA_DIST
)
{
assert
((
bsw
&
0x07
)
==
0
);
assert
((
bsh
&
0x07
)
==
0
);
#if CONFIG_HIGHBITDEPTH
if
(
xd
->
cur_buf
->
flags
&
YV12_FLAG_HIGHBITDEPTH
)
{
for
(
j
=
0
;
j
<
bsh
;
j
++
)
...
...
@@ -987,11 +987,13 @@ static int64_t av1_dist_8x8_diff(const MACROBLOCK *x, const uint8_t *src,
DECLARE_ALIGNED
(
16
,
uint16_t
,
orig
[
MAX_TX_SQUARE
]);
DECLARE_ALIGNED
(
16
,
int16_t
,
diff16
[
MAX_TX_SQUARE
]);
assert
(
bsw
>=
8
);
assert
(
bsh
>=
8
);
assert
((
bsw
&
0x07
)
==
0
);
assert
((
bsh
&
0x07
)
==
0
);
if
(
x
->
tune_metric
==
AOM_TUNE_CDEF_DIST
||
x
->
tune_metric
==
AOM_TUNE_DAALA_DIST
)
{
assert
((
bsw
&
0x07
)
==
0
);
assert
((
bsh
&
0x07
)
==
0
);
#if CONFIG_HIGHBITDEPTH
if
(
xd
->
cur_buf
->
flags
&
YV12_FLAG_HIGHBITDEPTH
)
{
for
(
j
=
0
;
j
<
bsh
;
j
++
)
...
...
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