AlternativeUniversity.net
Alternative University

Computer Science

Raster Image Storage

Higher Precision Extended Range

XRH File Format 3.0

XRHLIB Software

XRHLIB is free C language source code for reading and writing XRH files. XRHLIB is released under the ZLIB-style license, and is bundled with ZST and SZ which are released under the BSD license.

Download the XRHLIB source code package that includes XRHLIB, ZST and SZ:

xrhlib300.zip
(750 K)

Create a new C/C++ project, copy the xrhlib-3.0.0 directory tree out of xrhlib300.zip to create an xrhlib-3.0.0 subdirectory off the project directory, and include into the project all of the “.c” files in the following directories:

xrhlib-3.0.0
xrhlib-3.0.0/szmod/src
xrhlib-3.0.0/zstlib/common
xrhlib-3.0.0/zstlib/compress
xrhlib-3.0.0/zstlib/decompress
xrhlib-3.0.0/zstlib/dictBuilder

Many of the “.c” files in the szmod/src directory are not needed, but go ahead and put them in the project for now to facilitate getting started.

The source code file in the xrhlib-3.0.0 directory provides functions to read and write XRH files. This proof-of-concept software reads and writes RGBA files with 32-bit floating point samples.

(Technical Note about SZ compression: XRH uses the floating point prediction of SZ, not the integer prediction of SZ; you can later remove the integer prediction parts of SZ. SZ developers told us that the advanced algorithms they use in the SZ floating point predictors have not been incorporated into the integer predictors; therefore, XRH does not use or recommend the integer predictors.)


Sample Images

The following XRH files store RGBA images with 32-bit floating point samples.

Distant Lighting
DistantLightingZ.xrh
(1.9 MB)

Image dimensions: 590 × 470 pixels
Compression Type: Zebra (lossless)
Scene model credit: Lux Core Render

Preview


Glow, Mirror
GlowMirrorZ.xrh
(4.6 MB)

Image dimensions: 1255 × 549 pixels
Compression Type: Zebra (lossless)
Scene model credit: AMD

Preview


Glass Teapot
GlassTeapotZ.xrh
(4.8 MB)

Image dimensions: 950 × 618 pixels
Compression Type: Zebra (lossless)
Scene model credit: Benedikt Bitterli

Preview


Water Caustic
WaterCausticSZ.xrh
(945 K)

Image dimensions: 1086 × 1086 pixels
Compression Type: SZMOD (lossy)
Scene model credit: Benedikt Bitterli


Table, Chairs
TableChairsSZ.xrh
(1.4 MB)

Image dimensions: 1692 × 2280 pixels
Compression Type: SZMOD (lossy)
Scene model credit: Lux Core Render
Painting credit: Albert Bierstadt

Preview


Staircase
StaircaseSZ.xrh
(3.2 MB)

Image dimensions: 1440 × 2222 pixels
Compression Type: SZMOD (lossy)
Scene model credit: Benedikt Bitterli


Underwater
UnderwaterSZ.xrh
(2.3 MB)

Image dimensions: 2160 × 1080 pixels
Compression Type: SZMOD (lossy)
Scene model credit: Lux Core Render


<  Previous Page:  Color Transformations
XRH File Format
Page 1 : 
Page 2 : 
Page 3 : 
Page 4 : 
Page 5 : 
Page 6 : 
Page 7 : 
Page 8 : 
Page 9 : 
Page 10 : 
Introduction
File Layout & Header
Comments
Custom Properties
Channel Names
Channels
Zebra Compression
SZMOD Compression
Color Transformations
Sample Files (this page)