Commit Graph

93 Commits

Author SHA1 Message Date
marc audy
19e84555b3 Silence PVS warnings
[CL 30653812 by marc audy in ue5-main branch]
2024-01-17 01:34:02 -05:00
joe kirchoff
bc8e4bd625 Use module reference for AtomicQueue
#rnx

[CL 30443352 by joe kirchoff in ue5-main branch]
2023-12-22 14:29:08 -05:00
charles bloom
3a4e13401f ImageCore ScaleChannelsSoMinMaxIsInZeroToOne replicates the behavior of the RenderTarget UNorm ReadPixels modifier
scales image outside [0,1] so that it is inside
uses ImageParallelFor

#rnx

[CL 30130491 by charles bloom in ue5-main branch]
2023-12-05 15:01:49 -05:00
charles bloom
f0b2130e97 Replace use of TAsyncAlphaWrite with a simple call to SetAlphaOpaque
Remove format switches from client code so support of all formats is automatic
Use existing ImageCore SetAlphaOpaque
template header functions are now unused

#rnx
#rb fabian.giesen

[CL 30102919 by charles bloom in ue5-main branch]
2023-12-04 19:21:33 -05:00
charles bloom
b066d4c0b3 TextureRenderTarget clean up Create/Update not supporting all formats
use generic routines so all-format support is automatic
#rb fabian.giesen

[CL 30070416 by charles bloom in ue5-main branch]
2023-12-03 10:39:38 -05:00
charles bloom
119e20200d Texture Source resizing followups
ResizeImage support wrap/clamp edge mode on X and Y
ResizeImage fix Pow22 source is SRGB dest
TextureSource resizer detect cases that are poorly handled by TextureCompressorModule and use ResizeImage instead (eg. latlong, stretch)

#rb fabian.giesen

[CL 29923273 by charles bloom in ue5-main branch]
2023-11-24 14:55:47 -05:00
charles bloom
a28110c057 ImageCore ResizeImage support resizing slices if slices count is the same
#rb fabian.giesen
#rnx

[CL 29247303 by charles bloom in ue5-main branch]
2023-10-30 16:16:10 -04:00
charles bloom
d3515bfe79 ImageCore::ResizeImage good quality and fast resizer using stb_image_resize2
old ResizeTo should be avoided except to preserve legacy behavior

#jira UE-163527
#rb dan.thompson,jeff.roberts
#rnx

[CL 29243470 by charles bloom in ue5-main branch]
2023-10-30 15:10:33 -04:00
dan thompson
bb9bc58b72 CPU accessible textures
#rb fabian.giesen
#rb charles.bloom

[CL 26655002 by dan thompson in ue5-main branch]
2023-07-27 16:46:23 -04:00
henrik karlsson
5db685f97d [Engine]
* Moved dllexport from type to methods/staticvar in all Engine runtime code. This improves compile times, memory and performance in dll builds

[CL 26082269 by henrik karlsson in ue5-main branch]
2023-06-17 18:13:06 -04:00
charles bloom
8986fb9d58 ImageParallelFor ComputeImageLinearAverage remove unnecessary CritSec
#rb none
#rnx

[CL 26075053 by charles bloom in ue5-main branch]
2023-06-16 18:59:30 -04:00
charles bloom
5e04696773 ImageParallelFor for easy parallel work on pixels
ImageParallelProcessLinearPixels
ComputeImageLinearAverage
Make Bokeh computation use the new routines as a test

#rb fabian.geisen
#rnx

[CL 26073510 by charles bloom in ue5-main branch]
2023-06-16 18:12:53 -04:00
charles bloom
0d75f73521 ImageCore.build.cs clarifying comment
#rb none
#rnx

[CL 25798720 by charles bloom in ue5-main branch]
2023-06-05 14:21:22 -04:00
charles bloom
152edc496d ImageCoreUtils::IsImageImportPossible can be checked before image import instead of after
#rb none
#rnx

[CL 25792081 by charles bloom in ue5-main branch]
2023-06-05 10:47:00 -04:00
kirill zorin
b6ee3a6c64 Fix UE_LOG callsites that have format string-related UB
#rb trivial
#preflight 647107780a6634dbb236a0a6

[CL 25651638 by kirill zorin in ue5-main branch]
2023-05-26 15:52:39 -04:00
dan thompson
5f360661f3 Move GuardedInt.h to Core as it's about to be needed elsewhere.
#rb devin.doucette
#preflight 6467a9a52c0a5da0dcd0afa9

[CL 25553319 by dan thompson in ue5-main branch]
2023-05-19 17:51:45 -04:00
charles bloom
961fd905ef ImageCore: GetOnePixelLinear helper cleanup
GetOnePixelLinear should take EGammaSpace not bSRGB
GetOnePixelLinear helpers on the FImage/FImageView classes

#preflight none
#rb dan.thompson
#rnx

[CL 25175425 by charles bloom in ue5-main branch]
2023-04-24 23:19:17 -04:00
charles bloom
ea4ac5a4fb nop comments only about preferring FImage usage
#preflight none
#rb none
#rnx

[CL 25149333 by charles bloom in ue5-main branch]
2023-04-21 13:58:13 -04:00
charles bloom
6010bd0780 Use 2xU16 instead of 4xU16 for BC4/5 texture image format in TextureFormatOodle
#preflight https://horde.devtools.epicgames.com/job/64408bad73470c177cbf749a
#rnx
#rb fabian.giesen

[CL 25129718 by charles bloom in ue5-main branch]
2023-04-20 12:32:12 -04:00
charles bloom
2b781f1c8c TextureCompressor better core utilization from improved ParallelFor usage
also detach the MipChain free to a task

#rb fabian.giesen
#preflight none

[CL 25121092 by charles bloom in ue5-main branch]
2023-04-19 20:47:37 -04:00
charles bloom
420b6f6adb TextureCompressorModule : run hashing for metadata on an async task
change FImage passed to TextureFormat to be const, it must not be changed becausing hashing is running threaded
remove early frees of intermediate image; this increases peak memory use

#preflight https://horde.devtools.epicgames.com/job/643ff4a3090323f9a3f7695e
#rb dan.thompson

[CL 25116608 by charles bloom in ue5-main branch]
2023-04-19 17:29:39 -04:00
charles bloom
add25b8c89 ImageCore parallel DetectAlpha
#rb dan.thompson
#jira none
#preflight none

[CL 24997866 by charles bloom in ue5-main branch]
2023-04-11 16:47:49 -04:00
charles bloom
aa956df38a fix many texture and image int64 issues
can now successfully import over 32K textures to VT

#preflight https://horde.devtools.epicgames.com/job/6435ab7900398d6f88e8e808
#rb fabian.giesen
#jira none

[CL 24996140 by charles bloom in ue5-main branch]
2023-04-11 15:18:46 -04:00
charles bloom
0dba30cf83 deprecate DDSLoader ; use DDSFile instead
#preflight https://horde.devtools.epicgames.com/job/642e1f81da7f95837018caaf
#rb dan.thompson

[CL 24956736 by charles bloom in ue5-main branch]
2023-04-06 17:01:22 -04:00
charles bloom
197dfb19e6 nop just comments, clean up some todo Oodle marks
#rb none
#preflight none

[CL 24950141 by charles bloom in ue5-main branch]
2023-04-06 14:21:41 -04:00