Skip to content
GitLab
Projects
Groups
Snippets
/
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
e4ba6aa3
Commit
e4ba6aa3
authored
May 04, 2017
by
Sebastien Alaiwan
Committed by
Frédéric BARBIER
May 04, 2017
Browse files
Reduce variable scope
Change-Id: Ibf57c631b469b1dddafb60be2cbb02d221f378d0
parent
0b95a6e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
av1/common/resize.c
View file @
e4ba6aa3
...
...
@@ -369,14 +369,12 @@ static void resize_multistep(const uint8_t *const input, int length,
const
int
steps
=
get_down2_steps
(
length
,
olength
);
if
(
steps
>
0
)
{
int
s
;
uint8_t
*
out
=
NULL
;
uint8_t
*
otmp2
;
int
filteredlength
=
length
;
assert
(
otmp
!=
NULL
);
otmp2
=
otmp
+
get_down2_length
(
length
,
1
);
for
(
s
=
0
;
s
<
steps
;
++
s
)
{
uint8_t
*
otmp2
=
otmp
+
get_down2_length
(
length
,
1
);
for
(
int
s
=
0
;
s
<
steps
;
++
s
)
{
const
int
proj_filteredlength
=
get_down2_length
(
filteredlength
,
1
);
const
uint8_t
*
const
in
=
(
s
==
0
?
input
:
out
);
if
(
s
==
steps
-
1
&&
proj_filteredlength
==
olength
)
...
...
@@ -640,22 +638,19 @@ static void highbd_down2_symodd(const uint16_t *const input, int length,
static
void
highbd_resize_multistep
(
const
uint16_t
*
const
input
,
int
length
,
uint16_t
*
output
,
int
olength
,
uint16_t
*
otmp
,
int
bd
)
{
int
steps
;
if
(
length
==
olength
)
{
memcpy
(
output
,
input
,
sizeof
(
output
[
0
])
*
length
);
return
;
}
steps
=
get_down2_steps
(
length
,
olength
);
const
int
steps
=
get_down2_steps
(
length
,
olength
);
if
(
steps
>
0
)
{
int
s
;
uint16_t
*
out
=
NULL
;
uint16_t
*
otmp2
;
int
filteredlength
=
length
;
assert
(
otmp
!=
NULL
);
otmp2
=
otmp
+
get_down2_length
(
length
,
1
);
for
(
s
=
0
;
s
<
steps
;
++
s
)
{
uint16_t
*
otmp2
=
otmp
+
get_down2_length
(
length
,
1
);
for
(
int
s
=
0
;
s
<
steps
;
++
s
)
{
const
int
proj_filteredlength
=
get_down2_length
(
filteredlength
,
1
);
const
uint16_t
*
const
in
=
(
s
==
0
?
input
:
out
);
if
(
s
==
steps
-
1
&&
proj_filteredlength
==
olength
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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