UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
AnimCompressionDerivedDataPublic.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#if WITH_EDITOR
6
8#include "TickableEditorObject.h"
9#include "UObject/GCObject.h"
10
11class UAnimSequence;
12class FDerivedDataAnimationCompression;
14
15UE_DEPRECATED(5.2, "GAsyncCompressedAnimationsTracker has been deprecated")
17
18// Animation data that is currently being compressed
20{
22 : Sequence(InSequence)
25 , CacheKey(InCacheKey)
26 , AsyncHandle(InAsyncHandle)
28 {}
29 UAnimSequence* Sequence;
32 FString CacheKey;
33 uint32 AsyncHandle;
35};
36
37// An animation waiting to be compressed
39{
40 FQueuedAsyncCompressionWork(FDerivedDataAnimationCompression& InCompressor, UAnimSequence* InAnim, const bool bInPerformFrameStripping)
42 , Anim(InAnim)
44 {}
45
46 FDerivedDataAnimationCompression& Compressor;
47 UAnimSequence* Anim;
48 const bool bPerformFrameStripping;
49};
50
51// Manager for Async anim compression.
52// Maintains active compressions
53// tracks memory usage of async compression
54// Gives API for blocking on compression
55class UE_DEPRECATED(5.2, "FAsyncCompressedAnimationsManagement has been deprecated") FAsyncCompressedAnimationsManagement;
57{
58public:
60 {
62 return Management;
63 }
64
65 // Request an async compression of an animation, may not actually run async if memory usage is already high
66 // Returns true if an async compression task was allowed.
67 UE_DEPRECATED(5.2, "RequestAsyncCompression has been deprecated")
68 bool RequestAsyncCompression(FDerivedDataAnimationCompression& Compressor, UAnimSequence* Anim, const bool bPerformFrameStripping, TArray<uint8>& OutData) { return false; }
69
70 // Returns the number of remaining compression jobs (used for UI)
71 UE_DEPRECATED(5.2, "GetNumRemainingJobs has been deprecated")
72 int32 GetNumRemainingJobs() const { return 0; }
73
74 // Blocks on compression for the supplied animation. Returns false if there was no compression job to wait on.
75 UE_DEPRECATED(5.2, "WaitOnExistingCompression has been deprecated")
76 bool WaitOnExistingCompression(UAnimSequence* Anim, const bool bWantResults) { return false; }
77};
78
79#endif
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
FPlatformTypes::uint64 uint64
A 64-bit unsigned integer.
Definition Platform.h:1117
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
const bool
Definition NetworkReplayStreaming.h:178
uint8_t uint8
Definition binka_ue_file_header.h:8
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Array.h:670
Definition AnimSequence.h:203
FORCEINLINE T * Get(const FObjectPtr &ObjectPtr)
Definition ObjectPtr.h:426