- Aug 14, 2018
-
-
Sergey Lavrushkin authored
Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- Jun 10, 2018
-
-
Carl Eugen Hoyos authored
Fixes the following warnings: In file included from libswscale/rgb2rgb.c:128:0: libswscale/rgb2rgb_template.c:346:13: warning: 'shuffle_bytes_3210_c' defined but not used libswscale/rgb2rgb_template.c:346:13: warning: 'shuffle_bytes_3012_c' defined but not used libswscale/rgb2rgb_template.c:346:13: warning: 'shuffle_bytes_1230_c' defined but not used
-
- May 05, 2018
-
-
Paul B Mahol authored
Signed-off-by:
Paul B Mahol <onemda@gmail.com>
-
- Apr 22, 2018
-
-
Martin Vignali authored
and checkasm test
-
- Apr 16, 2018
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- Apr 03, 2018
-
-
wm4 authored
PSEUDOPAL pixel formats are not paletted, but carried a palette with the intention of allowing code to treat unpaletted formats as paletted. The palette simply mapped the byte values to the resulting RGB values, making it some sort of LUT for RGB conversion. It was used for 1 byte formats only: RGB4_BYTE, BGR4_BYTE, RGB8, BGR8, GRAY8. The first 4 are awfully obscure, used only by some ancient bitmap formats. The last one, GRAY8, is more common, but its treatment is grossly incorrect. It considers full range GRAY8 only, so GRAY8 coming from typical Y video planes was not mapped to the correct RGB values. This cannot be fixed, because AVFrame.color_range can be freely changed at runtime, and there is nothing to ensure the pseudo palette is updated. Also, nothing actually used the PSEUDOPAL palette data, except xwdenc (trivially changed in the previous commit). All other code had to treat it as a special case, just to ignore or to propagate palette data. In conclusion, this was just a very strange old mechnaism that has no real justification to exist anymore (although it may have been nice and useful in the past). Now it's an artifact that makes the API harder to use: API users who allocate their own pixel data have to be aware that they need to allocate the palette, or FFmpeg will crash on them in _some_ situations. On top of this, there was no API to allocate the pseuo palette outside of av_frame_get_buffer(). This patch not only deprecates AV_PIX_FMT_FLAG_PSEUDOPAL, but also makes the pseudo palette optional. Nothing accesses it anymore, though if it's set, it's propagated. It's still allocated and initialized for compatibility with API users that rely on this feature. But new API users do not need to allocate it. This was an explicit goal of this patch. Most changes replace AV_PIX_FMT_FLAG_PSEUDOPAL with FF_PSEUDOPAL. I first tried #ifdefing all code, but it was a mess. The FF_PSEUDOPAL macro reduces the mess, and still allows defining FF_API_PSEUDOPAL to 0. Passes FATE with FF_API_PSEUDOPAL enabled and disabled. In addition, FATE passes with FF_API_PSEUDOPAL set to 1, but with allocation functions manually changed to not allocating a palette.
-
- Mar 31, 2018
-
-
Martin Storsjö authored
Vanilla clang supports altmacro since clang 5.0, and thus doesn't require gas-preprocessor for building the arm assembly any longer. However, the built-in assembler doesn't support .dn directives. This readds checks that were removed in d7320ca3, when the last usage of .dn directives within libav were removed. Alternatively, the assembly could be rewritten to not use the .dn directive, making it available to clang users. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- Mar 24, 2018
-
-
Martin Vignali authored
move shuffle_bytes_1230, 3012, 3210 with the other shuffle_byte declaration
-
Martin Vignali authored
-
Martin Vignali authored
swscale/rgb : move shuffle func shuffle_bytes_1230, shuffle_bytes_3012, shuffle_bytes_3210 in order to add SIMD
-
Martin Vignali authored
-
- Mar 03, 2018
-
-
Philip Langdale authored
This cleans up the ever-more-unreadable list of semi-planar exclusions for selecting the planar copy wrapper.
-
- Mar 02, 2018
-
-
Philip Langdale authored
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.
-
- Nov 13, 2017
-
-
Thomas Köppe authored
Variables used in inline assembly need to be marked with attribute((used)). Static constants already were, via the define of DECLARE_ASM_CONST. But DECLARE_ALIGNED does not add this attribute, and some of the variables defined with it are const only used in inline assembly, and therefore appeared dead. This change adds a macro DECLARE_ASM_ALIGNED that marks variables as used. This change makes FFMPEG work with Clang's ThinLTO. Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- Oct 29, 2017
-
-
Carl Eugen Hoyos authored
-
- Oct 25, 2017
-
-
Mateusz authored
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>
-
- Oct 23, 2017
-
-
Mateusz authored
Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- Oct 11, 2017
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- Oct 10, 2017
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
Diego Biurrun authored
We already rely on just mmap() in other places.
-
- Sep 22, 2017
-
-
Lou Logan authored
"apix_fmts" found by Marc Péchaud. "speedloss" found by Mikhail V. Signed-off-by:
Lou Logan <lou@lrcd.com>
-
- Aug 28, 2017
-
-
Derek Buitenhuis authored
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>
-
- Aug 25, 2017
-
-
Derek Buitenhuis authored
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>
-
- Aug 24, 2017
-
-
Carl Eugen Hoyos authored
Based on b4befca2 and 6b7849e6 by Paul B Mahol. Fixes ticket #6608.
-
- Aug 07, 2017
-
-
Paul B Mahol authored
-
- Aug 05, 2017
-
-
James Cowgill authored
Fixes filter-pixfmts-scale test failing on big-endian systems due to alpSrc not being cast to (const int32_t**). Also fixes distortions in the output alpha channel values by copying the alpha channel code from the rgba64 case found elsewhere in output.c. Fixes ticket 6555. Signed-off-by:
James Cowgill <James.Cowgill@imgtec.com> Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- Jul 30, 2017
-
-
Clément Bœsch authored
Fix CID 1415949
-
Clément Bœsch authored
Fixes ticket #6554
-
Clément Bœsch authored
-
Clément Bœsch authored
This will be required for the next commit.
-
- Jul 10, 2017
-
-
Diego Biurrun authored
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.
-
- Jun 21, 2017
-
-
Diego Biurrun authored
None of them are specific to the YASM assembler. (Cherry-picked from libav commit 39e208f4) Signed-off-by:
James Almer <jamrial@gmail.com>
-
- Apr 30, 2017
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- Apr 24, 2017
-
-
Diego Biurrun authored
-
- Apr 15, 2017
-
-
Luca Barbato authored
Avoid warnings about types mismatch and make the code a little simpler.
-
Luca Barbato authored
It is undefined in C as reported: warning: shifting a negative signed value is undefined
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc> Signed-off-by:
Luca Barbato <lu_zero@gentoo.org>
-
- Apr 13, 2017
-
-
Paul B Mahol authored
Signed-off-by:
Paul B Mahol <onemda@gmail.com>
-
- Apr 12, 2017
-
-
Carl Eugen Hoyos authored
-