xrif
A fast lossless compression system

Functions to perform the "none" reordering method

Collaboration diagram for No reordering:

Functions

xrif_error_t xrif_reorder_none (xrif_t handle)
 Perform no re-ordering, simply copy raw to reordered. More...
 
xrif_error_t xrif_unreorder_none (xrif_t handle)
 Perform no un-re-ordering, simply copy reordered to raw. More...
 

Function Documentation

◆ xrif_reorder_none()

xrif_error_t xrif_reorder_none ( xrif_t  handle)

Perform no re-ordering, simply copy raw to reordered.

Also zeroes any excess in xrif_handle::reordered_buffer.

Returns
XRIF_NOERROR on success
XRIF_ERROR_NULLPTR if handle is null.
XRIF_ERROR_INSUFFICIENT_SIZE if allocated buffers aren't big enough
Parameters
[in,out]handle[in/out] the xrif handle

Definition at line 1270 of file xrif.c.

References xrif_handle::data_size, xrif_handle::depth, xrif_handle::frames, xrif_handle::height, xrif_handle::raw_buffer, xrif_handle::raw_buffer_size, xrif_handle::reordered_buffer, xrif_handle::reordered_buffer_size, xrif_handle::width, XRIF_ERROR_INSUFFICIENT_SIZE, XRIF_ERROR_NULLPTR, and XRIF_NOERROR.

◆ xrif_unreorder_none()

xrif_error_t xrif_unreorder_none ( xrif_t  handle)

Perform no un-re-ordering, simply copy reordered to raw.

Also zeroes any excess in xrif_handle::raw_buffer.

Returns
XRIF_NOERROR on success
XRIF_ERROR_NULLPTR if handle is null.
XRIF_ERROR_INSUFFICIENT_SIZE if allocated buffers aren't big enough
Parameters
[in,out]handle[in/out] the xrif handle

Definition at line 1616 of file xrif.c.

References xrif_handle::data_size, xrif_handle::depth, xrif_handle::frames, xrif_handle::height, xrif_handle::raw_buffer, xrif_handle::raw_buffer_size, xrif_handle::reordered_buffer, xrif_handle::reordered_buffer_size, xrif_handle::width, XRIF_ERROR_INSUFFICIENT_SIZE, XRIF_ERROR_NULLPTR, and XRIF_NOERROR.