summaryrefslogtreecommitdiffstats
path: root/core/io/image.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@fd4c29a189e53a1e085df5b9b9a05cac9351b3efSpartan3222024-11-191-1/+1
|\
| * Support uid:// in more placeskobewi2024-11-161-1/+1
| |
* | Merge commit godotengine/godot@6c05ec3d6732cac44cf85c91db7d3fd1075bcb23Spartan3222024-11-151-6/+8
|\|
| * Resource UID fixes and improvementskobewi2024-11-141-6/+8
| |
* | Merge commit godotengine/godot@cb411fa960f0b7fdbd97dcdb4c90f9346360ee0eSpartan3222024-11-121-100/+120
|\|
| * Clean up ImageBlueCube33102024-11-011-100/+120
| |
* | Merge commit godotengine/godot@c6c464cf9ae56e8b68620af65125dd980d0e8122Spartan3222024-11-021-26/+26
|\|
| * [Core] Improve error messages with `vformat`A Thousand Ships2024-10-301-26/+26
| |
* | Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
| |
* | Merge commit godotengine/godot@af77100e394dcaca609b15bef815ed17475e51edSpartan3222024-10-151-1/+1
|\|
| * Betsy: Implement BC4 compressionBlueCube33102024-09-221-1/+1
| |
* | 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>
* | Rebrand Godot to RedotRandolph W. Aarseth II2024-10-111-4/+4
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add Linux Editor tests workflow matrix Add Windows Editor w/ Mono workflow matrix Add Generate Glue Code job to Windows workflow Add Build GodotSharp job to Windows workflow Add godot compatibility version references Add Godot author info Add Godot version compatibility info Add Godot donor info Add Godot authors and donors to editor_about.cpp 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>
* Merge pull request #97059 from Gaktan/fix_weird_msvc_compilation_errorRémi Verschelde2024-09-161-6/+4
|\ | | | | | | Fix weird MSVC compilation error
| * Fix weird MSVC compilation errorGaktan2024-09-151-6/+4
| | | | | | | | For some reason, MSVC doesn't appreciate uint8 math with enum constants
* | Betsy: Add caching and BC1 compression supportBlueCube33102024-09-111-0/+14
|/
* Cleanup of raw `nullptr` checks with `Ref`A Thousand Ships2024-08-311-1/+1
| | | | Using `is_valid/null` over checks with `nullptr` or `ERR_FAIL_NULL` etc.
* Image: Add a method for detecting signed valuesBlueCube33102024-08-271-0/+27
|
* Merge pull request #91535 from BlueCube3310/betsy-bc6hRémi Verschelde2024-08-211-0/+23
|\ | | | | Add Betsy to speed up BC6 compression
| * Add Betsy to speed up BC6 compressionBlueCube33102024-08-181-0/+23
| |
* | Merge pull request #92496 from clayjohn/HDR-2D-sRGBRémi Verschelde2024-08-191-0/+32
|\ \ | |/ |/| | | Ensure MovieWriter output is in gamma space when using HDR 2D
| * Ensure MovieWriter output is in gamma space when using HDR 2Dclayjohn2024-05-281-0/+32
| |
* | Merge pull request #92291 from BlueCube3310/image-convert-optimizedRémi Verschelde2024-08-161-1/+105
|\ \ | | | | | | | | | Optimize image conversion for half and float formats.
| * | Optimize half and float image conversionBlueCube33102024-05-241-1/+105
| |/
* | Support 64-bit image sizes for VRAM compressionBlueCube33102024-07-211-1/+1
| |
* | Fix Image CowData crash when baking large lightmapsHugo Locurcio2024-07-191-57/+39
| | | | | | | | | | | | | | | | | | | | | | 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.
* | [TextServer, GDExtension] Fix building text servers as GDExtension, expose ↵bruvzg2024-06-121-1/+5
|/ | | | new/changed low-level methods to GDExtension API.
* Merge pull request #88763 from BlueCube3310/image-is-compressed-staticRémi Verschelde2024-05-021-3/+7
|\ | | | | | | Image: Add static `is_format_compressed` function.
| * Image: Add static `is_format_compressed` function.BlueCube33102024-02-281-3/+7
| |
* | Remove a redundant `MAX` comparison within a loop in `compute_image_metrics`Bo Thompson2024-03-281-1/+1
| |
* | Enforce template syntax `typename` over `class`Thaddeus Crews2024-03-071-5/+5
|/
* Merge pull request #87971 from bruvzg/font_no_image_dupRémi Verschelde2024-02-151-0/+12
|\ | | | | | | [TextServer / Font] Do not duplicate images to prevent unnecessary embedding.
| * [TextServer / Font] Do not duplicate images to prevent unnecessary embedding.bruvzg2024-02-051-0/+12
| |
* | Merge pull request #87628 from YuriSizov/assets-bigger-better-errorsRémi Verschelde2024-02-091-6/+6
|\ \ | | | | | | | | | Improve error reporting in the asset library and in related types
| * | Improve error reporting in the asset library and in related typesYuri Sizov2024-01-261-6/+6
| |/ | | | | | | | | | | | | | | This also makes errors related to asset image loading verbose-only, because, frankly, users can't do much about those errors. Spamming them with error messages about some assets on the frontend being broken is pointless.
* / Replace error checks against `size` with `is_empty`A Thousand Ships2024-02-091-9/+9
|/
* Fix lossless formats in PortableCompressedTexture2Dnklbdev2024-01-051-0/+1
| | | | | | Update scene/resources/portable_compressed_texture.cpp Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* Added error to catch conversion on invalid imagersburke42023-12-101-0/+1
|
* Fix uninitialized variable in Image::fix_alpha_edges()K. S. Ernest (iFire) Lee2023-10-291-1/+1
| | | | `core\io\image.cpp:3776:33: error: 'closest_color[0]' may be used uninitialized [-Werror=maybe-uninitialized]`
* Fix import crashHein-Pieter van Braam2023-09-261-10/+10
| | | | | | | | | | | | I was trying to import a solid colored metal/roughness texture that worked in Godot 4.1.1 but failed to load on master. I eventually tracked it down to this: to_x and to_y can be 0, which then leads them to be -1 later, which then causes ofs to overflow. Some of these cases were hidden because of the use of Vector so we were just happily scribbling in ram elsewhere. Switched to LocalVector as it made debugging a bit easier.
* Expose and document Image.get_mipmap_count()bitsawer2023-09-191-0/+1
|
* [Core] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicableA Thousand Ships2023-09-111-8/+8
|
* Revert "Implement loading DDS textures at run-time"clayjohn2023-08-291-10/+0
| | | | This reverts commit 34ab1c8a36e61b386c210fb908b9ebfa86513149.
* Add support for KTX & KTX2 image formatacazuc2023-08-191-0/+10
| | | | Add support glTF KHR_texture_basisu extension
* Implement loading DDS textures at run-timeMarcin Nowak2023-07-311-0/+10
|
* Merge pull request #74238 from bitsawer/fix_image_convertYuri Sizov2023-07-121-108/+120
|\ | | | | | | Fix `Image.convert()` overwriting custom mipmaps
| * Fix Image.convert() overwriting custom mipmapsbitsawer2023-03-021-108/+120
| |
* | Added Image's `load_svg_from_(buffer|string)`Felipe Augusto Marques2023-06-231-0/+26
| | | | | | | | No core dependency to the svg module.
* | Grayscale fix for Image::premultiply_alpha() and Image::convert(FORMAT_L8) ↵Kory Postma2023-05-271-6/+7
| | | | | | | | while using REC.709, with added test case
* | Expose more compression formats in Image and fix compress checkNinni Pipping2023-04-131-1/+3
|/ | | | Check for compressing ASTC checked if the function for BPTC was present