summaryrefslogtreecommitdiffstats
path: root/tests/core/io/test_image.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
|
* Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* Fix Image CowData crash when baking large lightmapsHugo Locurcio2024-07-191-6/+6
| | | | | | | | | | | This switches to 64-bit integers in select locations of the Image class, so that image resolutions of 16384×16384 (used by lightmap texture arrays) can be used properly. Values that are larger should also work. VRAM compression is also supported, although most VRAM-compressed formats are limited to individual slices of 16384×16384. WebP is limited to 16383×16383 due to format limitations.
* [Tests] Fix various unit tests on minimal buildsA Thousand Ships2024-07-181-0/+10
|
* Use subfolder for temporary test fileskobewi2024-06-051-2/+2
|
* Fix some additional errors with 3D disabledA Thousand Ships2024-02-231-1/+4
| | | | | | | | | * Disabled 2D navigation tests as they do not work * Disabled tests for primitive meshes * Unbound some `Mesh` methods that rely on 3D resources * Unexposed `World3D` as it depends on physics (and isn't useful) * Unexposed some `Viewport` vrs related properties that had unexposed methods
* Fix running tests in template buildsA Thousand Ships2024-02-221-0/+3
|
* Added error to catch conversion on invalid imagersburke42023-12-101-0/+23
|
* Revert "Implement loading DDS textures at run-time"clayjohn2023-08-291-10/+0
| | | | This reverts commit 34ab1c8a36e61b386c210fb908b9ebfa86513149.
* SCons: Disable C++ exception handlingRémi Verschelde2023-08-161-4/+2
| | | | | | | | | | | | | | | | | | | | Upon investigating the extremely slow MSVC build times in #80513, I noticed that while Godot policy is to never use exceptions, we weren't enforcing it with compiler flags, and thus still included exception handling code and stack unwinding. This is wasteful on multiple aspects: - Binary size: Around 20% binary size reduction with exceptions disabled for both MSVC and GCC binaries. - Compile time: * More than 50% build time reduction with MSVC. * 10% to 25% build time reduction with GCC + LTO. - Performance: Possibly, needs to be benchmarked. Since users may want to re-enable exceptions in their own thirdparty code or the libraries they compile with Godot, this behavior can be toggled with the `disable_exceptions` SCons option, which defaults to true.
* Implement loading DDS textures at run-timeMarcin Nowak2023-07-311-0/+10
|
* Merge pull request #74238 from bitsawer/fix_image_convertYuri Sizov2023-07-121-0/+80
|\ | | | | | | Fix `Image.convert()` overwriting custom mipmaps
| * Fix Image.convert() overwriting custom mipmapsbitsawer2023-03-021-0/+80
| |
* | Grayscale fix for Image::premultiply_alpha() and Image::convert(FORMAT_L8) ↵Kory Postma2023-05-271-0/+21
|/ | | | while using REC.709, with added test case
* Fail instead of segfaulting in IO testsmyaaaaaaaaa2023-01-311-0/+5
|
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Rename Image's `get_rect` to `get_region`Micky2022-11-011-1/+1
| | | | Also renames its parameter to from "rect" to "region".
* Change all WEBP strings and comments to WebPDeeJayLSP2022-10-281-2/+2
|
* Rename String `plus_file` to `path_join`Aaron Franke2022-08-291-2/+2
|
* Code quality: Fix header guards consistencyRémi Verschelde2022-07-251-0/+1
| | | | | Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
* Use integer types in Image and ImageTexture methodsFireForge2022-07-181-19/+19
| | | | | | | | | | | - Image.blit_rect() - Image.blit_rect_mask() - Image.blend_rect() - Image.blend_rect_mask() - Image.fill_rect() - Image.get_used_rect() - Image.get_rect() - ImageTexture.set_size_override()
* Make FileAccess and DirAccess classes reference counted.bruvzg2022-04-111-5/+5
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Add Image::fill_rect methodkleonc2021-11-231-3/+47
|
* Move and organize tests into subfoldersAaron Franke2021-11-071-0/+259