UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AEFPerTrackCompressionCodec Class Reference

#include <AnimEncoding_PerTrackCompression.h>

+ Inheritance diagram for AEFPerTrackCompressionCodec:

Public Member Functions

virtual void ByteSwapIn (FUECompressedAnimData &CompressedData, FMemoryReader &MemoryReader) override
 
virtual void ByteSwapOut (FUECompressedAnimData &CompressedData, FMemoryWriter &MemoryWriter) override
 
virtual void GetPoseRotations (TArrayView< FTransform > &Atoms, const BoneTrackArray &DesiredPairs, FAnimSequenceDecompressionContext &DecompContext) override
 
virtual void GetPoseTranslations (TArrayView< FTransform > &Atoms, const BoneTrackArray &DesiredPairs, FAnimSequenceDecompressionContext &DecompContext) override
 
virtual void GetPoseScales (TArrayView< FTransform > &Atoms, const BoneTrackArray &DesiredPairs, FAnimSequenceDecompressionContext &DecompContext) override
 

Static Protected Member Functions

template<class TArchive >
static void ByteSwapOneTrack (FUECompressedAnimData &CompressedData, TArchive &MemoryStream, int32 BufferStart, int32 Offset)
 
static void PreservePadding (uint8 *&TrackData, FMemoryArchive &MemoryStream)
 
static void GetBoneAtomRotation (FTransform &OutAtom, FAnimSequenceDecompressionContext &DecompContext, int32 TrackIndex)
 
static void GetBoneAtomTranslation (FTransform &OutAtom, FAnimSequenceDecompressionContext &DecompContext, int32 TrackIndex)
 
static void GetBoneAtomScale (FTransform &OutAtom, FAnimSequenceDecompressionContext &DecompContext, int32 TrackIndex)
 
- Static Protected Member Functions inherited from AnimEncoding
static float TimeToIndex (float SequenceLength, float RelativePos, int32 NumKeys, EAnimInterpolationType Interpolation, int32 &PosIndex0Out, int32 &PosIndex1Out)
 
static float TimeToIndex (EAnimInterpolationType Interpolation, int32 NumberOfFrames, const uint8 *FrameTable, float RelativePos, int32 NumKeys, int32 &PosIndex0Out, int32 &PosIndex1Out)
 

Friends

class UAnimCompress_PerTrackCompression
 

Detailed Description

Decompression codec for the per-track compressor.

Member Function Documentation

◆ ByteSwapIn()

void AEFPerTrackCompressionCodec::ByteSwapIn ( FUECompressedAnimData CompressedData,
FMemoryReader MemoryReader 
)
overridevirtual

Handles Byte-swapping incoming animation data from a MemoryReader

Parameters
CompressedDataThe compressed animation data being operated on.
MemoryReaderThe MemoryReader object to read from.
SourceArVersionThe version of the archive that the data is coming from.

Handles Byte-swapping incoming animation data from a MemoryReader

Parameters
CompressedDataThe compressed animation data being operated on.
MemoryReaderThe MemoryReader object to read from.

◆ ByteSwapOneTrack()

template<class TArchive >
template void AEFPerTrackCompressionCodec::ByteSwapOneTrack ( FUECompressedAnimData CompressedData,
TArchive MemoryStream,
int32  BufferStart,
int32  Offset 
)
staticprotected

Handles Byte-swapping a single track of animation data from a MemoryReader or to a MemoryWriter

Parameters
CompressedDataThe compressed animation data being operated on.
MemoryStreamThe MemoryReader or MemoryWriter object to read from/write to.
OffsetThe starting offset into the compressed byte stream for this track (can be INDEX_NONE to indicate an identity track)

◆ ByteSwapOut()

void AEFPerTrackCompressionCodec::ByteSwapOut ( FUECompressedAnimData CompressedData,
FMemoryWriter MemoryWriter 
)
overridevirtual

Handles Byte-swapping outgoing animation data to an array of BYTEs

Parameters
CompressedDataThe compressed animation data being operated on.
SerializedDataThe output buffer.
ForceByteSwappingtrue is byte swapping is not optional.

◆ GetBoneAtomRotation()

void AEFPerTrackCompressionCodec::GetBoneAtomRotation ( FTransform OutAtom,
FAnimSequenceDecompressionContext DecompContext,
int32  TrackIndex 
)
staticprotected

Decompress the Rotation component of a BoneAtom

Parameters
OutAtomThe FTransform to fill in.
DecompContextThe decompression context to use.
TrackIndexThe index of the track desired in the Animation Sequence.

◆ GetBoneAtomScale()

void AEFPerTrackCompressionCodec::GetBoneAtomScale ( FTransform OutAtom,
FAnimSequenceDecompressionContext DecompContext,
int32  TrackIndex 
)
staticprotected

Decompress the Scale component of a BoneAtom

Parameters
OutAtomThe FTransform to fill in.
DecompContextThe decompression context to use.
TrackIndexThe index of the track desired in the Animation Sequence.

◆ GetBoneAtomTranslation()

void AEFPerTrackCompressionCodec::GetBoneAtomTranslation ( FTransform OutAtom,
FAnimSequenceDecompressionContext DecompContext,
int32  TrackIndex 
)
staticprotected

Decompress the Translation component of a BoneAtom

Parameters
OutAtomThe FTransform to fill in.
DecompContextThe decompression context to use.
TrackIndexThe index of the track desired in the Animation Sequence.

◆ GetPoseRotations()

virtual void AEFPerTrackCompressionCodec::GetPoseRotations ( TArrayView< FTransform > &  Atoms,
const BoneTrackArray DesiredPairs,
FAnimSequenceDecompressionContext DecompContext 
)
overridevirtual

Decompress all requested rotation components from an Animation Sequence

Parameters
AtomsThe FTransform array to fill in.
DesiredPairsArray of requested bone information
DecompContextThe decompression context to use.

◆ GetPoseScales()

virtual void AEFPerTrackCompressionCodec::GetPoseScales ( TArrayView< FTransform > &  Atoms,
const BoneTrackArray DesiredPairs,
FAnimSequenceDecompressionContext DecompContext 
)
overridevirtual

Decompress all requested Scale components from an Animation Sequence

Parameters
AtomsThe FTransform array to fill in.
DesiredPairsArray of requested bone information
DecompContextThe decompression context to use.

◆ GetPoseTranslations()

virtual void AEFPerTrackCompressionCodec::GetPoseTranslations ( TArrayView< FTransform > &  Atoms,
const BoneTrackArray DesiredPairs,
FAnimSequenceDecompressionContext DecompContext 
)
overridevirtual

Decompress all requested translation components from an Animation Sequence

Parameters
AtomsThe FTransform array to fill in.
DesiredPairsArray of requested bone information
DecompContextThe decompression context to use.

◆ PreservePadding()

void AEFPerTrackCompressionCodec::PreservePadding ( uint8 *&  TrackData,
FMemoryArchive MemoryStream 
)
staticprotected

Preserves 4 byte alignment within a stream

Parameters
TrackData[inout] The current data offset (will be returned four byte aligned from the start of the compressed byte stream)
MemoryStreamThe MemoryReader or MemoryWriter object to read from/write to.

Friends And Related Symbol Documentation

◆ UAnimCompress_PerTrackCompression


The documentation for this class was generated from the following files: