Commit Graph

155 Commits

Author SHA1 Message Date
charles bloom
49896082b2 TextureCompressorModule use ResizeImage for MaxTextureResolution so we can resize directly from source to dest size
bump DDC key for change in output of MaxTextureResolution affected textures
Also free source images and temporaries as they are consumed and no longer needed to reduce peak mem use
In the nop case, move the image instead of copying
#rb Dan.Thompson
#jira UE-204167

[CL 31470270 by charles bloom in ue5-main branch]
2024-02-14 09:06:31 -05:00
steve robb
f029468598 Fixed up a lot of bool-taking container resize functions to take EAllowShrinking instead.
[CL 30729174 by steve robb in ue5-main branch]
2024-01-19 16:41:35 -05:00
dan thompson
e34bd3836f Route png compress through user memory pointers.
#rb fabian.giesen

[CL 29755772 by dan thompson in ue5-main branch]
2023-11-15 14:49:16 -05:00
jon olick
2a17446e02 UE Jpeg: name change
#p4v-preflight-copy 29191952
#rb dan.thompson

[CL 29237577 by jon olick in ue5-main branch]
2023-10-30 12:46:08 -04:00
charles bloom
7b88e216b6 ImageWrapperBase : fix use of int should be int64
#rb charles.bloom
#rnx

[CL 29237091 by charles bloom in ue5-main branch]
2023-10-30 12:28:47 -04:00
jon olick
c166c4379d Oodle JPEG: FASTDCT flag which matches libjpegturbo's FASTDCT flag. Enabled for now so output matches.
#p4v-preflight-copy 29024880

[CL 29027278 by jon olick in ue5-main branch]
2023-10-23 23:15:16 -04:00
charles bloom
6c53b91dc6 fix ImageWrapperHelper identifying jpeg as grayscale
ImageWrapperHelper is deprecated, do not use

#rb fabian.giesen
#rnx

[CL 28727914 by charles bloom in ue5-main branch]
2023-10-12 16:43:38 -04:00
jon olick
fdeed47cb2 Oodle JPEG format support. Smaller UASSETs and much more hardened security focus by using Oodle as a backend.
#jira

[CL 27842762 by jon olick in ue5-main branch]
2023-09-13 14:47:22 -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
chris tchou
4c181f3489 Fix potential overflow security issue importing landscape PNG files
#rb don.boogert, jonathan.bard
#jira UE-172842, UE-172835

[CL 25833042 by chris tchou in ue5-main branch]
2023-06-06 19:46:33 -04:00
charles bloom
833b42c326 JpegImageWrapper : remove unnecessary serializing critsec; libjpeg-turbo is now thread safe
fix error state was being retained in tjhandles, make new ones for each encode
fix InterchangeJPGTranslator using deprecated ImageWrapper code style

#rb dan.thompson,fabian.giesen
#rnx

[CL 25798648 by charles bloom in ue5-main branch]
2023-06-05 14:19:07 -04:00
charles bloom
e1fab21a75 IcnsImageWrapper fix Mac non-unity compile
#rb none
#rnx

[CL 25794186 by charles bloom in ue5-main branch]
2023-06-05 12:04:04 -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
charles bloom
9cd4768d6a [Backout] - CL25773063
[FYI] charles.bloom
Original CL Desc
-----------------------------------------------------------------
ExrImageWrapper : corrupt import should not be fatal, just an error
use runtime_exception for throws
fix return value of read function, though it seems not to be used

#preflight https://horde.devtools.epicgames.com/job/647a465ce75a226391b559bb
#rb none
#rnx

[CL 25782083 by charles bloom in ue5-main branch]
2023-06-03 12:43:06 -04:00
charles bloom
ec364946ec TiffImageWrapper : fix missing Reset function so state carried over in multiple uses of Wrapper
#preflight none
#rb none
#rnx

[CL 25775444 by charles bloom in ue5-main branch]
2023-06-02 18:04:40 -04:00
charles bloom
928b53aec3 Tga image importer cleanups and robustination
#preflight yes
#rb fabian.giesen
#rnx

[CL 25774569 by charles bloom in ue5-main branch]
2023-06-02 17:28:34 -04:00
charles bloom
4fd634eb54 ExrImageWrapper : corrupt import should not be fatal, just an error
use runtime_exception for throws
fix return value of read function, though it seems not to be used

#preflight https://horde.devtools.epicgames.com/job/647a465ce75a226391b559bb
#rb none
#rnx

[CL 25773157 by charles bloom in ue5-main branch]
2023-06-02 16:45:31 -04:00
charles bloom
225939ffcf ImageWrapperModule StressDecompressImage for automated corrupt image import testing
#preflight https://horde.devtools.epicgames.com/job/647a3c2f5e71ee4db65b19f3
#rb none
#rnx

[CL 25771464 by charles bloom in ue5-main branch]
2023-06-02 15:45:17 -04:00
charles bloom
dde5ea7405 fix image import crashes in Ico and Tga
#preflight https://horde.devtools.epicgames.com/job/6478cd4fe319748a834211e4
#rb fabian.giesen
#jira UE-187448,UE-187445
#rnx

[CL 25763310 by charles bloom in ue5-main branch]
2023-06-02 11:50:02 -04:00
dan thompson
824ce41544 EXR invalid file protection - now using std::exception instead of std::overflow_error to prevent weird linker issues.
#rb fabian.giesen
#jira UE-187447
#preflight 647911df8417d792592a2b01

[CL 25748215 by dan thompson in ue5-main branch]
2023-06-01 19:28:11 -04:00
joe kirchoff
e028621825 [Backout] - CL25715182
[FYI] Dan.Thompson
Original CL Desc
-----------------------------------------------------------------
EXR invalid file protection.
#rb fabian.giesen
#jira UE-187447
#preflight 6477b63d7f02573726aa9885

[CL 25737430 by joe kirchoff in ue5-main branch]
2023-06-01 15:42:37 -04:00
charles bloom
678329a3b3 fix crash in TiffImageWrapper, Tasks were still running after "this" was deleted
#jira UE-187438
#preflight https://horde.devtools.epicgames.com/job/6477ef670d55081f54b90465
#rb fabian.giesen
#rnx

[CL 25725378 by charles bloom in ue5-main branch]
2023-06-01 10:00:01 -04:00
dan thompson
87e71ce499 EXR invalid file protection.
#rb fabian.giesen
#jira UE-187447
#preflight 6477b63d7f02573726aa9885

[CL 25715204 by dan thompson in ue5-main branch]
2023-05-31 17:26:47 -04:00
dan thompson
2e2dcf14d9 Security updates for PngImageWrapper
#jira UE-172869
#rb fabian.giesen
#preflight 646bcca1b82cb3fe6771b1b6

[CL 25572214 by dan thompson in ue5-main branch]
2023-05-22 19:17:13 -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