How 18522039286-eng/tjurm2027-test1 works
This repository is a C++ learning exercise: the user runs a test program that checks three C-string functions and three image-processing functions. The image tests load JPEGs, apply grayscale conversion, resizing, or histogram equalization, then save results for comparison. The graph separates the runner, exercise implementations, and image I/O dependencies. The README documents the exercise stages; stb image libraries are included by the sampled utility implementation.
Main entry points: main.cpp Test harness · utils.cpp Image utilities · tests.cpp Image operations · tests.h Exercise declarations
Components 11
Test runner
- Test harness
main.cpp
Learning exercises
- String functions
src/tests.cpp - Image operations
src/tests.cpp - Exercise declarations
include/tests.h
Image I/O
- Image utilities
src/utils.cpp - Utility declarations
include/utils.h - Image decoder
3rd/stb/stb_image.h - Image encoder
3rd/stb/stb_image_write.h
Other components
- User
- Input JPEGs
- Result JPEGs
Connections 12
- User → Test harness: runs
README.md - Test harness → String functions: tests
main.cpp - Test harness → Image operations: tests
main.cpp - String functions → Exercise declarations: implements
src/tests.cpp - Image operations → Exercise declarations: implements
src/tests.cpp - Test harness → Utility declarations: calls utilities
main.cpp - Image utilities → Utility declarations: implements
src/utils.cpp - Image utilities → Image decoder: decodes
src/utils.cpp - Image utilities → Image encoder: encodes
src/utils.cpp - Test harness → Input JPEGs: loads
main.cpp - Test harness → Image operations: processes
main.cpp - Test harness → Result JPEGs: saves
main.cpp