projects
/
fjl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add an x86 optimized version of extend().
[fjl]
/
idct_reference.c
diff --git
a/idct_reference.c
b/idct_reference.c
index e710de3d1306500f151bae818ecec2e767510b43..f74ad0ba2d11aa4d71ffb50c52ad0125108279de 100644
(file)
--- a/
idct_reference.c
+++ b/
idct_reference.c
@@
-43,7
+43,7
@@
void idct_reference(const int16_t* input, const void* userdata, uint8_t* output)
for (unsigned y = 0; y < 8; ++y) {
for (unsigned x = 0; x < 8; ++x) {
- double val = temp[y * DCTSIZE + x];
+ double val = temp[y * DCTSIZE + x]
+ 128.0
;
if (val < 0.0) {
output[y * DCTSIZE + x] = 0;
} else if (val >= 255.0) {