acl/compression/compression_memory_desc.h¶
#include "acl/compression/compression_memory_desc.h"
The description of a track list that lets ACL estimate the peak memory of compression before you load the tracks.
k_unknown_hierarchy_depth¶
uint32_t k_unknown_hierarchy_depth = 0xFFFFFFFFU;
The value of compression_memory_desc_t::max_hierarchy_depth when the depth is not known.
compression_memory_desc_t¶
struct compression_memory_desc_t
Describes the size of a track list (and its base) without its samples. estimate_compression_peak_memory_usage uses it to estimate the memory that compression needs before the tracks are loaded. For example, a scheduler can fill it from the metadata of an asset.
Except for total_name_length, the default value of each optional member gives the largest estimate. A value that is closer to the real track list gives a smaller estimate.
compression_memory_desc_t::track_type¶
track_type8 track_type = track_type8::vqvf;
The type of the tracks (scalar or transform).
compression_memory_desc_t::num_tracks¶
uint32_t num_tracks = 0;
The number of tracks.
compression_memory_desc_t::num_samples_per_track¶
uint32_t num_samples_per_track = 0;
The number of samples of each track.
compression_memory_desc_t::looping_policy¶
sample_looping_policy looping_policy = sample_looping_policy::clamp;
Optional: the looping policy of the tracks. With the clamp policy, the looping optimization can remove the last sample.
compression_memory_desc_t::transform_space¶
transform_space_t transform_space = transform_space_t::local;
Optional: the space of the transform tracks, see transform_space_t.
compression_memory_desc_t::max_hierarchy_depth¶
uint32_t max_hierarchy_depth = k_unknown_hierarchy_depth;
Optional: the largest number of ancestors of a transform (a root transform has a depth of 0). With k_unknown_hierarchy_depth, the estimate uses a single chain of transforms: some buffers then grow with the square of the number of transforms.
compression_memory_desc_t::total_name_length¶
uint32_t total_name_length = 0;
Optional: the sum of the lengths of the track list name and of the track names, in bytes and without the null terminators. Compression uses it only when the metadata settings include the names: then set it, the default value of 0 does not include the names in the estimate.
compression_memory_desc_t::base_format¶
additive_clip_format8 base_format = additive_clip_format8::none;
Optional: the format of the base of transform tracks, see transform_base_desc_t. The tracks have no base with additive_clip_format8::none.
compression_memory_desc_t::num_base_tracks¶
uint32_t num_base_tracks = 0;
Optional: the number of tracks of the base.
compression_memory_desc_t::num_base_samples_per_track¶
uint32_t num_base_samples_per_track = 0;
Optional: the number of samples of each track of the base.
compression_memory_desc_t::base_has_non_uniform_scale¶
bool base_has_non_uniform_scale = true;
Optional: whether or not the scale of the base is not uniform. With vqsf tracks, a base with a uniform scale lets compression use smaller transforms.