summaryrefslogtreecommitdiffstats
path: root/libswscale/swscale.c
Commit message (Collapse)AuthorAgeFilesLines
* swscale/swscale: cosmeticsLimin Wang2019-09-271-7/+0
| | | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/swscale: delete unwanted assignmentsLimin Wang2019-09-091-2/+0
| | | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/swscale : small cosmeticMartin Vignali2018-08-221-2/+2
|
* swscale : treat float input data as uint 16bpcMartin Vignali2018-08-221-2/+8
| | | | | | | | | Currently float are converted to 16b uint in input part using src depth (32 bits) in hScale16To19 and hScale16to15, make an invalid shift for the data So shift the value when using float input like 16 bpc uint.
* Fix several typosLou Logan2017-09-211-1/+1
| | | | | | | "apix_fmts" found by Marc Péchaud. "speedloss" found by Mikhail V. Signed-off-by: Lou Logan <lou@lrcd.com>
* swscale/swscale: Fix dereference of stride array before null checkMichael Niedermayer2016-12-231-4/+7
| | | | | | | Fixes: CID1396263 Fixes: CID1396271 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: Drop is9_OR_10BPS() use, its name is not correctMichael Niedermayer2016-11-101-1/+1
| | | | | Found-by: Luca Barbato Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: fix for sliced scaling artifactsPedro Arthur2016-09-161-2/+2
| | | | Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
* swscale: Fix "warning: ISO C90 forbids mixed declarations and code"Michael Niedermayer2016-09-071-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/swscale: Try to fix rgb48Toxyz12() with slicesMichael Niedermayer2016-09-021-1/+7
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/swscale: Factor bottom to top handlingMichael Niedermayer2016-09-021-32/+19
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Revert "PPC64: Add versions of functions in libswscale/input.c optimized for ↵Ronald S. Bultje2016-07-111-3/+0
| | | | | | | POWER8 VSX SIMD." This reverts commit 1df908f33f658979b32599489ca6f1a39821013c. The expected performance improvements are essentially non-existent.
* PPC64: Add versions of functions in libswscale/input.c optimized for POWER8 ↵Dan Parrot2016-06-301-0/+3
| | | | | | | | | | VSX SIMD. This patch addresses Trac ticket #5570. The optimized functions are in file libswscale/ppc/input_vsx.c. Each optimized function name is a concatenation of the corresponding name in libswscale/input.c with suffix _vsx. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: fix ring buffer size when scaling slices of a framePedro Arthur2016-06-101-4/+6
| | | | | The ring buffer size should be able to store input lines when there is not enough lines to output a single line.
* swscale/arm: add ff_hscale_8_to_15_neonMatthieu Bouron2016-04-091-0/+2
|
* swscale: cleanup unused codePedro Arthur2016-03-311-315/+21
| | | | | Removed previous swscale code under '#ifndef NEW_FILTER' and removed unused fields of SwsContext
* sws/aarch64: add ff_hscale_8_to_15_neonClément Bœsch2016-03-311-0/+2
| | | | | | | ./ffmpeg -nostats -f lavfi -i testsrc2=4k:d=2 -vf bench=start,scale=1024x1024,bench=stop -f null - before: t:0.489726 avg:0.489883 max:0.491852 min:0.489482 after: t:0.256515 avg:0.256458 max:0.256999 min:0.253755
* avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPATDerek Buitenhuis2016-01-271-4/+4
| | | | | | | | | | Libav, for some reason, merged this as a public API function. This will aid in future merges. A define is left for backwards compat, just in case some person used it, since it is in a public header. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* swscale/swscale: Add some sanity checks for srcSlice* parametersMichael Niedermayer2016-01-171-0/+8
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: fix ticket #4881Pedro Arthur2015-10-131-2/+2
| | | | | When scaling only a slice of a frame the output was written always in the first lines leaving the rest of the frame black.
* swscale: fix ticket #4877Pedro Arthur2015-09-251-11/+12
|
* swscale: fix ticket 4850Pedro Arthur2015-09-201-4/+4
|
* libswscale/swscale: fix -Wunused-functionGanesh Ajjanagadde2015-09-181-0/+2
| | | | | | | | hyscale, hcscale are only used in old filter code, hence place header guard to silence -Wunused-function. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/swscale: silence unused function warningGanesh Ajjanagadde2015-09-161-0/+2
| | | | | | | | gamma_convert is only used with the old code. Thus, it is placed under a header guard. This patch silences a -Wunused-function observed on GCC 5.2. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* swscale/swscale: Fix "unused variable" warningMichael Niedermayer2015-09-111-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Replace all remaining occurances of step/depth_minus1 and offset_plus1Hendrik Leppkes2015-09-081-2/+2
|
* Merge commit '2268db2cd052674fde55c7d48b7a5098ce89b4ba'Hendrik Leppkes2015-09-081-3/+3
|\ | | | | | | | | | | | | * commit '2268db2cd052674fde55c7d48b7a5098ce89b4ba': lavu: Drop the {minus,plus}1 suffix from AVComponentDescriptor fields Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * lavu: Drop the {minus,plus}1 suffix from AVComponentDescriptor fieldsVittorio Giovara2015-09-071-4/+3
| | | | | | | | | | | | The new fields can be accessed directly and are more intelligible. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | swscale: re-enable gammaPedro Arthur2015-09-041-6/+7
| | | | | | | | +added gamma conversion to refactored code
* | swscale: Silence an unused variable warningTimothy Gu2015-08-251-2/+2
| | | | | | | | Also remove a pair of extraneous ifdeffery.
* | swscale: refactor vertical scalerPedro Arthur2015-08-191-35/+53
| |
* | swscale: fixed compiler warningsPedro Arthur2015-08-181-8/+16
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: process horizontal lines in batchesPedro Arthur2015-08-181-13/+44
| | | | | | | | | | | | Process more lines in a single pass to improve performance Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: refactor horizontal scalingPedro Arthur2015-08-181-7/+70
| | | | | | | | | | | | | | + split color conversion from scaling - disabled gamma correction, until it's refactored too Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: Assert that pixel format descriptor is not NULLMichael Niedermayer2015-06-121-0/+2
| | | | | | | | | | | | | | This may help static analyzers, the pixel format is checked during initialization Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/swscale: Get rid of the SWS_GAMMA_CORRECT flagMichael Niedermayer2015-04-231-1/+1
| | | | | | | | | | | | This avoids using up a bit of the public flags Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Add gamma encodign/decoding before/after scaling in libswscalePedro Arthur2015-04-231-0/+51
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '9a60b1fad02cb783b895b2145c3dafc01f7b337c'Michael Niedermayer2015-03-161-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | * commit '9a60b1fad02cb783b895b2145c3dafc01f7b337c': libswscale: fix compiler warnings enumerated type mixed with another type Conflicts: libswscale/swscale_unscaled.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * libswscale: GBRAP input & output and GBRAP16 input supportPaul B Mahol2015-01-141-0/+3
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | swscale: Add prefix to updateMMXDitherTables()Michael Niedermayer2015-02-271-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: Use av_clip_uintp2()Michael Niedermayer2015-02-211-6/+6
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: support internal scaler cascadesMichael Niedermayer2014-10-111-0/+13
| | | | | | | | | | | | Fixes Ticket3170 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sws: use av_clip() instead of av_clip_c()Clément Bœsch2014-09-161-6/+6
| |
* | sws: Move fast bilinear C code into seperate fileMichael Niedermayer2014-07-191-36/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/swscale: replace potentially slow % by &Michael Niedermayer2014-06-181-6/+6
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/swscale: fix srcStride/srcSlice typoMichael Niedermayer2014-04-161-1/+1
| | | | | | | | | | | | Fixes part of Ticket3466 Found by: Andrey_Karpov / PVS-Studio Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale: factor ff_sws_init_range_convert() outMichael Niedermayer2014-04-141-21/+26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/swscale: clear to/from convert pointers when they used.Michael Niedermayer2014-04-141-0/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '60c4660ba035bbfbcc84ac34129ce40e037c70ad'Michael Niedermayer2014-04-131-2/+2
|\ \ | |/ | | | | | | | | | | | | | | | | * commit '60c4660ba035bbfbcc84ac34129ce40e037c70ad': swscale: fix an implementation-defined unsigned-to-signed conversion Conflicts: libswscale/swscale_unscaled.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* | swscale/swscale: fix integer overflowMichael Niedermayer2014-03-241-2/+3
| | | | | | | | | | | | Should fix fate failure with clang ftrapv Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
OpenPOWER on IntegriCloud