OpenQMC API
Loading...
Searching...
No Matches
encode.h File Reference
#include "gpu.h"
#include <cstdint>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  oqmc::EncodeKey
 Key to encode pixel coordinates. More...
 

Namespaces

namespace  oqmc
 

Functions

template<int XBits, int YBits, int ZBits>
std::uint16_t oqmc::encodeBits16 (EncodeKey key)
 Encode a key value into 16 bits.
 
template<int XBits, int YBits, int ZBits>
EncodeKey oqmc::decodeBits16 (std::uint16_t value)
 Decode a value back into a key.
 

Detailed Description

Functions to encode (compress) and decode (decompress) key data into a smaller memory footprint. This can be used to efficiently store pixel coordinate information.