Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 793 Bytes

File metadata and controls

19 lines (12 loc) · 793 Bytes

Compressing scalar tracks

Once you have created a raw track list and an allocator instance, you are ready to compress it.

For now, we only implement a single algorithm: uniformly sampled. This is a simple and excellent algorithm to use for everyday animation clips. Segmenting is currently not supported.

Compression settings are currently required as an argument but not used. It is a placeholder.

#include <acl/compression/compress.h>

using namespace acl;

compression_settings settings;

OutputStats stats;
compressed_tracks* out_compressed_tracks = nullptr;
ErrorResult error_result = compress_track_list(allocator, raw_track_list, settings, out_compressed_tracks, stats);