UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
OpenColorIOWrapper.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#if WITH_OCIO
6
7#include "CoreTypes.h"
10#include "Math/Vector.h"
11#include "Templates/PimplPtr.h"
12#include "Templates/UniquePtr.h"
13
15
16struct FImageView;
17enum TextureFilter : int;
18
19namespace OpenColorIOWrapper
20{
22 constexpr const TCHAR* GetWorkingColorSpaceName()
23 {
24 return TEXT("Working Color Space");
25 }
26
28 constexpr const TCHAR* GetShaderFunctionName()
29 {
30 return TEXT("OCIOConvert");
31 }
32
34 static constexpr uint32 Legacy3dEdgeLength = 65;
35
37 OPENCOLORIOWRAPPER_API const TCHAR* GetVersion();
38
41
44}
45
46
51{
52public:
53
56 {
58 // Add the working color space as ACES 2065-1 so that we can target it with an extra conversion from our config if it defines aces_interchange.
60 };
61
64
72
73 virtual ~FOpenColorIOWrapperConfig() = default;
74
77
80
83
86
89
92
95
97 OPENCOLORIOWRAPPER_API FString GetDisplayName(int32 Index) const;
98
100 OPENCOLORIOWRAPPER_API int32 GetNumViews(const TCHAR* InDisplayName) const;
101
104
107
110
113
116
118 OPENCOLORIOWRAPPER_API FString GetCacheID() const;
119
121 OPENCOLORIOWRAPPER_API FString GetDebugString() const;
122
123protected:
124
126
127 friend class FOpenColorIOWrapperProcessor;
129};
130
131/* Matches FTextureSourceColorSettings in Engine/Texture.h */
133{
136
139
142
145};
146
152{
153public:
158
160};
161
167{
168public:
169
174
188 );
189
205 bool bInverseDirection = false,
207 );
208
220 bool bInverseDirection = false,
222 );
223
231 );
232
234 OPENCOLORIOWRAPPER_API bool IsValid() const;
235
237 OPENCOLORIOWRAPPER_API FString GetCacheID() const;
238
245
248
251
258
259private:
260
262
264};
265
270{
271public:
272
281 bool bUseLegacy = false
282 );
283
285 OPENCOLORIOWRAPPER_API bool IsValid() const;
286
294 OPENCOLORIOWRAPPER_API bool GetShader(FString& OutShaderCacheID, FString& OutShaderCode) const;
295
298
310
312 OPENCOLORIOWRAPPER_API uint32 GetNumTextures() const;
313
327
329 OPENCOLORIOWRAPPER_API FString GetCacheID() const;
330
331private:
332
334
336};
337
338#endif // WITH_OCIO
#define TEXT(x)
Definition Platform.h:1272
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
TextureFilter
Definition TextureDefines.h:485
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition NameTypes.h:617
Definition UnrealString.h.inl:34
int
Definition TestServer.py:515
EColorSpace
Definition ColorManagementDefines.h:46
EEncoding
Definition ColorManagementDefines.h:20
EChromaticAdaptationMethod
Definition ColorManagementDefines.h:72
U16 Index
Definition radfft.cpp:71
Definition ImageCore.h:264
Definition Color.h:48
Definition Optional.h:131
Definition PimplPtr.h:50