Clément Bœsch
d2c70fc887
sws/tests/pixdesc_query: sort pixel formats
7 years ago
Clément Bœsch
ca23d3491d
sws/tests/pixdesc_query: save every pix fmts in a list
...
This will be required for the next commit.
7 years ago
Diego Biurrun
825e463a17
build: Add feature test macros for glibc 2.19+
...
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.
7 years ago
Diego Biurrun
fd502f4f5f
build: Generalize yasm/nasm-related variable names
...
None of them are specific to the YASM assembler.
(Cherry-picked from libav commit 39e208f4d4
)
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Michael Niedermayer
7796f29065
libswscale/tests/swscale: Fix uninitialized variables
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Diego Biurrun
0fd0d4fd0a
swscale-test: const correctness
8 years ago
Luca Barbato
37f573543c
swscale: Convert the check check_image_pointers helper to a macro
...
Avoid warnings about types mismatch and make the code a little simpler.
8 years ago
Luca Barbato
f56fa95cd1
swscale: Do not shift negative values directly
...
It is undefined in C as reported:
warning: shifting a negative signed value is undefined
8 years ago
Michael Niedermayer
ac29b82ec5
swscale: Add gbrap10 output
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years ago
Paul B Mahol
f6a9c20a52
swscale: Add input support for gbrap10 pixel format
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Carl Eugen Hoyos
c1616b454d
lsws/utils: Make gray10 and gray12 full-scale like gray8 and gray16.
8 years ago
Michael Niedermayer
22b0daa1b3
Bump versions for master after 3.3
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
e1cc7f83df
Bump minor for 3.3
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
58b867a7cf
Bump minor versions for master after release/3.3 branchpoint
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
fc332f3e29
Bump minor versions for staring release/3.3 branch
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Clément Bœsch
99dd6fe62c
sws/tests/pixdesc_query: remove func wrappers
8 years ago
Clément Bœsch
bc7308aae8
sws: make is{RGB,BGR}inInt functions
8 years ago
Vittorio Giovara
07a2b15594
Bump major versions of all libraries
...
This disables everything that was deprecated at least 18 months ago.
Readjust the minimum API version as needed, postponing any
API-incompatible changes until the next bump.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Clément Bœsch
e811f84a2e
swscale: cosmetics in is{RGB,BGR}inInt
...
Reduce diff with Libav.
8 years ago
Clément Bœsch
d6635daded
swscale: remove unused is{RGB,BGR}inBytes
8 years ago
Clément Bœsch
ff6bc16c5a
swscale: use a (more correct) function for isPacked
8 years ago
Clément Bœsch
2b9a52bcca
swscale: use a function for isAnyRGB
8 years ago
Clément Bœsch
c30875e8b2
swscale: use a function for isBayer
8 years ago
Clément Bœsch
f052b1b40f
swscale: use a function for isGray
8 years ago
Clément Bœsch
08e1376d81
fate: add fate-sws-pixdesc-query
...
Test the pixel format querying within libswscale.
8 years ago
Diego Biurrun
994c4bc107
x86util: Port all macros to cpuflags
...
Also do some small cosmetic changes: Drop pointless _MMX suffix from ABSD2
macro name, drop pointless check for MMX support, we always assume MMX is
available in our SIMD code, fix spelling.
8 years ago
Carl Eugen Hoyos
851f4255e0
lsws/slice: Move a misplaced const.
...
Fixes a gcc warning:
libswscale/slice.c:178:56: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
8 years ago
Carl Eugen Hoyos
a9c20598b5
lsws/input: Do not define unused functions.
...
Fixes warnings like the following:
libswscale/input.c:951:13: warning: ‘planar_rgb14be_to_a’ defined but not used
8 years ago
Diego Biurrun
39e208f4d4
build: Generalize yasm/nasm-related variable names
...
None of them are specific to the YASM assembler.
8 years ago
Philip Langdale
4c2176d45b
swscale: add P016 input support
8 years ago
Diego Biurrun
5c0e2b13eb
swscale-test: const correctness for pointer variable
...
libswscale/swscale-test.c:369:20: warning: passing argument 2 of ‘sws_scale’ from incompatible pointer type [-Wincompatible-pointer-types]
libswscale/swscale.h:207:5: note: expected ‘const uint8_t * const* {aka const unsigned char * const*}’ but argument is of type ‘uint8_t ** {aka unsigned char **}’
8 years ago
Michael Niedermayer
03ce71e4a1
swscale/swscale: Fix dereference of stride array before null check
...
Fixes: CID1396263
Fixes: CID1396271
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Diego Biurrun
92db508307
build: Generate pkg-config files from Make and not from configure
...
This moves work from the configure to the Make stage where it can
be parallelized and ensures that pkgconfig files are updated when
library versions change.
Bug-Id: 449
8 years ago
Andreas Cadhalpun
319438e2f2
swscale: save ebx register when it is not available
...
Configure checks if the ebx register can be used for asm and it has to
be saved if and only if this is not the case.
Without this the build fails when configuring with --toolchain=hardened
--disable-pic on i386 using gcc 4.8:
error: PIC register clobbered by '%ebx' in 'asm'
In that case gcc 4.8 reserves the ebx register for the GOT needed for
PIE, so it can't be used in asm directly.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years ago
Diego Biurrun
ea7ee4b4e3
ppc: Centralize compiler-specific altivec.h #include handling in one place
...
Also move #includes into canonical order where appropriate.
8 years ago
Paul B Mahol
6427c9ffee
swscale: add gbr(a)p16 output support
8 years ago
Michael Niedermayer
ac206bb175
swscale/options: Use AV_OPT_TYPE_PIXEL_FMT
...
Found-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Carl Eugen Hoyos
b5177c7051
lsws: Add GRAY10 conversion.
...
Based on 19be5fb7
by Luca Barbato.
8 years ago
Luca Barbato
19be5fb728
swscale: Add GRAY12
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
b828788d58
swscale: Add GBRAP10 output
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Luca Barbato
2c7d8cbd66
swscale: Add the GBRAP12 output
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
873d06c76e
swscale/output: Fix alpha shift in yuv2gbrp_full_X_c()
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
a340cfef82
swscale/input: Fix alpha bswap for set readAlpPlanar
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
d736b52a04
swscale: Drop is9_OR_10BPS() use, its name is not correct
...
Found-by: Luca Barbato
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Luca Barbato
ab839054e6
swscale: Add GRAY12
8 years ago
Diego Biurrun
1263b2039e
Adjust printf conversion specifiers to match variable signedness
8 years ago
Michael Niedermayer
1609935b6c
Bump minor versions after 3.2 branchpoint to seperate release
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
3f3025205f
Bump minor versions for 3.2
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
be9dba5c8a
swscale: Properly load alpha for planar rgb
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years ago
Luca Barbato
881477c77b
swscale: Add the GBRAP12 output
8 years ago