diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-28 19:30:34 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-28 20:21:14 +0100 |
| commit | a9a152e60e39536953dee08fd67efe249acbfc5e (patch) | |
| tree | f3e40cc8f21073953eb680bdbc8cee399ce2900d /wall-tileset-tool | |
| parent | 184a6012dc888ad3b58b60815f369331482edd1b (diff) | |
a
Diffstat (limited to 'wall-tileset-tool')
| -rw-r--r-- | wall-tileset-tool/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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; |
