platoon-code / libyuv

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

Scale has large width limitation (to 32767) #302

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
set LIBYUV_WIDTH=100000
out\release\libyuv_unittest --gtest_filter=*

[  FAILED  ] 87 tests, listed below:
[  FAILED  ] libyuvTest.Psnr
[  FAILED  ] libyuvTest.I411ToI420_Any
[  FAILED  ] libyuvTest.I411ToI420_Unaligned
[  FAILED  ] libyuvTest.I411ToI420_Invert
[  FAILED  ] libyuvTest.I411ToI420_Opt
[  FAILED  ] libyuvTest.I420ToI444_Any
[  FAILED  ] libyuvTest.I420ToI444_Unaligned
[  FAILED  ] libyuvTest.I420ToI444_Invert
[  FAILED  ] libyuvTest.I420ToI444_Opt
[  FAILED  ] libyuvTest.I420ToI411_Any
[  FAILED  ] libyuvTest.I420ToI411_Unaligned
[  FAILED  ] libyuvTest.I420ToI411_Invert
[  FAILED  ] libyuvTest.I420ToI411_Opt
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy2_None
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy2_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy2_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy2_Box
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy4_None
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy4_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy4_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy4_Box
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy8_None
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy8_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy8_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy8_Box
[  FAILED  ] libyuvTest.ARGBScaleDownBy3by4_None
[  FAILED  ] libyuvTest.ARGBScaleDownBy3by4_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy3by4_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownBy3by4_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy3by4_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownBy3by4_Box
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy3by4_Box
[  FAILED  ] libyuvTest.ARGBScaleTo1x1_None
[  FAILED  ] libyuvTest.ARGBScaleClipTo1x1_None
[  FAILED  ] libyuvTest.ARGBScaleTo1x1_Linear
[  FAILED  ] libyuvTest.ARGBScaleClipTo1x1_Linear
[  FAILED  ] libyuvTest.ARGBScaleTo1x1_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleClipTo1x1_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleTo1x1_Box
[  FAILED  ] libyuvTest.ARGBScaleClipTo1x1_Box
[  FAILED  ] libyuvTest.ARGBScaleTo320x240_None
[  FAILED  ] libyuvTest.ARGBScaleTo320x240_Linear
[  FAILED  ] libyuvTest.ARGBScaleTo320x240_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleTo320x240_Box
[  FAILED  ] libyuvTest.ARGBScaleTo352x288_None
[  FAILED  ] libyuvTest.ARGBScaleTo352x288_Linear
[  FAILED  ] libyuvTest.ARGBScaleTo352x288_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleTo352x288_Box
[  FAILED  ] libyuvTest.ARGBScaleTo640x360_None
[  FAILED  ] libyuvTest.ARGBScaleTo640x360_Linear
[  FAILED  ] libyuvTest.ARGBScaleTo640x360_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleTo640x360_Box
[  FAILED  ] libyuvTest.ARGBScaleTo1280x720_None
[  FAILED  ] libyuvTest.ARGBScaleTo1280x720_Linear
[  FAILED  ] libyuvTest.ARGBScaleTo1280x720_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleTo1280x720_Box
[  FAILED  ] libyuvTest.ScaleDownBy4_Bilinear
[  FAILED  ] libyuvTest.ScaleDownBy8_Linear
[  FAILED  ] libyuvTest.ScaleDownBy8_Bilinear
[  FAILED  ] libyuvTest.ScaleTo1x1_None
[  FAILED  ] libyuvTest.ScaleTo1x1_Linear
[  FAILED  ] libyuvTest.ScaleTo1x1_Bilinear
[  FAILED  ] libyuvTest.ScaleTo1x1_Box
[  FAILED  ] libyuvTest.ScaleTo320x240_Linear
[  FAILED  ] libyuvTest.ScaleFrom320x240_Linear
[  FAILED  ] libyuvTest.ScaleTo320x240_Bilinear
[  FAILED  ] libyuvTest.ScaleFrom320x240_Bilinear
[  FAILED  ] libyuvTest.ScaleTo320x240_Box
[  FAILED  ] libyuvTest.ScaleFrom320x240_Box
[  FAILED  ] libyuvTest.ScaleTo352x288_Linear
[  FAILED  ] libyuvTest.ScaleFrom352x288_Linear
[  FAILED  ] libyuvTest.ScaleTo352x288_Bilinear
[  FAILED  ] libyuvTest.ScaleFrom352x288_Bilinear
[  FAILED  ] libyuvTest.ScaleTo352x288_Box
[  FAILED  ] libyuvTest.ScaleFrom352x288_Box
[  FAILED  ] libyuvTest.ScaleTo640x360_Linear
[  FAILED  ] libyuvTest.ScaleFrom640x360_Linear
[  FAILED  ] libyuvTest.ScaleTo640x360_Bilinear
[  FAILED  ] libyuvTest.ScaleFrom640x360_Bilinear
[  FAILED  ] libyuvTest.ScaleTo640x360_Box
[  FAILED  ] libyuvTest.ScaleFrom640x360_Box
[  FAILED  ] libyuvTest.ScaleTo1280x720_Linear
[  FAILED  ] libyuvTest.ScaleFrom1280x720_Linear
[  FAILED  ] libyuvTest.ScaleTo1280x720_Bilinear
[  FAILED  ] libyuvTest.ScaleFrom1280x720_Bilinear
[  FAILED  ] libyuvTest.ScaleTo1280x720_Box
[  FAILED  ] libyuvTest.ScaleFrom1280x720_Box

87 FAILED TESTS
  YOU HAVE 1 DISABLED TEST

Original issue reported on code.google.com by fbarch...@google.com on 2 Jan 2014 at 9:18

GoogleCodeExporter commented 9 years ago
r941 fixes psnr and ScaleSlope
[  PASSED  ] 690 tests.
[  FAILED  ] 70 tests, listed below:
[  FAILED  ] libyuvTest.I420ToI444_Any
[  FAILED  ] libyuvTest.I420ToI444_Unaligned
[  FAILED  ] libyuvTest.I420ToI444_Invert
[  FAILED  ] libyuvTest.I420ToI444_Opt
[  FAILED  ] libyuvTest.I420ToI411_Any
[  FAILED  ] libyuvTest.I420ToI411_Unaligned
[  FAILED  ] libyuvTest.I420ToI411_Invert
[  FAILED  ] libyuvTest.I420ToI411_Opt
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy2_None
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy2_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy2_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy2_Box
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy4_None
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy4_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy4_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy4_Box
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy8_None
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy8_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy8_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy8_Box
[  FAILED  ] libyuvTest.ARGBScaleDownBy3by4_None
[  FAILED  ] libyuvTest.ARGBScaleDownBy3by4_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy3by4_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownBy3by4_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy3by4_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownBy3by4_Box
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy3by4_Box
[  FAILED  ] libyuvTest.ARGBScaleTo1x1_None
[  FAILED  ] libyuvTest.ARGBScaleClipTo1x1_None
[  FAILED  ] libyuvTest.ARGBScaleTo1x1_Linear
[  FAILED  ] libyuvTest.ARGBScaleClipTo1x1_Linear
[  FAILED  ] libyuvTest.ARGBScaleTo1x1_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleClipTo1x1_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleTo1x1_Box
[  FAILED  ] libyuvTest.ARGBScaleClipTo1x1_Box
[  FAILED  ] libyuvTest.ARGBScaleTo320x240_None
[  FAILED  ] libyuvTest.ARGBScaleTo320x240_Linear
[  FAILED  ] libyuvTest.ARGBScaleTo320x240_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleTo320x240_Box
[  FAILED  ] libyuvTest.ARGBScaleTo352x288_None
[  FAILED  ] libyuvTest.ARGBScaleTo352x288_Linear
[  FAILED  ] libyuvTest.ARGBScaleTo352x288_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleTo352x288_Box
[  FAILED  ] libyuvTest.ARGBScaleTo640x360_None
[  FAILED  ] libyuvTest.ARGBScaleTo640x360_Linear
[  FAILED  ] libyuvTest.ARGBScaleTo640x360_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleTo640x360_Box
[  FAILED  ] libyuvTest.ARGBScaleTo1280x720_None
[  FAILED  ] libyuvTest.ARGBScaleTo1280x720_Linear
[  FAILED  ] libyuvTest.ARGBScaleTo1280x720_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleTo1280x720_Box
[  FAILED  ] libyuvTest.ScaleDownBy4_Bilinear
[  FAILED  ] libyuvTest.ScaleDownBy8_Linear
[  FAILED  ] libyuvTest.ScaleDownBy8_Bilinear
[  FAILED  ] libyuvTest.ScaleTo1x1_None
[  FAILED  ] libyuvTest.ScaleTo1x1_Linear
[  FAILED  ] libyuvTest.ScaleTo1x1_Bilinear
[  FAILED  ] libyuvTest.ScaleTo1x1_Box
[  FAILED  ] libyuvTest.ScaleTo320x240_Linear
[  FAILED  ] libyuvTest.ScaleTo320x240_Bilinear
[  FAILED  ] libyuvTest.ScaleTo320x240_Box
[  FAILED  ] libyuvTest.ScaleTo352x288_Linear
[  FAILED  ] libyuvTest.ScaleTo352x288_Bilinear
[  FAILED  ] libyuvTest.ScaleTo352x288_Box
[  FAILED  ] libyuvTest.ScaleTo640x360_Linear
[  FAILED  ] libyuvTest.ScaleTo640x360_Bilinear
[  FAILED  ] libyuvTest.ScaleTo640x360_Box
[  FAILED  ] libyuvTest.ScaleTo1280x720_Linear
[  FAILED  ] libyuvTest.ScaleTo1280x720_Bilinear
[  FAILED  ] libyuvTest.ScaleTo1280x720_Box

70 FAILED TESTS

Original comment by fbarch...@google.com on 2 Jan 2014 at 11:09

GoogleCodeExporter commented 9 years ago
r942 uses 64 bit fixed point math if the source size is more then 32767 pixels 
wide, allowing I420ToI444 etc to work.
[  PASSED  ] 713 tests.
[  FAILED  ] 47 tests, listed below:
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy2_None
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy2_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy2_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy2_Box
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy4_None
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy4_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy4_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy4_Box
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy8_None
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy8_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy8_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy8_Box
[  FAILED  ] libyuvTest.ARGBScaleDownBy3by4_None
[  FAILED  ] libyuvTest.ARGBScaleDownBy3by4_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy3by4_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownBy3by4_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy3by4_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownBy3by4_Box
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy3by4_Box
[  FAILED  ] libyuvTest.ARGBScaleTo1x1_None
[  FAILED  ] libyuvTest.ARGBScaleClipTo1x1_None
[  FAILED  ] libyuvTest.ARGBScaleTo1x1_Linear
[  FAILED  ] libyuvTest.ARGBScaleClipTo1x1_Linear
[  FAILED  ] libyuvTest.ARGBScaleTo1x1_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleClipTo1x1_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleTo1x1_Box
[  FAILED  ] libyuvTest.ARGBScaleClipTo1x1_Box
[  FAILED  ] libyuvTest.ARGBScaleTo320x240_None
[  FAILED  ] libyuvTest.ARGBScaleTo320x240_Linear
[  FAILED  ] libyuvTest.ARGBScaleTo320x240_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleTo320x240_Box
[  FAILED  ] libyuvTest.ARGBScaleTo352x288_None
[  FAILED  ] libyuvTest.ARGBScaleTo352x288_Linear
[  FAILED  ] libyuvTest.ARGBScaleTo352x288_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleTo352x288_Box
[  FAILED  ] libyuvTest.ARGBScaleTo640x360_None
[  FAILED  ] libyuvTest.ARGBScaleTo640x360_Linear
[  FAILED  ] libyuvTest.ARGBScaleTo640x360_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleTo640x360_Box
[  FAILED  ] libyuvTest.ARGBScaleTo1280x720_None
[  FAILED  ] libyuvTest.ARGBScaleTo1280x720_Linear
[  FAILED  ] libyuvTest.ARGBScaleTo1280x720_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleTo1280x720_Box
[  FAILED  ] libyuvTest.ScaleTo1x1_None
[  FAILED  ] libyuvTest.ScaleTo1x1_Linear
[  FAILED  ] libyuvTest.ScaleTo1x1_Bilinear
[  FAILED  ] libyuvTest.ScaleTo1x1_Box

47 FAILED TESTS

Original comment by fbarch...@google.com on 3 Jan 2014 at 12:36

GoogleCodeExporter commented 9 years ago
r943 tests for 1 pixel and sets slope to 1, x to 0.  Avoid divide overflow 
crash.

[==========] 760 tests from 1 test case ran. (212470 ms total)
[  PASSED  ] 725 tests.
[  FAILED  ] 35 tests, listed below:
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy2_None
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy2_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy2_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy2_Box
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy4_None
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy4_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy4_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy4_Box
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy8_None
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy8_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy8_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy8_Box
[  FAILED  ] libyuvTest.ARGBScaleDownBy3by4_None
[  FAILED  ] libyuvTest.ARGBScaleDownBy3by4_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy3by4_Linear
[  FAILED  ] libyuvTest.ARGBScaleDownBy3by4_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy3by4_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownBy3by4_Box
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy3by4_Box
[  FAILED  ] libyuvTest.ARGBScaleTo320x240_None
[  FAILED  ] libyuvTest.ARGBScaleTo320x240_Linear
[  FAILED  ] libyuvTest.ARGBScaleTo320x240_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleTo320x240_Box
[  FAILED  ] libyuvTest.ARGBScaleTo352x288_None
[  FAILED  ] libyuvTest.ARGBScaleTo352x288_Linear
[  FAILED  ] libyuvTest.ARGBScaleTo352x288_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleTo352x288_Box
[  FAILED  ] libyuvTest.ARGBScaleTo640x360_None
[  FAILED  ] libyuvTest.ARGBScaleTo640x360_Linear
[  FAILED  ] libyuvTest.ARGBScaleTo640x360_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleTo640x360_Box
[  FAILED  ] libyuvTest.ARGBScaleTo1280x720_None
[  FAILED  ] libyuvTest.ARGBScaleTo1280x720_Linear
[  FAILED  ] libyuvTest.ARGBScaleTo1280x720_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleTo1280x720_Box

35 FAILED TESTS
  YOU HAVE 1 DISABLED TEST

Original comment by fbarch...@google.com on 3 Jan 2014 at 12:52

GoogleCodeExporter commented 9 years ago
r945 clips address using 64 bit math

[  PASSED  ] 748 tests.
[  FAILED  ] 12 tests, listed below:
[  FAILED  ] libyuvTest.ARGBScaleDownBy3by4_None
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy3by4_None
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy3by4_Bilinear
[  FAILED  ] libyuvTest.ARGBScaleDownClipBy3by4_Box
[  FAILED  ] libyuvTest.ARGBScaleTo320x240_None
[  FAILED  ] libyuvTest.ARGBScaleClipTo320x240_None
[  FAILED  ] libyuvTest.ARGBScaleTo352x288_None
[  FAILED  ] libyuvTest.ARGBScaleClipTo352x288_None
[  FAILED  ] libyuvTest.ARGBScaleTo640x360_None
[  FAILED  ] libyuvTest.ARGBScaleClipTo640x360_None
[  FAILED  ] libyuvTest.ARGBScaleTo1280x720_None
[  FAILED  ] libyuvTest.ARGBScaleClipTo1280x720_None

12 FAILED TESTS

Original comment by fbarch...@google.com on 3 Jan 2014 at 1:44

GoogleCodeExporter commented 9 years ago
r948 - All tests pass with large width.

Original comment by fbarch...@google.com on 3 Jan 2014 at 2:41