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
4cf636a6
Commit
4cf636a6
authored
Jan 07, 2015
by
Zoe Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed redundant local variables in the forward hybrid transforms.
Change-Id: I60f7ccbbc8dc624134e325bdce6042bc183075b6
parent
01eec758
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
vp9/encoder/vp9_dct.c
vp9/encoder/vp9_dct.c
+3
-6
No files found.
vp9/encoder/vp9_dct.c
View file @
4cf636a6
...
...
@@ -170,7 +170,6 @@ void vp9_fht4x4_c(const int16_t *input, tran_low_t *output,
vp9_fdct4x4_c
(
input
,
output
,
stride
);
}
else
{
tran_low_t
out
[
4
*
4
];
tran_low_t
*
outptr
=
&
out
[
0
];
int
i
,
j
;
tran_low_t
temp_in
[
4
],
temp_out
[
4
];
const
transform_2d
ht
=
FHT_4
[
tx_type
];
...
...
@@ -183,7 +182,7 @@ void vp9_fht4x4_c(const int16_t *input, tran_low_t *output,
temp_in
[
0
]
+=
1
;
ht
.
cols
(
temp_in
,
temp_out
);
for
(
j
=
0
;
j
<
4
;
++
j
)
out
ptr
[
j
*
4
+
i
]
=
temp_out
[
j
];
out
[
j
*
4
+
i
]
=
temp_out
[
j
];
}
// Rows
...
...
@@ -711,7 +710,6 @@ void vp9_fht8x8_c(const int16_t *input, tran_low_t *output,
vp9_fdct8x8_c
(
input
,
output
,
stride
);
}
else
{
tran_low_t
out
[
64
];
tran_low_t
*
outptr
=
&
out
[
0
];
int
i
,
j
;
tran_low_t
temp_in
[
8
],
temp_out
[
8
];
const
transform_2d
ht
=
FHT_8
[
tx_type
];
...
...
@@ -722,7 +720,7 @@ void vp9_fht8x8_c(const int16_t *input, tran_low_t *output,
temp_in
[
j
]
=
input
[
j
*
stride
+
i
]
*
4
;
ht
.
cols
(
temp_in
,
temp_out
);
for
(
j
=
0
;
j
<
8
;
++
j
)
out
ptr
[
j
*
8
+
i
]
=
temp_out
[
j
];
out
[
j
*
8
+
i
]
=
temp_out
[
j
];
}
// Rows
...
...
@@ -1103,7 +1101,6 @@ void vp9_fht16x16_c(const int16_t *input, tran_low_t *output,
vp9_fdct16x16_c
(
input
,
output
,
stride
);
}
else
{
tran_low_t
out
[
256
];
tran_low_t
*
outptr
=
&
out
[
0
];
int
i
,
j
;
tran_low_t
temp_in
[
16
],
temp_out
[
16
];
const
transform_2d
ht
=
FHT_16
[
tx_type
];
...
...
@@ -1114,7 +1111,7 @@ void vp9_fht16x16_c(const int16_t *input, tran_low_t *output,
temp_in
[
j
]
=
input
[
j
*
stride
+
i
]
*
4
;
ht
.
cols
(
temp_in
,
temp_out
);
for
(
j
=
0
;
j
<
16
;
++
j
)
out
ptr
[
j
*
16
+
i
]
=
(
temp_out
[
j
]
+
1
+
(
temp_out
[
j
]
<
0
))
>>
2
;
out
[
j
*
16
+
i
]
=
(
temp_out
[
j
]
+
1
+
(
temp_out
[
j
]
<
0
))
>>
2
;
}
// Rows
...
...
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