stephenyin / libyuv

Automatically exported from code.google.com/p/libyuv
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

TestI420 fails on odd width with SIMD #461

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set LIBYUV_DISABLE_ASM=
2. set LIBYUV_WIDTH=1914
3. c:\intelsde\sde -ast -hsw -- out\release\libyuv_unittest.exe 
--gtest_catch_exceptions=0 --gtest_filter=*TestI420*

What is the expected output? 
pass
What do you see instead?
fails

d:\src\libyuv\libyuv\unit_test\color_test.cc(132): error: The difference 
between static_cast<int>(orig_pixels[i]) and 
static_cast<int>(dst_pixels_opt[i]) is 44,
 which exceeds 5, where
static_cast<int>(orig_pixels[i]) evaluates to 154,
static_cast<int>(dst_pixels_opt[i]) evaluates to 198, and
5 evaluates to 5.

Please use labels and text to provide additional information.
set LIBYUV_DISABLE_ASM=1
and it will pass.

Original issue reported on code.google.com by fbarch...@google.com on 1 Jul 2015 at 8:27

GoogleCodeExporter commented 9 years ago

Original comment by fbarch...@google.com on 4 Jul 2015 at 4:14