diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-08-02 20:57:40 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-08-02 20:57:40 +0000 |
commit | fd9bd310a25ca57473381bdc3a350d188e18da56 (patch) | |
tree | 6f7c51fadd8e49bf6426166d7b24c83e163c2020 /apps/plugins/lib/gray_core.c | |
parent | 344849cc22efe7e042025dd17368a62f991be458 (diff) |
Slightly better precision.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10419 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/gray_core.c')
-rw-r--r-- | apps/plugins/lib/gray_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lib/gray_core.c b/apps/plugins/lib/gray_core.c index 91fd4113cd..4dbe7d4229 100644 --- a/apps/plugins/lib/gray_core.c +++ b/apps/plugins/lib/gray_core.c @@ -438,7 +438,7 @@ int gray_init(struct plugin_api* newrb, unsigned char *gbuf, long gbuf_size, { for (i = 0; i < 256; i++) { - data = exp_s16p16(gamma * (log_s16p16(i * 257 + 1) >> 8)); + data = exp_s16p16((gamma * log_s16p16(i * 257 + 1)) >> 8); data = (data - (data >> 8)) >> 8; /* approx. data /= 257 */ data = MULU16(depth, lcdlinear[data]) + 127; _gray_info.idxtable[i] = (data + (data >> 8)) >> 8; |