Skip to main content

Module animation_compression

Module animation_compression 

Source

Structs§

AdaptiveCompressor
Multi-pass compressor: tries progressively tighter compression until error budget is met.
AdditiveBlendTree
AdditiveLayer
AdditiveLayerStack
AnimationChunk
AnimationClip
AnimationCompressor
AnimationEvent
AnimationEventTrack
AnimationExportManifest
AnimationFrameCache
AnimationLodManager
AnimationMetrics
AnimationRegistry
AnimationStateEntry
BatchCompressionStats
BitReader
BitWriter
BlendNode
BlendTreeCompressed
BoneConstraint
BoneHierarchy
BoneLodInfo
BoneMapping
BoneTrack
ChannelMask
Per-channel compression mask: which channels to compress.
ClipLibrary
ClipMetadata
ClipRetargeter
Full clip-to-clip retargeting with pose-space correction.
CompressedAnimationClip
CompressedKeyframe
CompressedPoseStream
CompressedQuat
Represents a compressed quaternion using the smallest-3 method. Stores index of the largest component (2 bits) and the other 3 as i16.
CompressedTrack
CompressionBundle
CompressionCache
CompressionErrorReport
CompressionJob
CompressionJobQueue
CompressionPipeline
CompressionSettings
DeltaCompressedTrack
DeltaFrame
FabrikChain
FootIKSolver
HermiteSegment
A cubic Hermite spline segment.
Keyframe
LayeredAnimationStateMachine
LodAnimationVariant
LodStreamingManager
MotionMatchingDb
MotionPose
PiecewiseLinearCurve
PoseEvaluator
Full pose at a given time, evaluating all bones.
PositionBounds
ProceduralBreathing
ProceduralHeadLook
QualityAnalyzer
ReductionStats
ReferencePose
RetargetingData
RiggedAnimationSet
RotationHermiteSpline
Cubic Hermite spline for rotations (in quaternion log-space).
ScalarCurve
ScalarKeyframe
SkeletonMask
SkeletonPose
SkinWeight
SkinWeightSet
SpringDamper
Simple spring damper for procedural animation.
StateTransition
StreamingAnimationAsset
Transform
TransformDelta
Delta of a transform from reference.

Enums§

BlendStrategy
BoneGroup
CompressionJobStatus
ConstraintType
CurveChannel
EncodedDelta
Variable-length encoded delta: near-zero = 1 byte, otherwise full.
InterpolationMode

Functions§

apply_additive_clip_to_pose
Sample an additive clip and apply to a pose array.
apply_additive_layer
Apply an additive layer on top of a base pose.
average_quaternions
Average N quaternions (weighted). Used in blend tree base pose computation.
bake_additive_into_base
Bake additive layer into the base animation.
blend_n_poses
build_hermite_spline
Build Hermite spline segments from keyframe sequence.
build_sample_walk_clip
Build a sample walking animation for testing.
clamp_velocity_per_frame
clip_bounding_box
Compute clip bounding box (over all bone positions, all frames).
clip_has_motion
Check if a clip has any non-identity motion.
compress_quat_smallest3
compress_track_masked
Compress a track with per-channel masking.
compute_bone_importance_from_velocity
Compute per-bone importance based on motion velocity.
compute_error_report
compute_hierarchy_importance
create_lod_variants
Create LOD variants of an animation clip.
decode_compressed_clip
decode_pos_delta
decompose_track_to_scalar_curves
Decompose a BoneTrack into 10 scalar curves (one per channel).
decompress_quat_smallest3
dedup_keyframes
Remove duplicate consecutive keyframes (same value).
dequantize_position_16
Dequantize a 16-bit position.
dequantize_scale_log8
dequantize_scale_vec_log8
deserialize_compressed_track
deserialize_pose
encode_compressed_clip
encode_pos_delta
Encode a position delta with variable-length encoding.
estimate_tangents_catmull_rom
Estimate tangents for a sequence of keyframes using Catmull-Rom style.
estimate_tangents_least_squares
Least-squares tangent estimation for more accurate fitting. Uses a 3-point stencil with proper weighting.
evaluate_blend_node
Evaluate a blend node at a given time, producing a pose.
extract_additive_layer
Extract an additive layer by subtracting a reference pose.
extract_frame_range
Extract a sub-range of an animation clip.
extract_shared_base_pose
Extract a shared base pose from multiple clips for diff encoding.
extrapolate_pose
fix_quaternion_continuity
Ensure quaternion continuity (no sign flips).
hermite_reduce_track
Error-bounded curve reduction using Hermite spline fitting.
ik_two_bone
IK two-bone solver.
keyframe_density_histogram
Compute a density histogram of keyframes across time.
mirror_animation
Mirror an animation around the YZ plane (flip left/right).
normalize_track_rotations
Normalize all quaternions in a track.
pose_diff
poses_equal
position_error_l2
L2 distance between two positions.
preset_high_quality
preset_lossless
preset_low_quality
preset_medium_quality
print_compression_report
quantization_error_position_16bit
quantization_error_rotation_16bit
quantization_error_scale_8bit
quantization_error_worst_case
Compute the worst-case quantization error for a given number of bits and range.
quantize_position_16
Quantize a position to 16-bit integers per component.
quantize_scale_log8
Encode scale component to 8-bit log encoding. Assumes scale is in [1/16, 16] range.
quantize_scale_vec_log8
rdp_reduce_track
Combined RDP reduction on a BoneTrack with adaptive tolerance.
rdp_simplify_positions
RDP simplification for position curves. Returns indices of keyframes to keep.
rdp_simplify_rotations
RDP simplification for rotation curves using geodesic error.
resample_clip
Resample an animation to a fixed frame rate.
retarget_track_swing_twist
Full twist/swing retargeting for a track.
retarget_transform
Retarget a single transform using bone mapping.
reverse_clip
Reverse an animation clip.
rotation_error_geodesic
Geodesic distance on SO(3) between two quaternions (in radians).
run_compression_test
sample_track_with_mode
scale_clip_positions
Scale all positions in a clip by a uniform factor.
scale_error_l2
L2 distance between two scale vectors.
select_lod_variant
Select the best LOD variant for a given distance.
serialize_compressed_track
Serialize a CompressedTrack to bytes.
serialize_pose
sort_keyframes
Sort keyframes by time (in case they’re out of order).
stitch_clips
Concatenate two clips end-to-end with optional cross-fade.
swing_twist_decompose
Decompose a quaternion into swing and twist components around a given axis.
time_scale_clip
Time-scale a clip (compress/expand time axis).
transform_error
Combined transform error weighted by component.
validate_round_trip