elkpi / libyuv

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

scale down tests crash if image size is large (2g+) #445

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Failure for large sizes
set LIBYUV_WIDTH=4096
set LIBYUV_HEIGHT=2048
out\release\libyuv_unittest --gtest_filter=*ARGBScaleDownBy8*
[  FAILED  ] libyuvTest.ARGBScaleDownBy8_None (1 ms)
[  FAILED  ] libyuvTest.ARGBScaleDownBy8_Linear (0 ms)
[  FAILED  ] libyuvTest.ARGBScaleDownBy8_Bilinear (0 ms)
[  FAILED  ] libyuvTest.ARGBScaleDownBy8_Box (0 ms)

Original issue reported on code.google.com by fbarch...@chromium.org on 29 May 2015 at 6:32

GoogleCodeExporter commented 9 years ago
A recent change for scale down unittests produces a source that is scale factor 
larger, so that the scale down factor will be achieved exactly, and the 
performance is typically a function of destination size.
But this can produce a source that is enormous and causes the malloc etc to 
fail.

Original comment by fbarch...@chromium.org on 2 Jun 2015 at 9:46

GoogleCodeExporter commented 9 years ago

Original comment by fbarch...@chromium.org on 5 Jun 2015 at 5:21