Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/librfxcodec.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2015-08-24 02:12:05 +0300
committerJay Sorg <jay.sorg@gmail.com>2015-08-24 02:12:05 +0300
commit67ef40a54df30f7bf61d73358d57552227d5255b (patch)
tree896a5c41bb9a80f0d0f0cfa7391f3b31cdf317d7 /tests
parent7a2baf5b662a0d7e2ba6dc516cbbe64755d7aaa2 (diff)
some parameter changes
Diffstat (limited to 'tests')
-rw-r--r--tests/rfxcodectest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/rfxcodectest.c b/tests/rfxcodectest.c
index b178ad6..778cb90 100644
--- a/tests/rfxcodectest.c
+++ b/tests/rfxcodectest.c
@@ -68,8 +68,8 @@ speed_random(int count, const char *quants)
printf("speed_random:\n");
flags = RFX_FLAGS_RLGR1;
//flags = RFX_FLAGS_RLGR1 | RFX_FLAGS_ALPHAV1;
- han = rfxcodec_encode_create(1920, 1024, RFX_FORMAT_BGRA, flags);
- if (han == 0)
+ error = rfxcodec_encode_create(1920, 1024, RFX_FORMAT_BGRA, flags, &han);
+ if (error != 0)
{
printf("speed_random: rfxcodec_encode_create failed\n");
return 1;
@@ -252,8 +252,8 @@ encode_file(char *data, int width, int height, char *cdata, int *cdata_bytes,
void *han;
struct rfx_rect regions[1];
- han = rfxcodec_encode_create(1920, 1024, RFX_FORMAT_BGRA, RFX_FLAGS_RLGR1);
- if (han == 0)
+ error = rfxcodec_encode_create(1920, 1024, RFX_FORMAT_BGRA, RFX_FLAGS_RLGR1, &han);
+ if (error != 0)
{
printf("encode_file: rfxcodec_encode_create failed\n");
return 1;