A layered image editor for Linux and Omarchy, ported from Compositor (github.com/robbietilton/Compositor), whose Swift source is its specification. It reads and writes Compositor's .comp projects. Packages for Ubuntu, Fedora and Arch come from the release workflow; scripts/install/ holds one install script per distribution family, and flake.nix serves NixOS. Co-Authored-By: Claude <noreply@anthropic.com>
11 lines
632 B
C
11 lines
632 B
C
#ifndef BrushPixels_h
|
|
#define BrushPixels_h
|
|
#include <stdint.h>
|
|
#include <stddef.h>
|
|
// Half-open bounds of nonzero alpha in premultiplied RGBA. Empty returns all zero.
|
|
void brush_alpha_bounds(const uint8_t *bytes, size_t width, size_t height, size_t stride, size_t bounds[4]);
|
|
void layer_extract_alpha(const uint8_t *rgba, size_t rgbaStride, uint8_t *gray, size_t grayStride, size_t width, size_t height);
|
|
void layer_unpremultiply_opaque(uint8_t *rgba, size_t stride, size_t width, size_t height);
|
|
void layer_restore_alpha(uint8_t *rgba, size_t stride, const uint8_t *alpha, size_t alphaStride, size_t width, size_t height);
|
|
#endif
|