Adds the -u command-line switch to colprof to emit structured JSON progress events ({"event": "progress", "stage": "<stage>", "percent": <0-100>}) to stdout during ICC profile calculation.
Changes
Added -u to profile/colprof.c and documented it in usage() and doc/colprof.html.
Implemented emit_json_progress() in profile/colprof.c and declared in profile/prof.h.
Integrated progress emission for calculation stages: "gamut_mapping", "a2b_table", "b2a_table", and "gamut_table" in profile/profout.c and profile/profin.c.
Fixed stdout warning in rspl/rev.c to use warning() ensuring pure NDJSON output on stdout when -u is active.
## Feature: colprof -u (Structured JSON Calculation Progress)
### Summary
Adds the `-u` command-line switch to `colprof` to emit structured JSON progress events (`{"event": "progress", "stage": "<stage>", "percent": <0-100>}`) to `stdout` during ICC profile calculation.
### Changes
- Added `-u` to `profile/colprof.c` and documented it in `usage()` and `doc/colprof.html`.
- Implemented `emit_json_progress()` in `profile/colprof.c` and declared in `profile/prof.h`.
- Integrated progress emission for calculation stages: `"gamut_mapping"`, `"a2b_table"`, `"b2a_table"`, and `"gamut_table"` in `profile/profout.c` and `profile/profin.c`.
- Fixed stdout warning in `rspl/rev.c` to use `warning()` ensuring pure NDJSON output on stdout when `-u` is active.
Fixes #4
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Feature: colprof -u (Structured JSON Calculation Progress)
Summary
Adds the
-ucommand-line switch tocolprofto emit structured JSON progress events ({"event": "progress", "stage": "<stage>", "percent": <0-100>}) tostdoutduring ICC profile calculation.Changes
-utoprofile/colprof.cand documented it inusage()anddoc/colprof.html.emit_json_progress()inprofile/colprof.cand declared inprofile/prof.h."gamut_mapping","a2b_table","b2a_table", and"gamut_table"inprofile/profout.candprofile/profin.c.rspl/rev.cto usewarning()ensuring pure NDJSON output on stdout when-uis active.Fixes #4