Re: [Libva] [PATCH v2] test: use valarray for raw image comparison

2016-10-19 Thread Xiang, Haihao
edesktop.org >Subject: Re: [Libva] [PATCH v2] test: use valarray for raw image comparison > >Ah, I overlooked the data types on my first review. Indeed it's important to >take it into account when diff'ing. This is why they were being cast to "int" >previously to calculat

Re: [Libva] [PATCH v2] test: use valarray for raw image comparison

2016-10-18 Thread Eoff, Ullysses A
freedesktop.org > Subject: [Libva] [PATCH v2] test: use valarray for raw image comparison > > std::valarray can fuse elementwise operations across arrays for > more efficient comparison. > > Signed-off-by: Scott D Phillips <scott.d.phill...@intel.com> > --- > Changes since

[Libva] [PATCH v2] test: use valarray for raw image comparison

2016-10-17 Thread Scott D Phillips
std::valarray can fuse elementwise operations across arrays for more efficient comparison. Signed-off-by: Scott D Phillips --- Changes since v1: - s/width * height/sizes/ - Added another array 'signs' which ensures that 0 and 255 never compare as separated by one.