Voxel Codec
![CodeFactor](https://camo.githubusercontent.com/e416aae6860a5fc21fbdcb6ea1e8a8a071de23b9a21556e1fa29b9115a418bde/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f6361643432302f766f78656c2d636f6d7072657373696f6e2f6261646765)
Compression:
Decompression
ifstream is( "256-3.h264.vol", std::ios::ate | std::ios::binary );
auto ilen = is.tellg();
vol::StreamReader reader( is, 0, ilen );
vol::voxel::NvDecoderAsync decomp( reader );
auto block_dim = vol::voxel::Idx{}
.set_x(256)
.set_y(256)
.set_z(256); // (256, 256, 256)
{
ofstream os( "256-3.raw.0.1.0", std::ios::binary );
vol::UnboundedStreamWriter writer( os );
// ofstream os( "256-3.raw.0.1.0", std::ios::binary );
// vol::StreamWriter writer( os, 0, block_dim.total() );
// vector<char> s( block_dim.total() );
// vol::SliceWriter writer( s.data(), s.size() );
auto idx = vol::voxel::Idx{}
.set_x( 0 )
.set_y( 1 )
.set_z( 0 );
decomp.get( idx, writer );
}