![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Public Member Functions | |
| FPerTrackCompressor (int32 InCompressionType, const FTranslationTrack &TranslationData, const FPerTrackParams &Params) | |
| FPerTrackCompressor (int32 InCompressionType, const FRotationTrack &RotationData, const FPerTrackParams &Params) | |
| FPerTrackCompressor (int32 InCompressionType, const FScaleTrack &ScaleData, const FPerTrackParams &Params) | |
Public Attributes | |
| float | MaxError |
| double | SumError |
| TArray< uint8 > | CompressedBytes |
| AnimationCompressionFormat | ActualCompressionMode |
| int32 | ActualKeyFlags |
| bool | bReallyNeedsFrameTable |
Static Protected Member Functions | |
| template<typename T > | |
| static FBox | CalculateQuatACF96Bounds (const UE::Math::TQuat< T > *Points, int32 NumPoints) |
This class compresses a single rotation or translation track into an internal buffer, keeping error metrics as it goes.
|
inline |
Constructs a compressed track of translation data
|
inline |
Constructs a compressed track of rotation data
|
inline |
Constructs a compressed track of Scale data
Writes Length bytes from Data to the output stream
|
inlinestaticprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
Helper method for writing out the key->frame mapping table with a given index type
|
inlineprotected |
|
inlineprotected |
Creates a header integer with four fields: NumKeys can be no more than 24 bits (positions 0..23) KeyFlags can be no more than 3 bits (positions 24..27) bReallyNeedsFrameTable is a single bit (position 27) KeyFormat can be no more than 4 bits (positions 31..28)
Also updates the ActualCompressionMode field
|
inlineprotected |
Ensures that the CompressedBytes output stream is a multiple of 4 bytes long
|
inlineprotected |
Writes out the key->frame mapping table if it is needed for the current compression type
|
inlineprotected |
Resets the compression buffer to defaults (no data)
| AnimationCompressionFormat FPerTrackCompressor::ActualCompressionMode |
| int32 FPerTrackCompressor::ActualKeyFlags |
| bool FPerTrackCompressor::bReallyNeedsFrameTable |
Does the compression scheme need a key->frame table (needed if the keys are spaced non-uniformly in time)
| float FPerTrackCompressor::MaxError |
| double FPerTrackCompressor::SumError |