mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-25 15:58:56 +00:00
Report different image dimensions
This commit is contained in:
parent
06bcee7bb6
commit
319b293212
1 changed files with 6 additions and 0 deletions
|
@ -117,6 +117,12 @@ int main(int argc, char **argv) {
|
||||||
FasTC::Image<> &img1 = *img1f.GetImage();
|
FasTC::Image<> &img1 = *img1f.GetImage();
|
||||||
FasTC::Image<> &img2 = *img2f.GetImage();
|
FasTC::Image<> &img2 = *img2f.GetImage();
|
||||||
|
|
||||||
|
if (img1.GetWidth() != img2.GetWidth() ||
|
||||||
|
img1.GetHeight() != img2.GetHeight()) {
|
||||||
|
std::cerr << "Images differ in dimension!" << std::endl;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (diff_images) {
|
if (diff_images) {
|
||||||
FasTC::Image<> diff = img1.Diff(&img2, diff_multiplier);
|
FasTC::Image<> diff = img1.Diff(&img2, diff_multiplier);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue