Navigation
API > API/Runtime > API/Runtime/Engine
This class contains helper methods for dealing with animations compressed with the per-track codec
| Name | FAnimationCompression_PerTrackUtils |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/AnimationCompression.h |
| Include Path | #include "AnimationCompression.h" |
Syntax
class FAnimationCompression_PerTrackUtils
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static 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 .. | AnimationCompression.h | |
static void DecomposeHeader
(
int32 Header, |
Decomposes a header created with MakeHeader into three/four fields (two are still left packed into FormatFlags): | AnimationCompression.h | |
static void DecomposeHeader
(
int32 Header, |
Decomposes a header created with MakeHeader into three/four fields (two are still left packed into FormatFlags): | AnimationCompression.h | |
static float DecompressFixed16
(
uint16 Value |
Decompresses a fixed point number encoded by ComrpessFixed16 | AnimationCompression.h | |
static float DecompressFixed16
(
uint16 Value |
AnimationCompression.h | ||
static void DecompressRotation
(
int32 Format, |
Decompress a single rotation key from a single track that was compressed with the PerTrack codec (scalar) | AnimationCompression.h | |
static void DecompressScale
(
int32 Format, |
Decompress a single Scale key from a single track that was compressed with the PerTrack codec (scalar) | AnimationCompression.h | |
static void DecompressTranslation
(
int32 Format, |
Decompress a single translation key from a single track that was compressed with the PerTrack codec (scalar) | AnimationCompression.h | |
static void GetAllSizesFromFormat
(
int32 KeyFormat, |
Figures out the size of various parts of a compressed track from the format and format flags combo | AnimationCompression.h | |
static void GetByteSizesFromFormat
(
int32 KeyFormat, |
AnimationCompression.h | ||
static int32 GetKeyCountFromHeader
(
int32 Header |
Extracts the number of keys from a header created by MakeHeader | AnimationCompression.h | |
static 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) | AnimationCompression.h |