summaryrefslogtreecommitdiff
path: root/apps/codecs/libcook/cook_fixpoint.h
diff options
context:
space:
mode:
authorMohamed Tarek <mt@rockbox.org>2009-05-11 23:35:50 +0000
committerMohamed Tarek <mt@rockbox.org>2009-05-11 23:35:50 +0000
commit0cb3ad58b3033ec1b78cc74943775e27ae7faeca (patch)
tree4c3a648b639b9f0f442f2594543e6eaaba430618 /apps/codecs/libcook/cook_fixpoint.h
parent685cee87bedc06549fba38ea87f1d3461ba4a0fe (diff)
downloadrockbox-0cb3ad58b3033ec1b78cc74943775e27ae7faeca.tar.gz
rockbox-0cb3ad58b3033ec1b78cc74943775e27ae7faeca.zip
-Took cook_random() from an old cook.c revision [6 mar 2007], which is a
simple RNG, to eliminate the need for lfg.c/h. -Remove lfg.c/h and md5.c/h as they are no longer needed and use the more common form of my name in docs/COMMITTERS. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20915 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libcook/cook_fixpoint.h')
-rw-r--r--apps/codecs/libcook/cook_fixpoint.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/libcook/cook_fixpoint.h b/apps/codecs/libcook/cook_fixpoint.h
index b8182bfcd0..83c054c527 100644
--- a/apps/codecs/libcook/cook_fixpoint.h
+++ b/apps/codecs/libcook/cook_fixpoint.h
@@ -110,7 +110,7 @@ static void scalar_dequant_math(COOKContext *q, int index,
110 for(i=0 ; i<SUBBAND_SIZE ; i++) { 110 for(i=0 ; i<SUBBAND_SIZE ; i++) {
111 f = table[subband_coef_index[i]]; 111 f = table[subband_coef_index[i]];
112 /* noise coding if subband_coef_index[i] == 0 */ 112 /* noise coding if subband_coef_index[i] == 0 */
113 if (((subband_coef_index[i] == 0) && av_lfg_get(&q->random_state) < 0x80000000) || 113 if (((subband_coef_index[i] == 0) && cook_random(q)) ||
114 ((subband_coef_index[i] != 0) && subband_coef_sign[i])) 114 ((subband_coef_index[i] != 0) && subband_coef_sign[i]))
115 f = -f; 115 f = -f;
116 116