aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/utils.c
Commit message (Collapse)AuthorAgeFilesLines
* libswscale: fix for floating point formats, require full chromaMark Reid2020-05-121-0/+2
| | | | | | upon more floating point testing, looks like I missed adding this bit. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libswscale: add output support for AV_PIX_FMT_GBRAPF32Mark Reid2020-05-051-4/+4
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libswscale: add input support AV_PIX_FMT_GBRAPF32Mark Reid2020-05-051-0/+4
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: Add swscale input support for Y210LELinjie Fu2020-02-241-0/+1
| | | | | | | | Add swscale input support for Y210LE, output support and fate test could be added later if there is requirement for software CSC to this packed format. Signed-off-by: Linjie Fu <linjie.fu@intel.com>
* libswscale/utils.c: Fix bug #8255Gautam Ramakrishnan2020-02-091-0/+1
| | | | | | | | | | Bug #8255 points out a double free error in libwscale/utils.c file. The double free is because the pointer to cascaded_context of an sw_context is not set to NULL after freeing it. When the sw_context is later freed, sws_freeContext is called on the cascaded_context, causing a double free. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Silence "string-plus-int" warning shown by clang.Carl Eugen Hoyos2020-01-061-1/+1
| | | | libswscale/utils.c:89:42: warning: adding 'unsigned long' to a string does not append to the string [-Wstring-plus-int]
* swscale/utils: remove access of AV_PIX_FMT_NBZhao Zhili2019-12-311-4/+4
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/utils: Fix invalid left shifts of negative numbersAndreas Rheinhardt2019-09-281-1/+1
| | | | | | | | Affected the FATE-tests vsynth_lena-dv-411, vsynth1-dv-411, vsynth2-dv-411 and hevc-paramchange-yuv420p.yuv420p10. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: Add support for NV24 and NV42Philip Langdale2019-05-121-0/+2
| | | | | | | | | | | The implementation is pretty straight-forward. Most of the existing NV12 codepaths work regardless of subsampling and are re-used as is. Where necessary I wrote the slightly different NV24 versions. Finally, the one thing that confused me for a long time was the asm specific x86 path that did an explicit exclusion check for NV12. I replaced that with a semi-planar check and also updated the equivalent PPC code, which Lauri kindly checked.
* swscale : add support for YUVA444P12 and YUVA422P12Martin Vignali2018-11-241-0/+4
|
* swscale/utils : simplify unscaled initial test for float pixfmtMartin Vignali2018-10-241-2/+1
|
* swscale : add YA16 LE/BE outputMartin Vignali2018-10-181-2/+2
|
* libswscale: Adds conversions from/to float gray format.Sergey Lavrushkin2018-08-141-1/+19
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: add gray14 supportPaul B Mahol2018-05-051-0/+4
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* swscale: Add p016 output support and generalise yuv420p1x to p010Philip Langdale2018-03-021-2/+2
| | | | | | | | 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-111-1/+1
|\ | | | | | | | | | | | | * 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-101-1/+1
| | | | | | | | We already rely on just mmap() in other places.
| * swscale: Do not expand a macro with 'defined' in itDerek Buitenhuis2017-08-281-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-101-0/+1
| | | | | | | | | | | | | | 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-151-2/+2
| | | | | | | | | | 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-131-0/+3
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
| * swscale: Add GRAY12Luca Barbato2016-11-071-0/+2
| |
| * swscale: Add the GBRAP12 outputLuca Barbato2016-10-121-2/+2
| |
| * Add GBRAP12 pixel format supportKieran Kunhya2016-10-121-0/+2
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * swscale: Enable GBRP12 outputLuca Barbato2016-10-121-2/+2
| |
| * swscale: Add input support for 12-bit formatsMichael Niedermayer2016-10-121-1/+4
| | | | | | | | | | | | Implemented for AV_PIX_FMT_GBRP12. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * pixfmt: Add yuv444p12 pixel formatLuca Barbato2016-09-271-0/+2
| |
| * pixfmt: Add yuv422p12 pixel formatLuca Barbato2016-09-271-0/+2
| |
| * pixfmt: Add yuv420p12 pixel formatLuca Barbato2016-09-271-0/+2
| |
* | utils: Do not expand a macro with 'defined' in itDerek Buitenhuis2017-08-251-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | 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-071-0/+4
| |
* | lsws/utils: Make gray10 and gray12 full-scale like gray8 and gray16.Carl Eugen Hoyos2017-04-121-0/+4
| |
* | Merge commit 'aa37d2bf4505afc106e2a23c44afc722bb204a8e'Clément Bœsch2017-03-191-9/+1
|\| | | | | | | | | | | | | | | | | | | | | | | * 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-171-7/+0
| |
| * swscale: Add proper ff_ prefix to init functionsDiego Biurrun2016-07-161-1/+1
| | | | | | | | | | | | | | | | 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-161-1/+1
| | | | | | | | | | | | | | 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-021-0/+2
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * asm: FF_-prefix internal macros used in inline assemblyDiego Biurrun2016-05-281-11/+11
| | | | | | | | | | 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-111-5/+5
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | swscale: add P016 input supportPhilip Langdale2017-02-011-0/+2
| |
* | swscale: add gbr(a)p16 output supportPaul B Mahol2016-12-011-4/+4
| |
* | lsws: Add GRAY10 conversion.Carl Eugen Hoyos2016-11-141-0/+2
| | | | | | | | Based on 19be5fb7 by Luca Barbato.
* | swscale: Add GRAY12Luca Barbato2016-11-101-0/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: Add GBRAP10 outputMichael Niedermayer2016-11-101-2/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: Add the GBRAP12 outputLuca Barbato2016-11-101-2/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | swscale: add support for P010LE/BE outputTimo Rothenpieler2016-08-311-2/+2
| |
* | swscale: add input support for gbrap10 pixel formatPaul B Mahol2016-06-101-0/+6
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | sws/aarch64: add ff_yuv2planeX_8_neonClément Bœsch2016-04-111-1/+2
| |
* | swscale/utils: Remove unused variableMichael Niedermayer2016-04-071-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | sws/aarch64: restore ff_hscale_8_to_15_neon()Clément Bœsch2016-04-051-1/+1
| | | | | | | | Fix final scaling and required filter alignment. Pass FATE.