summaryrefslogtreecommitdiff
path: root/libavcodec/dct-test.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-04-10 17:23:38 +0000
committerDiego Biurrun <diego@biurrun.de>2009-04-10 17:23:38 +0000
commit64bde1974be4ab53f5ec468ef8f8c4cf18c27c52 (patch)
tree865f1ec8ddd7b6ba0e0cc224ac4ef0390cd83c03 /libavcodec/dct-test.c
parentee30cdabadc055ae49d9b92e800839b5d8925598 (diff)
downloadffmpeg-64bde1974be4ab53f5ec468ef8f8c4cf18c27c52.tar.gz
cosmetics: Rename prn variable to prng (Pseudo Random Number Generator).
Originally committed as revision 18422 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dct-test.c')
-rw-r--r--libavcodec/dct-test.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c
index b9c0ff42ec..6dfabfcbb8 100644
--- a/libavcodec/dct-test.c
+++ b/libavcodec/dct-test.c
@@ -208,9 +208,9 @@ static void dct_error(const char *name, int is_idct,
int64_t sysErr[64], sysErrMax=0;
int maxout=0;
int blockSumErrMax=0, blockSumErr;
- AVLFG prn;
+ AVLFG prng;
- av_lfg_init(&prn, 1);
+ av_lfg_init(&prng, 1);
err_inf = 0;
err2 = 0;
@@ -221,7 +221,7 @@ static void dct_error(const char *name, int is_idct,
switch(test){
case 0:
for(i=0;i<64;i++)
- block1[i] = (av_lfg_get(&prn) % 512) -256;
+ block1[i] = (av_lfg_get(&prng) % 512) -256;
if (is_idct){
ff_ref_fdct(block1);
@@ -230,12 +230,12 @@ static void dct_error(const char *name, int is_idct,
}
break;
case 1:{
- int num = av_lfg_get(&prn) % 10 + 1;
+ int num = av_lfg_get(&prng) % 10 + 1;
for(i=0;i<num;i++)
- block1[av_lfg_get(&prn) % 64] = av_lfg_get(&prn) % 512 -256;
+ block1[av_lfg_get(&prng) % 64] = av_lfg_get(&prng) % 512 -256;
}break;
case 2:
- block1[0] = av_lfg_get(&prn) % 4096 - 2048;
+ block1[0] = av_lfg_get(&prng) % 4096 - 2048;
block1[63]= (block1[0]&1)^1;
break;
}
@@ -335,7 +335,7 @@ static void dct_error(const char *name, int is_idct,
switch(test){
case 0:
for(i=0;i<64;i++)
- block1[i] = av_lfg_get(&prn) % 512 -256;
+ block1[i] = av_lfg_get(&prng) % 512 -256;
if (is_idct){
ff_ref_fdct(block1);
@@ -345,10 +345,10 @@ static void dct_error(const char *name, int is_idct,
break;
case 1:{
case 2:
- block1[0] = av_lfg_get(&prn) % 512 -256;
- block1[1] = av_lfg_get(&prn) % 512 -256;
- block1[2] = av_lfg_get(&prn) % 512 -256;
- block1[3] = av_lfg_get(&prn) % 512 -256;
+ block1[0] = av_lfg_get(&prng) % 512 -256;
+ block1[1] = av_lfg_get(&prng) % 512 -256;
+ block1[2] = av_lfg_get(&prng) % 512 -256;
+ block1[3] = av_lfg_get(&prng) % 512 -256;
}break;
}
@@ -472,9 +472,9 @@ static void idct248_error(const char *name,
{
int it, i, it1, ti, ti1, err_max, v;
- AVLFG prn;
+ AVLFG prng;
- av_lfg_init(&prn, 1);
+ av_lfg_init(&prng, 1);
/* just one test to see if code is correct (precision is less
important here) */
@@ -483,7 +483,7 @@ static void idct248_error(const char *name,
/* XXX: use forward transform to generate values */
for(i=0;i<64;i++)
- block1[i] = av_lfg_get(&prn) % 256 - 128;
+ block1[i] = av_lfg_get(&prng) % 256 - 128;
block1[0] += 1024;
for(i=0; i<64; i++)