Skip to main content

Module batch

Module batch 

Source

Structsยง

BatchContext ๐Ÿ”’
Pre-derived runner state for batch operations.
BatchResult
Result of processing a single image in a batch.
BatchSummary
Summary of a batch run.

Constantsยง

STANDARD_EXTENSIONS ๐Ÿ”’
Standard (non-raw) image file extensions recognized by the CLI.

Functionsยง

collect_images ๐Ÿ”’
Recursively (or not) collect image file paths from dir into out.
discover_images
Scan dir for image files, optionally recursing into subdirectories. Returns a sorted Vec<PathBuf> of discovered image files.
is_image_file ๐Ÿ”’
Returns true if path has a standard image extension or a known raw extension.
num_cpus ๐Ÿ”’
Get the number of available CPU cores.
process_single ๐Ÿ”’
Process a single image: decode, configure engine via closure, render, encode.
report_progress ๐Ÿ”’
Print progress for a completed image. Thread-safe via atomic counter.
resolve_output_path
Resolve the output path for a processed image.
run_batch ๐Ÿ”’
Generic batch processing: discover images, process in parallel, summarize.
run_batch_apply
Run batch-apply: apply a preset to all images in a directory, in parallel.
run_batch_edit
Run batch-edit: apply inline parameters to all images in a directory, in parallel.
summarize
Summarize batch results and print to stderr.