Kieran Kunhya
e208e6d209
lavu: Add interleaved 4:2:2 8/10-bit formats
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years ago
Alex Smith
66c2f200b6
lavu/attributes: Don't define av_restrict
...
This is always defined in config.h.
Original patch by Derek Buitenhuis.
11 years ago
Michael Niedermayer
0506f3fa38
avutil/cpu: remove duplicate include
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Martin Storsjö
67e285ceca
mem: Handle av_reallocp(..., 0) properly
...
Previously this did a double free (and returned an error).
Reported-by: Justin Ruggles
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Alex Smith
33b88f2a4a
msvc/icl: Use __declspec(noinline)
...
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Alex Smith
09f2581dc5
msvc/icl: Use __declspec(deprecated)
...
Prior to this on msvc/icl there was no handling of deprecated functions
and the deprecated warning was disabled.
After enabling there are a number of warnings relating to the CRT and
the use of the non-secure versions of several functions. Defining
_CRT_SECURE_NO_WARNINGS silences these warnings.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Michael Niedermayer
1225b67fc9
avutil/frame: suppress "comparison of unsigned expression < 0 is always false" warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
9c8aeacf82
avutil: add av_get_colorspace_name()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Lenny Wang
29664fab0c
OpenCL: convert meaningless "device id" output to "device name"
...
Approved-by: Wei Gao <highgod0401@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Luca Barbato
3feb3d6ce4
mem: Introduce av_reallocp
11 years ago
Diego Biurrun
9997a812e7
mem: Document the non-compatibility of av_realloc() and av_malloc()
11 years ago
Michael Niedermayer
f3ba91a3f1
avutil/pixdesc: dont try to use av_read_image_line() with bayer formats
...
It has undefined behavior ATM as its not supported.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
a25585bb50
avutil/pixdesc: Prevent minor array overread in ff_check_pixfmt_descriptors()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
James Almer
bbcaf25d4d
lavu/sha512: Fully unroll the transform function loops
...
crypto_bench SHA-512 results using an AMD Athlon X2 7750+, mingw32-w64 GCC 4.7.3 x86_64
Before:
lavu SHA-512 size: 1048576 runs: 1024 time: 12.737 +- 0.147
After:
lavu SHA-512 size: 1048576 runs: 1024 time: 11.670 +- 0.173
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
James Almer
7e4fe5162a
lavu/sha: Fully unroll the transform function loops
...
crypto_bench SHA-1 and SHA-256 results using an AMD Athlon X2 7750+, mingw32-w64 GCC 4.7.3 x86_64
Before:
lavu SHA-1 size: 1048576 runs: 1024 time: 9.012 +- 0.162
lavu SHA-256 size: 1048576 runs: 1024 time: 19.625 +- 0.173
After:
lavu SHA-1 size: 1048576 runs: 1024 time: 7.948 +- 0.154
lavu SHA-256 size: 1048576 runs: 1024 time: 17.841 +- 0.170
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Diego Biurrun
a0b901a348
Drop pointless directory name prefixes from #includes in the current dir
11 years ago
James Almer
8702a94e49
lavu/ripemd: Add a size optimized version of the transform functions
...
When compiling with --enable-small, ripemd.o will weigh a few kilobytes less than
it used to before the previous commit.
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
James Almer
452ac2aaec
lavu/ripemd: Fully unroll the transform function loops
...
crypto_bench RIPEMD-160 results using an AMD Athlon X2 7750+, mingw32-w64 GCC 4.8.1 x86_64
Before:
lavu RIPEMD-160 size: 1048576 runs: 1024 time: 12.342 +- 0.199
After:
lavu RIPEMD-160 size: 1048576 runs: 1024 time: 10.143 +- 0.192
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Kirill Gavrilov
0f48acf29b
lavu: provide msvc implementation of attribute_deprecated
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Paul B Mahol
6508bd4aa3
pixfmt: add native GBRAP16 format
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Diego Biurrun
c3e6e8f06c
mem: Do not check unsigned values for negative size
11 years ago
Diego Biurrun
b634b36fce
mem: Improve documentation wording and spelling
11 years ago
Nicolas George
d5b58f678d
tools: add benchmark for crypto functions.
...
The benchmark tests the speed of the following algorithms:
MD5, SHA-1, SHA-256, SHA-512, RIPEMD-160, AES-128.
It can optionally be built to perform the same benchmark on
other crypto libraries, for comparison purposes.
The supported libraries are:
- crypto: OpenSSL's libcrypto;
- gcrypt: GnuTLS's libgcrypt;
- tomcrypt: LibTomCrypt
To enable them, use this syntax:
make VERSUS=crypto+gcrypt+tomcrypt tools/crypto_bench
They do not need to have been enabled in configure.
11 years ago
Luca Barbato
b4ec7a5fee
mem: Document the av_realloc family of functions properly
...
realloc() does not accept pointers from memalign().
11 years ago
Michael Niedermayer
cc84f30402
avutil/fifo: assert that theres enough data in the fifo on drain calls.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
4aeb996f71
pixfmt: add native bayer 16bit formats
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Peter Ross
9116995efb
libavutil: add AV_PIX_FMT_BAYER pixel formats
...
The pixel format descriptors are set to more or less arbitrary
values as bayer formats do not fit in the descriptors structure.
These values are currently not used for bayer formats and thus
do not matter.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Lukasz Marek
0b46d6f3ef
lavu/bprint: add append buffer function
...
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Reveiwed-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Thilo Borgmann
d814a839ac
Reinstate proper FFmpeg license for all files.
12 years ago
Diego Biurrun
79aec43ce8
x86: Add and use more convenience macros to check CPU extension availability
12 years ago
Diego Biurrun
7ffda66fd5
arm: float_dsp: Propagate cpu_flags to vfp initialization function
12 years ago
Diego Biurrun
f61bece684
ppc: Add and use convenience macro to check for AltiVec availability
12 years ago
Diego Biurrun
8410d6e93c
avutil: Refactor CPU extension availability macros
12 years ago
Diego Biurrun
b78b10c4b7
avutil: Move internal CPU detection function declarations to private header
12 years ago
Alfred E. Heggestad
16c3ed5837
libavutil: cast truncated values to uint32_t
...
programs using ffmpeg that are compiled with -Wshorten-64-to-32
gives a warning when using header files common.h and rational.h
cast 64-bit truncated values to (uint32_t) to avoid the warning
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
3500f53c93
libavutil/opt.h: Fix duplicate words
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
5086b26809
libavutil/file_open.c: Fix duplicate words
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Kirill Gavrilov
53f309c617
pixfmt: extend description for planar YUV 9/10 bits formats
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Thilo Borgmann
f18ccb529f
Fix wrong use of "an" in some comments.
12 years ago
Michael Niedermayer
5717689c75
avutil/avstring: make const tables static const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
2215947438
avutil/parseutils:make const tables static const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
64a3dbadee
avutil/ripemd:make const tables static const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
0e98a13322
avutil/xtea: make const tables static const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
90b40b45d4
avutil/sha:make const tables static const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
475df42eb6
avutil/sha512: make const tables static const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Thilo Borgmann
4dcb2f7478
lavu: fix grammar in doxy for av_frame_ref.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Derek Buitenhuis
d9c1fb8376
bprint: Include va_copy compat
...
Fixes build with MSVC and ICL.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
12 years ago
Michael Niedermayer
5fc5170c55
avutil/opt: make const tables static const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
18b1381c5f
avutil/opt: fix av_log type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
148310ca16
avutil/log: Use bprint for part
...
This should fix the issue with strings longer than 1024
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago