libavcodec/libaomenc.c: Added code for computing PSNR/SSIM