diff options
author | David Schleef <ds@schleef.org> | 2005-12-18 05:13:26 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2005-12-18 05:13:26 +0000 |
commit | eb82d8fb7d4d2a14b03fb33eb2edbae112cae235 (patch) | |
tree | c412125f982aeb64815d8b3015803ad75df15db1 /liboil/dct | |
parent | 4c5004c8d6912b15bb0330ad1d32945c99167909 (diff) | |
download | liboil-eb82d8fb7d4d2a14b03fb33eb2edbae112cae235.tar.gz |
* liboil/liboilparameter.h:
* liboil/liboilprototype.c: (oil_param_get_source_data):
* liboil/liboiltest.c: (oil_test_get_value):
* liboil/liboiltest.h:
New functions for getting values common in test setup functions.
* liboil/dct/idct8x8theora_ref.c:
* liboil/ref/clip_ref.c:
* liboil/ref/composite.c:
* liboil/ref/permute.c:
* liboil/ref/resample.c:
* liboil/utf8/utf8.c:
Use new functions.
Diffstat (limited to 'liboil/dct')
-rw-r--r-- | liboil/dct/idct8x8theora_ref.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/liboil/dct/idct8x8theora_ref.c b/liboil/dct/idct8x8theora_ref.c index 1e6615e..164d530 100644 --- a/liboil/dct/idct8x8theora_ref.c +++ b/liboil/dct/idct8x8theora_ref.c @@ -40,8 +40,7 @@ idct8theora_s16_test (OilTest *test) { int i; int stride = test->params[OIL_ARG_SSTR1].value; - uint16_t *ptr = (uint16_t *)(test->params[OIL_ARG_SRC1].src_data + - test->params[OIL_ARG_SRC1].test_header); + uint16_t *ptr = (uint16_t *)oil_test_get_source_data(test,OIL_ARG_SRC1); for(i=0;i<8;i++){ OIL_GET(ptr, i*stride, int16_t) = oil_rand_s16() >> 3; @@ -57,8 +56,7 @@ idct8x8theora_s16_test (OilTest *test) int i; int j; int stride = test->params[OIL_ARG_SSTR1].value; - uint16_t *ptr = (uint16_t *)(test->params[OIL_ARG_SRC1].src_data + - test->params[OIL_ARG_SRC1].test_header); + uint16_t *ptr = (uint16_t *)oil_test_get_source_data(test,OIL_ARG_SRC1); for(i=0;i<8;i++){ for(j=0;j<8;j++){ |