From a9a152e60e39536953dee08fd67efe249acbfc5e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 28 Nov 2023 19:30:34 +0100 Subject: a --- wall-tileset-tool/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'wall-tileset-tool') diff --git a/wall-tileset-tool/main.cpp b/wall-tileset-tool/main.cpp index 9b07db75..6602fa33 100644 --- a/wall-tileset-tool/main.cpp +++ b/wall-tileset-tool/main.cpp @@ -72,7 +72,6 @@ constexpr inline int max_image_dimension = 4096; bool convert_to_bgra32(const cv::Mat& src, cv::Mat4b& dest) { fm_assert(dest.empty() || dest.size == src.size); - auto ch = src.channels(), tp = src.type(); switch (auto type = src.type()) { @@ -165,6 +164,12 @@ bool do_group(state st, size_t i, size_t j, Group& new_group) return false; } + DBG << " " << Debug::nospace << count << (count == 1 ? "frame" : "frames"); + + for (auto i = 0uz; i < count; i++) + for (auto j = i+1; j < count; j++) + fm_assert(st.frames[i].size.y() == st.frames[j].size.y()); + fm_assert(start + count == st.frames.size()); new_group.count = count; new_group.index = start; -- cgit v1.2.3