summaryrefslogtreecommitdiff
path: root/libswscale/utils.c
Commit message (Collapse)AuthorAge
* libswscale: Adds conversions from/to float gray format.Sergey Lavrushkin2018-08-14
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: add gray14 supportPaul B Mahol2018-05-05
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* swscale: Add p016 output support and generalise yuv420p1x to p010Philip Langdale2018-03-02
| | | | | | | | To make the best use of existing code, I generalised the wrapper that currently does yuv420p10 to p010 to support any mixture of input and output sizes between 10 and 16 bits. This had the side effect of yielding a working code path for all yuv420p1x formats to p01x.
* Merge commit '29ccc641b17afad058a5c24071ea827865a8b3a9'James Almer2017-11-11
|\ | | | | | | | | | | | | * commit '29ccc641b17afad058a5c24071ea827865a8b3a9': build: Drop check for sys/mman.h in favor of mmap() check Merged-by: James Almer <jamrial@gmail.com>
| * build: Drop check for sys/mman.h in favor of mmap() checkDiego Biurrun2017-10-10
| | | | | | | | We already rely on just mmap() in other places.
| * swscale: Do not expand a macro with 'defined' in itDerek Buitenhuis2017-08-28
| | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: libswscale/utils.c:1632:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if USE_MMAP ^ libswscale/utils.c:1577:49: note: expanded from macro 'USE_MMAP' #define USE_MMAP (HAVE_MMAP && HAVE_MPROTECT && defined MAP_ANONYMOUS) ^ Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * build: Add feature test macros for glibc 2.19+Diego Biurrun2017-07-10
| | | | | | | | | | | | | | glibc introduced _DEFAULT_SOURCE in version 2.19 to replace _BSD_SOURCE and _SVID_SOURCE, which were deprecated in version 2.20. Add _DEFAULT_SOURCE where the latter two are used to be forwards-compatible and avoid warnings about the use of deprecated definitions.
| * swscale: Add gbrap10 outputMichael Niedermayer2017-04-15
| | | | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * swscale: Add input support for gbrap10 pixel formatPaul B Mahol2017-04-13
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
| * swscale: Add GRAY12Luca Barbato2016-11-07
| |
| * swscale: Add the GBRAP12 outputLuca Barbato2016-10-12
| |
| * Add GBRAP12 pixel format supportKieran Kunhya2016-10-12
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * swscale: Enable GBRP12 outputLuca Barbato2016-10-12
| |
| * swscale: Add input support for 12-bit formatsMichael Niedermayer2016-10-12
| | | | | | | | | | | | Implemented for AV_PIX_FMT_GBRP12. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * pixfmt: Add yuv444p12 pixel formatLuca Barbato2016-09-27
| |
| * pixfmt: Add yuv422p12 pixel formatLuca Barbato2016-09-27
| |
| * pixfmt: Add yuv420p12 pixel formatLuca Barbato2016-09-27
| |
* | utils: Do not expand a macro with 'defined' in itDerek Buitenhuis2017-08-25
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: libswscale/utils.c:1632:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if USE_MMAP ^ libswscale/utils.c:1577:49: note: expanded from macro 'USE_MMAP' #define USE_MMAP (HAVE_MMAP && HAVE_MPROTECT && defined MAP_ANONYMOUS) ^ Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | libswscale: add gray9 supportPaul B Mahol2017-08-07
| |
* | lsws/utils: Make gray10 and gray12 full-scale like gray8 and gray16.Carl Eugen Hoyos2017-04-12
| |
* | Merge commit 'aa37d2bf4505afc106e2a23c44afc722bb204a8e'Clément Bœsch2017-03-19
|\| | | | | | | | | | | | | | | | | | | | | | | * commit 'aa37d2bf4505afc106e2a23c44afc722bb204a8e': swscale: Kill non-compiling disabled cruft The isGray() chunk is not merged as an alternative patch actually fixing the dead code is currently under review on the mailing-list. The SWS_X chunk is merged, with an additional cosmetic. Merged-by: Clément Bœsch <u@pkh.me>
| * swscale: Kill non-compiling disabled cruftDiego Biurrun2016-08-17
| |
| * swscale: Add proper ff_ prefix to init functionsDiego Biurrun2016-07-16
| | | | | | | | | | | | | | | | They are internal symbols that should not be exported. based on a patch by Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * swscale: Rename sws_context_class to ff_sws_context_classAndreas Cadhalpun2016-07-16
| | | | | | | | | | | | | | It is an internal swscale symbol and thus should not be exported. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * swscale: add P010 input supportHendrik Leppkes2016-07-02
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * asm: FF_-prefix internal macros used in inline assemblyDiego Biurrun2016-05-28
| | | | | | | | | | These warnings conflict with system macros on Solaris, producing truckloads of warnings about macro redefinition.
| * lavu: add AV_CEIL_RSHIFT and use it in various placesClément Bœsch2016-01-11
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | swscale: add P016 input supportPhilip Langdale2017-02-01
| |
* | swscale: add gbr(a)p16 output supportPaul B Mahol2016-12-01
| |
* | lsws: Add GRAY10 conversion.Carl Eugen Hoyos2016-11-14
| | | | | | | | Based on 19be5fb7 by Luca Barbato.
* | swscale: Add GRAY12Luca Barbato2016-11-10
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: Add GBRAP10 outputMichael Niedermayer2016-11-10
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: Add the GBRAP12 outputLuca Barbato2016-11-10
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: add support for P010LE/BE outputTimo Rothenpieler2016-08-31
| |
* | swscale: add input support for gbrap10 pixel formatPaul B Mahol2016-06-10
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | sws/aarch64: add ff_yuv2planeX_8_neonClément Bœsch2016-04-11
| |
* | swscale/utils: Remove unused variableMichael Niedermayer2016-04-07
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | sws/aarch64: restore ff_hscale_8_to_15_neon()Clément Bœsch2016-04-05
| | | | | | | | Fix final scaling and required filter alignment. Pass FATE.
* | swscale: cleanup unused codePedro Arthur2016-03-31
| | | | | | | | | | Removed previous swscale code under '#ifndef NEW_FILTER' and removed unused fields of SwsContext
* | swscale: Deprecate vector functions which are unused outside swscaleMichael Niedermayer2016-03-31
| | | | | | | | | | | | | | | | There are no known users of these functions within debian It should be thus possible to remove these functions without recommandition of a replacement Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | sws/aarch64: add ff_hscale_8_to_15_neonClément Bœsch2016-03-31
| | | | | | | | | | | | | | ./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
* | Add GBRAP12 pixel formatKieran Kunhya2016-02-24
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/utils: Fix chrSrcHSubSample for GBRAP16Michael Niedermayer2016-02-24
| | | | | | | | | | | | Fixes part of Ticket5264 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPATDerek Buitenhuis2016-01-27
| | | | | | | | | | | | | | | | | | | | 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: add P010 input supportHendrik Leppkes2016-01-26
| |
* | swscale/utils: Detect and skip unneeded sws_setColorspaceDetails() callsMichael Niedermayer2016-01-14
| | | | | | | | | | | | This avoids running various table inits unnecessarily Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/utils: Use normal bilinear scaler if fast cannot be used due to tiny ↵Michael Niedermayer2016-01-04
| | | | | | | | | | | | | | | | dimensions Fixes Ticket4960 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/utils: Fix intermediate format for cascaded alpha downscalingMichael Niedermayer2015-12-24
| | | | | | | | | | | | Fixes Ticket4926 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale/utils: replace pow by exp2Ganesh Ajjanagadde2015-12-08
| | | | | | | | | | | | | | exp2 is a faster function. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
* | swscale/utils: Fix for runtime error: left shift of negative value -1Michael Niedermayer2015-12-04
| | | | | | | | | | | | | | Fixes: c106b36fa36db8ff8f3ed0c82be7bea2/asan_heap-oob_32699f0_6321_467b9a1d7e03d7cfd310b7e65dc53bcc.mov Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>