028161f29620992b3e1dc777374a06f348f509d7
Image: Invert, Desaturate, Brightness/Contrast, Flip horizontal/vertical,
Rotate 180/90 CW/90 CCW, Image Size and Canvas Size. Filter: Blur,
Blur More, Sharpen, Sharpen More, Find Edges, Emboss, Solarize, Add Noise,
Median/Despeckle, Mosaic. All of them read and write through the same RGB
buffer, so no operation costs an X round trip per pixel.
Two bugs found while wiring them:
- A per-pixel correction ignored the selection. Invert, Desaturate,
Brightness and Solarize changed the whole picture even with a mask.
They now share OpPerPixel, so a new operation cannot forget the mask.
- A menu entry was bound by its label, but the reference has "Horizontal"
in Image > Flip and in Layer > Type. CommandOf takes the full path now
("Image/Flip/Horizontal"), the reader stores it in Item.path.
Verified, depth 24 and depth 8, 16 runs, 0 red:
- -menutest: 31 paths each resolve to the command the callback switches
on; an unknown path stays CMD_NONE.
- -optest against the arithmetic, not "the picture changed": a hard edge
blurred to 170 (six of nine window pixels white), the same edge
sharpened clamped to 255 and 0, mosaic cells to their mean (100,30,128),
noise deterministic and inside the range, mask inside changed and
outside untouched.
- -selftest on a 1024x768 24-bit BMP: byte-identical (2,359,350 bytes,
0 differing).
- -retouchtest -selecttest -movetest -croptest -typetest still green.
- DTPHOTO_CMDS=1 reports 37 bound entries, the 11 Filter paths among them.
Description
The Modern Unix Workstation OS
https://makronix.hiddenbox.org
7.1 GiB
0 Stars
3 Watchers
0 Forks
Languages
C
83.2%
Roff
5.6%
Assembly
5.3%
Shell
1.5%
Makefile
1.3%
Other
2.6%