Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Animation
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UAnimBoneCompressionCodec
- UAnimCompress
- UAnimCompress_BitwiseCompressOnly
- UAnimCompress_LeastDestructive
- UAnimCompress_RemoveEverySecondKey
- UAnimCompress_RemoveLinearKeys
- UAnimCompress_PerTrackCompression
- UAnimCompress_RemoveTrivialKeys
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Animation/AnimCompress.h |
| Include | #include "Animation/AnimCompress.h" |
Syntax
class UAnimCompress : public UAnimBoneCompressionCodec
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32: 1 | bNeedsSkeleton | Compression algorithms requiring a skeleton should set this value to true. | |
| TEnumAsByte< AnimationCompressionFormat > | RotationCompressionFormat | Format for bitwise compression of rotation data. | |
| TEnumAsByte< AnimationCompressionFormat > | ScaleCompressionFormat | Format for bitwise compression of scale data. | |
| TEnumAsByte< AnimationCompressionFormat > | TranslationCompressionFormat | Format for bitwise compression of translation data. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UAnimCompress
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BitwiseCompressAnimationTracks
(
const FCompressibleAnimData& CompressibleAnimData, |
Encodes individual key arrays into an AnimSequence using the desired bit packing formats. | |
| bool | DoReduction
(
const FCompressibleAnimData& CompressibleAnimData, |
Implemented by child classes, this function reduces the number of keyframes in the specified sequence, given the specified skeleton (if needed). | |
| void | FilterIntermittentKeys
(
TArray< struct FTranslationTrack >& PositionTracks, |
Common compression utility to retain only intermittent animation keys. | |
| void | FilterIntermittentPositionKeys
(
FTranslationTrack& Track, |
Common compression utility to retain only intermittent position keys. | |
| void | FilterIntermittentPositionKeys
(
TArray< struct FTranslationTrack >& PositionTracks, |
Common compression utility to retain only intermittent position keys. | |
| void | FilterIntermittentRotationKeys
(
FRotationTrack& Track, |
Common compression utility to retain only intermittent rotation keys. | |
| void | FilterIntermittentRotationKeys
(
TArray< struct FRotationTrack >& RotationTracks, |
Common compression utility to retain only intermittent rotation keys. | |
| void | FilterTrivialKeys
(
TArray< struct FTranslationTrack >& PositionTracks, |
Common compression utility to remove 'redundant' keys based on the provided delta thresholds | |
| void | FilterTrivialPositionKeys
(
FTranslationTrack& Track, |
Common compression utility to remove 'redundant' position keys in a single track based on the provided delta threshold | |
| void | FilterTrivialPositionKeys
(
TArray< struct FTranslationTrack >& Track, |
Common compression utility to remove 'redundant' position keys based on the provided delta threshold | |
| void | FilterTrivialRotationKeys
(
FRotationTrack& Track, |
Common compression utility to remove 'redundant' rotation keys in a set of tracks based on the provided delta threshold | |
| void | FilterTrivialRotationKeys
(
TArray< struct FRotationTrack >& InputTracks, |
Common compression utility to remove 'redundant' rotation keys in a set of tracks based on the provided delta threshold | |
| void | FilterTrivialScaleKeys
(
TArray< struct FScaleTrack >& Track, |
Common compression utility to remove 'redundant' Scale keys based on the provided delta threshold | |
| void | FilterTrivialScaleKeys
(
FScaleTrack& Track, |
Common compression utility to remove 'redundant' Scale keys in a single track based on the provided delta threshold | |
| void | PackQuaternionToStream
(
TArray< uint8 >& ByteStream, |
Utility function to append a packed FQuat to a byte stream. | |
| void | PackVectorToStream
(
TArray< uint8 >& ByteStream, |
Utility function to append a packed FVector to a byte stream. | |
| void | PadByteStream
(
TArray< uint8 >& ByteStream, |
Pads a byte stream to force a particular alignment for the data to follow. | |
| void | PrecalculateShortestQuaternionRoutes
(
TArray< struct FRotationTrack >& RotationData |
Common compression utility to walk an array of rotation tracks and enforce that all adjacent rotation keys are represented by shortest-arc quaternion pairs. | |
| void | SeparateRawDataIntoTracks
(
const TArray< struct FRawAnimSequenceTrack >& RawAnimData, |
Common compression utility to populate individual rotation and translation track arrays from a set of raw animation tracks. | |
| void | UnalignedWriteToStream
(
TArray< uint8 >& ByteStream, |
Utility function to append data to a byte stream. | |
| void | UnalignedWriteToStream
(
TArray< uint8 >& ByteStream, |
Utility function to write data to a byte stream. |
Overridden from UAnimBoneCompressionCodec
| Type | Name | Description | |
|---|---|---|---|
| TUniquePtr< ICompressedAnimData > | Allocates the necessary anim data structure used for decompression. | ||
| void | ByteSwapIn
(
ICompressedAnimData& AnimData, |
Handles Byte-swapping incoming animation data from a MemoryReader | |
| void | ByteSwapOut
(
ICompressedAnimData& AnimData, |
Handles Byte-swapping outgoing animation data to an array of BYTEs | |
| bool | Compress
(
const FCompressibleAnimData& CompressibleAnimData, |
UAnimBoneCompressionCodec implementation | |
| void | DecompressBone
(
FAnimSequenceDecompressionContext& DecompContext, |
Decompress a single bone. | |
| void | DecompressPose
(
FAnimSequenceDecompressionContext& DecompContext, |
Decompresses all the specified bone tracks. | |
| void | PopulateDDCKey
(
const UE::Anim::Compression::FAnimDDCKeyArgs& KeyArgs, |
Called to generate a unique DDC key for this codec instance and input anim sequence and TargetPlatform A suitable key should be generated from: the InstanceGuid, a codec version, and all relevant properties that drive the behavior. |
Constants
| Name | Description |
|---|---|
| AnimationPadSentinel | Default animation padding value. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| void | PopulateDDCKeyArchive
(
FArchive& Ar |
PopulateDDCKeyArchive has been deprecated |