- 06 Mar, 2012 1 commit
-
-
Ronald S. Bultje authored
Fixes overflows for large image sizes. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
-
- 23 Feb, 2012 1 commit
-
-
Ronald S. Bultje authored
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
-
- 13 Feb, 2012 3 commits
-
-
Diego Biurrun authored
-
Ronald S. Bultje authored
This allows removing any gray16-specific code, which is essentially identical to the per-plane code in yuv2plane*().
-
Ronald S. Bultje authored
-
- 07 Feb, 2012 2 commits
-
-
Ronald S. Bultje authored
Signed-off-by:
Diego Biurrun <diego@biurrun.de>
-
Ronald S. Bultje authored
Signed-off-by:
Diego Biurrun <diego@biurrun.de>
-
- 01 Feb, 2012 1 commit
-
-
Ronald S. Bultje authored
-
- 30 Jan, 2012 1 commit
-
-
Paul B Mahol authored
Signed-off-by:
Paul B Mahol <onemda@gmail.com> Signed-off-by:
Ronald S. Bultje <rsbultje@gmail.com>
-
- 28 Jan, 2012 1 commit
-
-
Paul B Mahol authored
Signed-off-by:
Paul B Mahol <onemda@gmail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 11 Jan, 2012 2 commits
-
-
Michael Niedermayer authored
This should slightly improve speed. Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
This fixes some cases where the clipping was entirely missing. Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> Thanks (for the comments and review) -to: Reimar, beastd, Ronald
-
- 10 Jan, 2012 1 commit
-
-
Michael Niedermayer authored
This reverts commit 77d88b87. The revert fixes actual overflows and a segfault as the variables are signed and can be negative. Conflicts: libswscale/swscale.c Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 09 Jan, 2012 1 commit
-
-
Paul B Mahol authored
Signed-off-by:
Ronald S. Bultje <rsbultje@gmail.com>
-
- 05 Jan, 2012 1 commit
-
-
Ronald S. Bultje authored
Also document the function somewhat.
-
- 04 Jan, 2012 2 commits
-
-
Ronald S. Bultje authored
-
Ronald S. Bultje authored
Non-RGB output always uses full chroma interpolation.
-
- 18 Dec, 2011 1 commit
-
-
Ronald S. Bultje authored
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.
-
- 17 Dec, 2011 4 commits
-
-
Ronald S. Bultje authored
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:
Mans Rullgard <mans@mansr.com>
-
Mans Rullgard authored
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:
Ronald S. Bultje <rsbultje@gmail.com>
-
Ronald S. Bultje authored
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:
Mans Rullgard <mans@mansr.com>
-
Ronald S. Bultje authored
Signed-off-by:
Mans Rullgard <mans@mansr.com>
-
- 11 Dec, 2011 1 commit
-
-
Mans Rullgard authored
These semicolons cause invalid empty top-level declarations. Signed-off-by:
Mans Rullgard <mans@mansr.com>
-
- 02 Dec, 2011 1 commit
-
-
Michael Niedermayer authored
libswscale/swscale.c:2744:40: warning: to be safe all intermediate pointers in cast from ‘int16_t **’ to ‘const int16_t **’ must be ‘const’ qualified [-Wcast-qual] libswscale/swscale.c:2745:41: warning: to be safe all intermediate pointers in cast from ‘int16_t **’ to ‘const int16_t **’ must be ‘const’ qualified [-Wcast-qual] libswscale/swscale.c:2746:41: warning: to be safe all intermediate pointers in cast from ‘int16_t **’ to ‘const int16_t **’ must be ‘const’ qualified [-Wcast-qual] libswscale/swscale.c:2747:78: warning: to be safe all intermediate pointers in cast from ‘int16_t **’ to ‘const int16_t **’ must be ‘const’ qualified [-Wcast-qual] Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 26 Nov, 2011 2 commits
-
-
Mans Rullgard authored
As old bits are shifted out of the accumulator, they cause signed overflows when they reach the end. Making the variable unsigned fixes this. Signed-off-by:
Mans Rullgard <mans@mansr.com>
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 24 Nov, 2011 1 commit
-
-
Ronald S. Bultje authored
-
- 18 Nov, 2011 1 commit
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 31 Oct, 2011 2 commits
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 23 Oct, 2011 6 commits
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 22 Oct, 2011 4 commits
-
-
Ronald S. Bultje authored
-
Ronald S. Bultje authored
-
Kieran Kunhya authored
Signed-off-by:
Ronald S. Bultje <rsbultje@gmail.com>
-
Kieran Kunhya authored
Signed-off-by:
Ronald S. Bultje <rsbultje@gmail.com>
-