Commit graph

20 commits

Author SHA1 Message Date
Guus Waals
7c75487edd
core: fix missing include for span (#43)
Some checks failed
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Has been cancelled
Build & Test (Arch) / Arch: Build and Test (clang) (push) Has been cancelled
Build & Test / nix (hyprgraphics) (push) Has been cancelled
Build & Test / nix (hyprgraphics-with-tests) (push) Has been cancelled
2026-02-08 00:50:07 +00:00
Tom Englund
13c536659d
egl: add egl formats and helpers (#42)
Some checks failed
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Has been cancelled
Build & Test (Arch) / Arch: Build and Test (clang) (push) Has been cancelled
Build & Test / nix (hyprgraphics) (push) Has been cancelled
Build & Test / nix (hyprgraphics-with-tests) (push) Has been cancelled
* egl: add egl formats and helpers

add egl formats and helpers in Hyprgraphics::Egl
add lidbrm requirement for drm_fourcc and xf86drm
add gles3 requirement.

* egl: add pixelsPerBlock and minStride

add two helpers, pixelsPerBlock and minStride

* Nix,CI: add opengl

---------

Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
2026-01-24 19:47:03 +00:00
Sami Ansari
583331e065
feat: add isImageFile() static utility method (#41)
Some checks failed
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Has been cancelled
Build & Test (Arch) / Arch: Build and Test (clang) (push) Has been cancelled
Build & Test / nix (hyprgraphics) (push) Has been cancelled
Build & Test / nix (hyprgraphics-with-tests) (push) Has been cancelled
* feat: add isImageFile() static utility method

Adds a static isImageFile() method to CImage that validates if a file
path points to a loadable image by attempting to load it. Returns true
only if the image loads successfully. Memory is freed immediately after
the check via scope block.

* image: optimize isImageFile to check header only

Use formatFromFile() which reads only the file header via libmagic
instead of loading and decoding the entire image.
2026-01-12 18:27:47 +01:00
Hiroki Tagato
f114ea3d97
core: add missing #include <span> (#40)
Some checks failed
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Has been cancelled
Build & Test (Arch) / Arch: Build and Test (clang) (push) Has been cancelled
Build & Test / nix (hyprgraphics) (push) Has been cancelled
Build & Test / nix (hyprgraphics-with-tests) (push) Has been cancelled
Without it, build fails with the following error: error: no template
named 'span' in namespace 'std'
2026-01-05 12:02:58 +01:00
6cfc891808
resource/image: add byte stream 2025-12-28 18:53:12 +01:00
8a860f2949
image: cleanup format detection 2025-12-28 15:29:58 +01:00
1fb5bfbd62
resource/AsyncResource: add await() for resources
Some checks failed
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Has been cancelled
Build & Test (Arch) / Arch: Build and Test (clang) (push) Has been cancelled
Build & Test / nix (hyprgraphics) (push) Has been cancelled
Build & Test / nix (hyprgraphics-with-tests) (push) Has been cancelled
2025-11-18 17:43:36 +00:00
Felix Salcher
50fb9f0692
resource/image: add buffer option to image resource (#39)
Some checks failed
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Has been cancelled
Build & Test (Arch) / Arch: Build and Test (clang) (push) Has been cancelled
Build & Test / nix (hyprgraphics) (push) Has been cancelled
Build & Test / nix (hyprgraphics-with-tests) (push) Has been cancelled
* add buffer option to image resource

There were also some changes made to the types of the span. The content
is now always a const uint8_t, as if shouldn't be mutable. We can also
omit the reference to the span, as it is very lightweight and can
therefore be copied

* move buffer to StaticImageResource

* minor fixes

* minor fixes

again
2025-10-14 14:37:28 +02:00
f4995eaa46
image: add svg support
Some checks are pending
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Waiting to run
Build & Test (Arch) / Arch: Build and Test (clang) (push) Waiting to run
Build & Test / nix (hyprgraphics) (push) Waiting to run
Build & Test / nix (hyprgraphics-with-tests) (push) Waiting to run
2025-09-30 20:33:36 +01:00
72e6801f08
text: make wrap and ellipsize passed 2025-09-22 21:14:40 +01:00
758678a614
text: add aa and hint to text
Some checks are pending
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Waiting to run
Build & Test (Arch) / Arch: Build and Test (clang) (push) Waiting to run
Build & Test / nix (hyprgraphics) (push) Waiting to run
Build & Test / nix (hyprgraphics-with-tests) (push) Waiting to run
2025-09-22 20:08:59 +01:00
Vaxry
b86c4d9ed3
asyncResourceGatherer: add new module (#36)
Some checks are pending
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Waiting to run
Build & Test (Arch) / Arch: Build and Test (clang) (push) Waiting to run
Build & Test / nix (hyprgraphics) (push) Waiting to run
Build & Test / nix (hyprgraphics-with-tests) (push) Waiting to run
Adds a new module based on the hyprlock gatherer

---------

Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
2025-09-17 14:42:36 +02:00
Ramy Kaddouri
157cc52065
formats: add optional AVIF image support with libheif (#32)
Some checks failed
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Has been cancelled
Build & Test (Arch) / Arch: Build and Test (clang) (push) Has been cancelled
Build & Test / nix (hyprgraphics) (push) Has been cancelled
Build & Test / nix (hyprgraphics-with-tests) (push) Has been cancelled
Adds support for AVIF image loading

---------

Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
2025-08-20 09:30:02 +01:00
Linux User
5f9c68e3f8
image: include span header (#26)
Some checks are pending
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Waiting to run
Build & Test (Arch) / Arch: Build and Test (clang) (push) Waiting to run
Build & Test / nix (hyprgraphics) (push) Waiting to run
Build & Test / nix (hyprgraphics-with-tests) (push) Waiting to run
Fixes error `no template named 'span' in namespace 'std'` on llvm/musl
2025-07-05 22:05:59 +02:00
Felix Salcher
13375fa03f
core: Add Image Embedding Support (#24)
Some checks failed
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Has been cancelled
Build & Test (Arch) / Arch: Build and Test (clang) (push) Has been cancelled
Build & Test / nix (hyprgraphics) (push) Has been cancelled
Build & Test / nix (hyprgraphics-with-tests) (push) Has been cancelled
Images can now be loaded from an std::span<> of bytes. For now, png only.
2025-07-03 21:07:39 +02:00
Honkazel
6075491094
core: clang-tidy & comp changes (#15)
Some checks failed
Build & Test (Arch) / Arch: Build and Test (gcc) (push) Has been cancelled
Build & Test (Arch) / Arch: Build and Test (clang) (push) Has been cancelled
Build & Test / nix (hyprgraphics) (push) Has been cancelled
Build & Test / nix (hyprgraphics-with-tests) (push) Has been cancelled
* some clang-tidyfy

* designated init in Color header

* some linkage changes

* just doin some casts explicit

* oeao

* bruh

* explicitly cast to size_t, not ptrdiff_t
2025-04-19 00:31:30 +02:00
UjinT34
760d67a2a8
color: CM structs, constants & math (#14) 2025-04-06 17:27:46 +02:00
7ba28704d3 color: Add color 2024-12-03 17:52:39 +00:00
d09dfd1bb5 image: make non-copyable 2024-11-22 15:05:51 +00:00
292597d55a core: Add image and cairo 2024-11-22 15:02:12 +00:00