Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/AnimationCompression.h |
| Include | #include "AnimationCompression.h" |
Syntax
class FAnimationCompression_PerTrackUtils
Remarks
This class contains helper methods for dealing with animations compressed with the per-track codec
Functions
| Type | Name | Description | |
|---|---|---|---|
| uint16 | CompressFixed16
(
float Value, |
Log2MaxValue of 0 => -1..1 Log2MaxValue of 7 => -128..128 Can be 0..15 Compresses a float into a signed fixed point number, which can range from the symmetrical values of -2^Log2MaxValue .. | |
| void | DecomposeHeader
(
int32 Header, |
Decomposes a header created with MakeHeader into three/four fields (two are still left packed into FormatFlags): | |
| void | DecomposeHeader
(
int32 Header, |
Decomposes a header created with MakeHeader into three/four fields (two are still left packed into FormatFlags): | |
| float | DecompressFixed16
(
uint16 Value |
Decompresses a fixed point number encoded by ComrpessFixed16 | |
| float | DecompressFixed16
(
uint16 Value |
||
| void | DecompressRotation
(
int32 Format, |
Decompress a single rotation key from a single track that was compressed with the PerTrack codec (scalar) | |
| void | DecompressScale
(
int32 Format, |
Decompress a single Scale key from a single track that was compressed with the PerTrack codec (scalar) | |
| void | DecompressTranslation
(
int32 Format, |
Decompress a single translation key from a single track that was compressed with the PerTrack codec (scalar) | |
| void | GetAllSizesFromFormat
(
int32 KeyFormat, |
Figures out the size of various parts of a compressed track from the format and format flags combo | |
| void | GetByteSizesFromFormat
(
int32 KeyFormat, |
||
| int32 | GetKeyCountFromHeader
(
int32 Header |
Extracts the number of keys from a header created by MakeHeader | |
| int32 | MakeHeader
(
const int32 NumKeys, |
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) |