xrif
A fast lossless compression system
xrif_test_difference_pixel_whitenoise.c File Reference

Test the pixel differencing method with white noise. More...

Test the pixel differencing method with white noise.

Author
Jared R. Males (jared.nosp@m.male.nosp@m.s@gma.nosp@m.il.c.nosp@m.om)

Definition in file xrif_test_difference_pixel_whitenoise.c.

#include <check.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <limits.h>
#include "../src/xrif.h"
#include "randutils.h"
Include dependency graph for xrif_test_difference_pixel_whitenoise.c:

Go to the source code of this file.

Macros

#define XRIF_TEST_TRIALS   (2)
 

Functions

 START_TEST (diff_pixel_int16_white)
 
 START_TEST (diff_pixel_uint16_white)
 
 START_TEST (diff_pixel_int32_white)
 
 START_TEST (diff_pixel_uint32_white)
 
 START_TEST (diff_pixel_int64_white)
 
 START_TEST (diff_pixel_uint64_white)
 
Suite * whitenoise_suite (void)
 
int main (int argc, char **argv)
 

Variables

int test_trials
 
int ws [] = {2,4,8,21, 33, 47, 64}
 
int hs [] = {2,4,8,21, 33, 47, 64}
 
int ps [] = {1,2,4,5,27,63,64}
 
 END_TEST
 

Function Documentation

◆ START_TEST() [1/6]

START_TEST ( diff_pixel_int16_white  )

Verify pixel differencing for int16_t Verify that xrif difference/un-difference cycle using the first pixel of each works with white noise For int16_t.

Definition at line 118 of file xrif_test_difference_pixel_whitenoise.c.

◆ START_TEST() [2/6]

START_TEST ( diff_pixel_int32_white  )

Verify pixel differencing for int32_t Verify that xrif difference/un-difference cycle using the first pixel of each works with white noise For int32_t.

Definition at line 158 of file xrif_test_difference_pixel_whitenoise.c.

◆ START_TEST() [3/6]

START_TEST ( diff_pixel_int64_white  )

Verify pixel differencing for int64_t Verify that xrif difference/un-difference cycle using the first pixel of each works with white noise For int64_t.

Definition at line 198 of file xrif_test_difference_pixel_whitenoise.c.

◆ START_TEST() [4/6]

START_TEST ( diff_pixel_uint16_white  )

Verify pixel differencing for uint16_t Verify that xrif difference/un-difference cycle using the first pixel of each works with white noise For uint16_t.

Definition at line 138 of file xrif_test_difference_pixel_whitenoise.c.

◆ START_TEST() [5/6]

START_TEST ( diff_pixel_uint32_white  )

Verify pixel differencing for uint32_t Verify that xrif difference/un-difference cycle using the first pixel of each works with white noise For uint32_t.

Definition at line 178 of file xrif_test_difference_pixel_whitenoise.c.

◆ START_TEST() [6/6]

START_TEST ( diff_pixel_uint64_white  )

Verify pixel differencing for uint64_t Verify that xrif difference/un-difference cycle using the first pixel of each works with white noise For uint64_t.

Definition at line 218 of file xrif_test_difference_pixel_whitenoise.c.