dsmudhar
6b852a3fd9
libavutil/opencl: fixed uninitialized var warning
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
b50bd69516
avutil/eval-test: Check av_expr_parse_and_eval() for failure and also check it in the fate test
Fixes CID1361940
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Diego Biurrun
ded4a6543d
xtea-test: Use struct allocation functions from the API
9 years ago
Diego Biurrun
8131bd4c22
blowfish-test: Use struct allocation functions from the API
9 years ago
Diego Biurrun
a86ef80494
blowfish-test: Return different values for different errors
9 years ago
Vittorio Giovara
0c4468dc18
stereo3d: Add API to get name from value or value from name
Use it in av_dump_format() instead of a huge switch case.
9 years ago
Anton Khirnov
c46db38cde
hwcontext: add a dxva2 implementation
10 years ago
Anton Mitrofanov
2fb1d17a5a
x86inc: Enable AVX emulation in additional cases
Allows emulation to work when dst is equal to src2 as long as the
instruction is commutative, e.g. `addps m0, m1, m0`.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Anton Mitrofanov
300fb0df84
x86inc: Improve handling of %ifid with multi-token parameters
The yasm/nasm preprocessor only checks the first token, which means that
parameters such as `dword [rax]` are treated as identifiers, which is
generally not what we want.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Anton Mitrofanov
8d02579fae
x86inc: Fix AVX emulation of some instructions
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Henrik Gramner
ba3eb745cc
x86inc: Fix AVX emulation of scalar float instructions
Those instructions are not commutative since they only change the first
element in the vector and leave the rest unmodified.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
ZhouXiaoyong
d680ab1c46
avutil/mips: header asmdefs.h add some PTR_ macros for loongson
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
James Almer
004b582386
avutil/lzo: split test out into a separate file
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
d8ef8b960a
avutil/sha512-test: fix memleak
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
7ee0e0ca1d
avutil/sha-test: fix memleak
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
64dbfcc415
avutil/ripemd-test: fix memleak
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
James Almer
f92d2f3292
avutil/aes-test: fix memleak
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Diego Biurrun
a6a750c7ef
tests: Move all test programs to a subdirectory
9 years ago
Diego Biurrun
257f00ec1a
Split global .gitignore file into per-directory files
9 years ago
James Almer
cd244fae98
avutil/cpu-test: Fix includes (needed for HAVE_*)
Commit message by commiter
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
65ffc0b1ed
avutil/float_dsp-test: Add include config.h for HAVE_*
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
James Almer
7d8e19a5c4
avutil: make crypto testprogs include headers only
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Jan Ekström
1f77e634bb
colorspace: Add support for BT709
BT.709 coefficients were gathered from the first two parts of BT.709
to BT.2020 conversion guide in ARIB STD-B62 (Pt. 1, Chapter 6.2.2).
They were additionally confirmed by manually calculating values.
9 years ago
Przemysław Sobala
1a3cff4f7e
libavutil/opt: add writing AV_OPT_TYPE_VIDEO_RATE AVOption
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Muhammad Faiz
83065939cb
avutil/parsing: add '\r' as whitespace
for compatibility with platforms that treat it
as newline
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
9 years ago
Vittorio Giovara
41ed7ab45f
cosmetics: Fix spelling mistakes
Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years ago
Diego Biurrun
f2422b5875
testprogs: Mark some tables as static const
10 years ago
Michael Niedermayer
492011f3c6
avutil/log: Fix occured typo
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Andreas Weis
333207224f
avutil/log: added test case for av_log_format_line2
Signed-off-by: Andreas Weis <github@ghulbus-inc.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Andreas Weis
fb9187129c
avutil/log: added av_log_format_line2 which returns buffer length
The new function behaves the same as av_log_format_line, but also forwards
the return value from the underlying snprintf call. This will allow
callers to accurately determine the size requirements for the line buffer.
Signed-off-by: Andreas Weis <github@ghulbus-inc.de>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Jan Ekström
9779b62624
pgssubdec: fix subpicture output colorspace and range
Functionality used before didn't widen the values from limited to
full range. Additionally, now the decoder uses BT.709 where it
should be used according to the video resolution.
Default for not yet set colorimetry is BT.709 due to most observed
HDMV content being HD.
BT.709 coefficients were gathered from the first two parts of BT.709
to BT.2020 conversion guide in ARIB STD-B62 (Pt. 1, Chapter 6.2.2).
They were additionally confirmed by manually calculating values.
Fixes #4637
9 years ago
Michael Niedermayer
a39e3e5e7b
avutil/aes: Remove duplicate include
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Anton Mitrofanov
e428f3b30c
x86inc: Enable AVX emulation in additional cases
Allows emulation to work when dst is equal to src2 as long as the
instruction is commutative, e.g. `addps m0, m1, m0`.
10 years ago
Anton Mitrofanov
4bd5583ace
x86inc: Improve handling of %ifid with multi-token parameters
The yasm/nasm preprocessor only checks the first token, which means that
parameters such as `dword [rax]` are treated as identifiers, which is
generally not what we want.
10 years ago
Anton Mitrofanov
42be240ad6
x86inc: Fix AVX emulation of some instructions
10 years ago
Henrik Gramner
8dd3ee9ddd
x86inc: Fix AVX emulation of scalar float instructions
Those instructions are not commutative since they only change the first
element in the vector and leave the rest unmodified.
10 years ago
Thomas Guillem
785bfb1d7b
pixfmt: fix wrong comment
The h264/hevc Annex E colour primaries table says that AVCOL_SPC_SMPTE170M is
similar than AVCOL_SPC_SMPTE240M. These two values are not similar than
AVCOL_SPC_BT470BG.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Anton Khirnov
a0f469da74
hwcontext: initialize sw_format in av_hwframe_ctx_alloc()
9 years ago
Martin Storsjö
798845ce7e
testprogs: Add missing libm.h includes
This fixes building on MSVC 2010 and 2012 after d12b5b2f13 .
Signed-off-by: Martin Storsjö <martin@martin.st>
9 years ago
Diego Biurrun
d12b5b2f13
build: Split test programs off into separate files
This avoids spurious library rebuilds when only the test program
code is changed and simplifies the build system.
10 years ago
Diego Biurrun
01621202aa
build: miscellaneous cosmetics
Restore alphabetical order in lists, break overly long lines, do some
prettyprinting, add some explanatory section comments, group parts
together that belong together logically.
10 years ago
Stefano Sabatini
e8a9b64410
lavu/base64: add AV_BASE64_DECODE_SIZE() macro
This is consistent with the AV_BASE64_SIZE macro and avoids the literal
use of constants in the code.
10 years ago
wm4
f099cb2f8a
lavu: improve documentation of some AVFrame functions
10 years ago
Lou Logan
06eef96b69
fix some a/an typos
Signed-off-by: Lou Logan <lou@lrcd.com>
10 years ago
Thilo Borgmann
4ebf0b109c
lavu/dict: Add new flag to allow multiple equal keys.
10 years ago
Diego Biurrun
3b08d9d932
testprogs: K&R formatting cosmetics
10 years ago
Michael Niedermayer
54f43984e1
avutil/parseutils: mark args as static const
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Petru Rares Sincraian
f707042c93
Added more tests to libavutil/parseutils.c
- Added tests for av_find_info_tag().
- Added test for av_get_known_color_name()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
10 years ago
Diego Biurrun
439929859a
testprogs: Clean up #includes
10 years ago
Michael Niedermayer
564b4591bb
opt: Add av_opt_copy()
This includes documentation and other modifications by
Lukasz Marek and Martin Storsjö.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago