ref: e8d8ae4c787977635a37991c2e4168001470b3ed
parent: 0cc62824b934f318f944253165cbc56c427418be
author: ISSOtm <eldredhabert0@gmail.com>
date: Sat Mar 5 05:34:40 EST 2022
Print all configuration on verbose startup
--- a/include/gfx/main.hpp
+++ b/include/gfx/main.hpp
@@ -37,7 +37,7 @@
} palSpecType = NO_SPEC; // -c
std::vector<std::array<Rgba, 4>> palSpec{};
std::array<uint16_t, 2> unitSize{1, 1}; // -u (in tiles)
- std::array<uint32_t, 4> inputSlice; // -L
+ std::array<uint32_t, 4> inputSlice{0, 0, 0, 0}; // -L
std::array<uint8_t, 2> baseTileIDs{0, 0}; // -b
std::array<uint16_t, 2> maxNbTiles{UINT16_MAX, 0}; // -N
std::filesystem::path tilemap{}; // -t, -T
--- a/src/gfx/main.cpp
+++ b/src/gfx/main.cpp
@@ -290,9 +290,29 @@
fprintf(stderr, "\tBit depth: %" PRIu8 "bpp\n", options.bitDepth);
if (options.trim != 0)
fprintf(stderr, "\tTrim the last %" PRIu64 " tiles\n", options.trim);
+ fprintf(stderr, "\tMaximum %" PRIu8 " palettes\n", options.nbPalettes);
+ fprintf(stderr, "\tPalettes contain %" PRIu8 " colors\n", options.nbColorsPerPal);
+ fprintf(stderr, "\t%s palette spec\n", []() {
+ switch (options.palSpecType) {
+ case Options::NO_SPEC:
+ return "No";
+ case Options::EXPLICIT:
+ return "Explicit";
+ case Options::EMBEDDED:
+ return "Embedded";
+ }
+ return "???";
+ }());
+ fprintf(stderr, "\tDedup unit: %" PRIu16 "x%" PRIu16 " tiles\n", options.unitSize[0],
+ options.unitSize[1]);
+ fprintf(stderr,
+ "\tInput image slice: %" PRIu32 "x%" PRIu32 " pixels from (%" PRIu32 ", %" PRIu32
+ ")\n",
+ options.inputSlice[2], options.inputSlice[3], options.inputSlice[0],
+ options.inputSlice[1]);
fprintf(stderr, "\tBase tile IDs: [%" PRIu8 ", %" PRIu8 "]\n", options.baseTileIDs[0],
options.baseTileIDs[1]);
- fprintf(stderr, "\tMax number of tiles: [%" PRIu16 ", %" PRIu16 "]\n",
+ fprintf(stderr, "\tMaximum %" PRIu16 " tiles in bank 0, %" PRIu16 " in bank 1\n",
options.maxNbTiles[0], options.maxNbTiles[1]);
auto printPath = [](char const *name, std::filesystem::path const &path) {
if (!path.empty()) {