Cleaning up and fixing psnr calculation code.
authorDmitry Kovalev <dkovalev@google.com>
Sat, 11 Jan 2014 00:09:56 +0000 (16:09 -0800)
committerDmitry Kovalev <dkovalev@google.com>
Sat, 11 Jan 2014 00:09:56 +0000 (16:09 -0800)
commit4def0a8125c84a20724e481c4753724413d710c1
tree202174a507eb226e263ed395ef1a4d195f33b1fd
parentc8e8d3a461c3a75e768bd8b380e4439de7acb290
Cleaning up and fixing psnr calculation code.

Introducing calc_psnr() which calculates psnr between two yv12 buffers.
Previously we incorrectly used width/height instead of
crop_width/crop_height to calculate number of samples -- fixed.

Change-Id: Iecda01980555de55ad347e0276e6641c793fa56c
vp9/encoder/vp9_onyx_if.c
vp9/encoder/vp9_onyx_int.h