1. 07 2月, 2012 2 次提交
  2. 01 2月, 2012 1 次提交
  3. 30 1月, 2012 1 次提交
  4. 09 1月, 2012 1 次提交
  5. 05 1月, 2012 1 次提交
  6. 04 1月, 2012 2 次提交
  7. 19 12月, 2011 1 次提交
    • R
      swscale: fix overflows in vertical scaling at top/bottom edges. · d49352c7
      Ronald S. Bultje 提交于
      This fixes integer multiplication overflows in RGB48 output
      (vertical) scaling as detected by IOC. What happens is that for
      certain types of filters (lanczos, spline, bicubic), the
      intermediate sum of coefficients in the middle of a filter can
      be larger than the fixed-point equivalent of 1.0, even if the
      final sum is 1.0. This is fine and we support that.
      
      However, at frame edges, initFilter() will merge the coefficients
      for the off-screen pixels into the top or bottom pixel, such as
      to emulate edge extension. This means that suddenly, a single
      coefficient can be larger than the fixed-point equivalent of
      1.0, which the vertical scaling routines do not support.
      
      Therefore, remove the merging of coefficients for edges for
      the vertical scaling filter, and instead add edge detection
      to the scaler itself so that it copies the pointers (not data)
      for the edges (i.e. it uses line[0] for line[-1] as well), so
      that a single coefficient is never larger than the fixed-point
      equivalent of 1.0.
      d49352c7
  8. 18 12月, 2011 3 次提交
    • R
      swscale: fix overflow in gray16 vertical scaling. · 72dafea0
      Ronald S. Bultje 提交于
      This fixes the same overflow as in the RGB48/16-bit YUV scaling;
      some filters can overflow both negatively and positively (e.g.
      spline/lanczos), so we bias a signed integer so it's "half signed"
      and "half unsigned", and can cover overflows in both directions
      while maintaining full 31-bit depth.
      Signed-off-by: NMans Rullgard <mans@mansr.com>
      72dafea0
    • M
      swscale: fix integer overflows in RGB pixel writing. · 77d88b87
      Mans Rullgard 提交于
      We're shifting individual components (8-bit, unsigned) left by 24,
      so making them unsigned should give the same results without the
      overflow.
      Signed-off-by: NRonald S. Bultje <rsbultje@gmail.com>
      77d88b87
    • R
      swscale: fix overflows in output of RGB48 pixels. · be1bafc3
      Ronald S. Bultje 提交于
      For certain types of filters where the intermediate sum of coefficients
      can go above the fixed-point equivalent of 1.0 in the middle of a filter,
      the sum of a 31-bit calculation can overflow in both directions and can
      thus not be represented in a 32-bit signed or unsigned integer. To work
      around this, we subtract 0x40000000 from a signed integer base, so that
      we're halfway signed/unsigned, which makes it fit even if it overflows.
      After the filter finishes, we add the scaled bias back after a shift.
      
      We use the same trick for 16-bit bpc YUV output routines.
      Signed-off-by: NMans Rullgard <mans@mansr.com>
      be1bafc3
  9. 17 12月, 2011 1 次提交
  10. 12 12月, 2011 1 次提交
  11. 27 11月, 2011 1 次提交
  12. 25 11月, 2011 1 次提交
  13. 23 10月, 2011 4 次提交
  14. 21 10月, 2011 1 次提交
  15. 23 9月, 2011 1 次提交
  16. 18 8月, 2011 1 次提交
  17. 13 8月, 2011 1 次提交
  18. 03 8月, 2011 2 次提交
  19. 09 7月, 2011 4 次提交
  20. 04 7月, 2011 1 次提交
  21. 02 7月, 2011 1 次提交
  22. 30 6月, 2011 4 次提交
  23. 28 6月, 2011 4 次提交