summaryrefslogtreecommitdiff
path: root/libswscale/swscale_unscaled.c
Commit message (Collapse)AuthorAge
* swscale: add GBRAP14 format supportPaul B Mahol2023-09-28
|
* libswscale: force a minimum size of the slide for bayer sourcesChema Gonzalez2022-10-14
| | | | | | | | | Bayer sources are read in groups of 2 lines (e.g. for a BGGR flavor, the first row contains only B and G samples, while the second row contains only G and R samples). They need to be read as a whole. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* all: Replace if (ARCH_FOO) checks by #if ARCH_FOOAndreas Rheinhardt2022-06-15
| | | | | | | | | | | | | | | | | | This is more spec-compliant because it does not rely on dead-code elimination by the compiler. Especially MSVC has problems with this, as can be seen in https://ffmpeg.org/pipermail/ffmpeg-devel/2022-May/296373.html or https://ffmpeg.org/pipermail/ffmpeg-devel/2022-May/297022.html This commit does not eliminate every instance where we rely on dead code elimination: It only tackles branching to the initialization of arch-specific dsp code, not e.g. all uses of CONFIG_ and HAVE_ checks. But maybe it is already enough to compile FFmpeg with MSVC with whole-programm-optimizations enabled (if one does not disable too many components). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* sws: add a new scaling APIAnton Khirnov2021-09-06
|
* avutil/internal, swresample/audioconvert: Remove cpu.h inclusionsAndreas Rheinhardt2021-07-22
| | | | | | | | | | These inclusions are not necessary, as cpu.h is already included wherever it is needed (via direct inclusion or via the arch-specific headers). Also remove other unnecessary cpu.h inclusions from ordinary non-headers. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* sws: rename SwsContext.swscale to convert_unscaledAnton Khirnov2021-07-03
| | | | That function pointer is now used only for unscaled conversion.
* swscale/swscale_unscaled: don't use the optimized bgr24toYV12 unscaled ↵Limin Wang2021-06-06
| | | | | | | conversion when width%2 Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* lavu/mem: move the DECLARE_ALIGNED macro family to mem_internal on next+1 bumpAnton Khirnov2021-01-01
| | | | They are not properly namespaced and not intended for public use.
* libswscale: avoid UB nullptr-with-offset.Jeremy Leconte2020-12-24
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: do not drop half of bits from 16bit bayer formatsPaul B Mahol2020-08-08
|
* libswscale: add output support for AV_PIX_FMT_GBRAPF32Mark Reid2020-05-05
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/swscale_unscaled: add AV_PIX_FMT_GBRAP10 for LE and BE conversion ↵Limin Wang2019-12-10
| | | | | | | wrapper Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libswscale/swscale_unscaled.c: remove redundant codeTing Fu2019-12-06
| | | | | Signed-off-by: Ting Fu <ting.fu@intel.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/swscale_unscaled: fix gbrap10be md5 different on big endian systemLimin Wang2019-11-01
| | | | | | | | | | | | | | | | You can reproduce it by below command: ./ffmpeg -f lavfi -i "testsrc=duration=1:rate=30" -vf format=gbrap10 -vcodec rawvideo \ -pix_fmt gbrap10le -flags +bitexact -sws_flags +accurate_rnd+bitexact -fflags +bitexact \ -frames:v 1 -f nut md5: little-endian: f91e2edd8098276579c1929e5e160416 big-endian: ba4d011dbbdc78ccbf6cc7d698630929 Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: Add support for NV24 and NV42Philip Langdale2019-05-12
| | | | | | | | | | | 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/swscale_unscaled: Fix chroma slice heightMichael Niedermayer2019-03-28
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/swscale_unscaled: fixed the issue that when width/height is not ↵Dong, Jerry2019-03-28
| | | | | | | | 2-multiple, transition of nv12 to u/v planes is not completed. Signed-off-by: Dong, Jerry <jerry.dong@intel.com> Signed-off-by: Decai Lin <decai.lin@intel.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/swscale_unscaled : rename packed_16bpc_bswapMartin Vignali2018-10-24
| | | | is used for packed and planar format
* swscale/unscaled : add grayf32 le to beMartin Vignali2018-10-24
|
* swscale/swscale_unscaled: add gbrap -> packed rgb pathPaul B Mahol2018-09-09
|
* 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: Introduce a helper to identify semi-planar formatsPhilip Langdale2018-03-03
| | | | | This cleans up the ever-more-unreadable list of semi-planar exclusions for selecting the planar copy wrapper.
* 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.
* swscale: use dithering in DITHER_COPY only if not set -sws_dither noneMateusz2017-10-25
| | | | | | | | | | | | This patch uses dithering in DITHER_COPY macro only if it was not used option '-sws_dither none'. With option '-sws_dither none' it uses downshift. For human eye dithering is OK, for video codecs not necessarily. If user don't want to use dithering, we should respect that. Signed-off-by: Mateusz Brzostek <mateuszb@poczta.onet.pl> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: more accurate DITHER_COPY macro for full and limited rangeMateusz2017-10-23
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lsws/rgb2rgb: Add unscaled 48bit to 64bit rgb conversion.Carl Eugen Hoyos2017-08-24
| | | | | | Based on b4befca2 and 6b7849e6 by Paul B Mahol. Fixes ticket #6608.
* libswscale: add gray9 supportPaul B Mahol2017-08-07
|
* swscale: add P016 input supportPhilip Langdale2017-02-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 unscaled conversion from yuv420p to p010Timo Rothenpieler2016-09-06
|
* swscale/swscale_unscaled: Try to fix bayer_to_yv12_wrapper() with slicesMichael Niedermayer2016-09-03
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/swscale_unscaled: Try to fix Rgb16ToPlanarRgb16Wrapper() with slicesMichael Niedermayer2016-09-03
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: add unscaled copy from yuv420p10 to p010Timo Rothenpieler2016-09-03
|
* swscale/swscale_unscaled: Fix packed_16bpc_bswap() with slicesMichael Niedermayer2016-09-02
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale: fix crash with swscale-test when using slicesPedro Arthur2016-06-10
|
* sws/aarch64: add {nv12,nv21,yuv420p,yuv422p}_to_{argb,rgba,abgr,rgba}_neonClément Bœsch2016-03-01
|
* Add GBRAP12 pixel formatKieran Kunhya2016-02-24
| | | | 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/swscale_unscaled: Fix odd height inputs for bayer_to_yv12_wrapper()Michael Niedermayer2016-01-17
| | | | | | | | Fixes: 372d2df1f04b49e25f109f07f90b1505/asan_heap-oob_2835d2e_8501_99e0114d7ba3a6db885d0b4684d200c1.cine Fixes out of array read Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/swscale_unscaled: Fix odd height inputs for bayer_to_rgb24_wrapper()Michael Niedermayer2016-01-17
| | | | | | | | Fixes: 372d2df1f04b49e25f109f07f90b1505/asan_heap-oob_2835d2e_8501_99e0114d7ba3a6db885d0b4684d200c1.cine Fixes out of array read Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* swscale/arm: add ff_nv{12,21}_to_{argb,rgba,abgr,bgra}_neonMatthieu Bouron2015-11-23
| | | | | Signed-off-by: Matthieu Bouron <matthieu.bouron@stupeflix.com> Signed-off-by: Clément Bœsch <clement@stupeflix.com>
* Replace all remaining occurances of step/depth_minus1 and offset_plus1Hendrik Leppkes2015-09-08
|
* Merge commit '2268db2cd052674fde55c7d48b7a5098ce89b4ba'Hendrik Leppkes2015-09-08
|\ | | | | | | | | | | | | * 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-07
| | | | | | | | | | | | The new fields can be accessed directly and are more intelligible. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * libswscale: fix compiler warnings enumerated type mixed with another typeHimangi Saraogi2015-03-15
| | | | | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | swscale: ayuv64le input supportPaul B Mahol2015-07-24
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | swscale/swscale_unscaled: Fix rounding difference with RGBA output between ↵Michael Niedermayer2015-06-29
| | | | | | | | | | | | | | | | little and big endian Fixes fate/dds-rgb16 on big endian Signed-off-by: Michael Niedermayer <michaelni@gmx.at>