Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aom-rav1e
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce variable scope
Change-Id: Ibf57c631b469b1dddafb60be2cbb02d221f378d0
parent
0b95a6e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
av1/common/resize.c
av1/common/resize.c
+5
-10
No files found.
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
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