mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2024-11-27 21:54:15 +01:00
Use references to images from image loader.
In general, we should really copy the images with the built-in Clone() function, but then we'd need to manage memory, etc. To avoid that headache, we can simply just use references.
This commit is contained in:
parent
a51e63f5c0
commit
f1b5bc3831
@ -77,8 +77,8 @@ int main(int argc, char **argv) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
FasTC::Image<> img1(*img1f.GetImage());
|
||||
FasTC::Image<> img2(*img2f.GetImage());
|
||||
FasTC::Image<> &img1 = *img1f.GetImage();
|
||||
FasTC::Image<> &img2 = *img2f.GetImage();
|
||||
|
||||
double PSNR = img1.ComputePSNR(&img2);
|
||||
if(PSNR > 0.0) {
|
||||
|
Loading…
Reference in New Issue
Block a user