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
6cfb854e
Commit
6cfb854e
authored
Jun 16, 2014
by
Jingning Han
Committed by
Gerrit Code Review
Jun 16, 2014
Browse files
Merge "Fix C versions of DC calculation functions"
parents
88df435d
6b0bc34b
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_dct.c
View file @
6cfb854e
...
...
@@ -50,7 +50,7 @@ void vp9_fdct4x4_1_c(const int16_t *input, int16_t *output, int stride) {
for
(
c
=
0
;
c
<
4
;
++
c
)
sum
+=
input
[
r
*
stride
+
c
];
output
[
0
]
=
sum
<<
3
;
output
[
0
]
=
sum
<<
1
;
output
[
1
]
=
0
;
}
...
...
@@ -258,7 +258,7 @@ void vp9_fdct8x8_1_c(const int16_t *input, int16_t *output, int stride) {
for
(
c
=
0
;
c
<
8
;
++
c
)
sum
+=
input
[
r
*
stride
+
c
];
output
[
0
]
=
sum
*
8
;
output
[
0
]
=
sum
;
output
[
1
]
=
0
;
}
...
...
@@ -340,7 +340,7 @@ void vp9_fdct16x16_1_c(const int16_t *input, int16_t *output, int stride) {
for
(
c
=
0
;
c
<
16
;
++
c
)
sum
+=
input
[
r
*
stride
+
c
];
output
[
0
]
=
sum
*
8
;
output
[
0
]
=
sum
>>
1
;
output
[
1
]
=
0
;
}
...
...
@@ -1369,7 +1369,7 @@ void vp9_fdct32x32_1_c(const int16_t *input, int16_t *output, int stride) {
for
(
c
=
0
;
c
<
32
;
++
c
)
sum
+=
input
[
r
*
stride
+
c
];
output
[
0
]
=
sum
<<
2
;
output
[
0
]
=
sum
>>
3
;
output
[
1
]
=
0
;
}
...
...
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