Janne Grunau
6a0fa4d86f
aarch64: remove optional :pg_hi21: for adrp instruction
...
Clang's integrated assembler does not support it.
11 years ago
Janne Grunau
fd2981ea92
aarch64: add darwin style PAGE/PAGEOFF relocations
11 years ago
Michael Niedermayer
666e29fe9e
avutil/mathematics/av_add_stable: Avoid av_cmp_q() call
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
e9add0d85b
av_add_stable: Add fast special case where step can be represented exactly
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
4956d0e5a6
avutil/mathematics/av_add_stable: check for the common case of inc=1
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
5b7519fbaa
avutil/mathematics/av_add_stable: avoid unneeded variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Diego Biurrun
880e2aa236
Remove all Blackfin architecture optimizations
...
Blackfin is a painful platform to work with, no test machines are available
and the range of multimedia applications is dubious. Thus it only represents
a maintenance burden.
11 years ago
Michael Niedermayer
00759d71a2
avutil/opt: add av_opt_copy()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
f028b7af7b
avutil/opt: add opt_size()
...
If people want, this could be exported as av_opt_size()
11 years ago
wm4
8c02adc62d
lavu: add all color-related enums to AVFrame
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
Michael Niedermayer
879aa062f9
avutil/frame: frame_copy_video: support copying from a smaller to a larger frame
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Christophe Gisquet
2267003981
x86: hpeldsp: better factorization
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Martin Storsjö
08cd92144e
aarch64: Use the correct syntax for relocations
...
This fixes building in PIC mode with gas. The examples in the gas
manual showed using a # here even though gas itself actually didn't
support that syntax (and the gas test suite only tests it without
the extra hash sign).
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Roman Savchenko
a53551cba8
frame: fix the error path in av_frame_copy_props()
...
First free metadata, then the side data it is contained in.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
James Almer
561bfc85eb
x86/dsputilenc: implement SSE2 versions of pix_{sum16, norm1}
...
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Diego Biurrun
b5aa485513
ppc: Move vec_unaligned_load macro to util_altivec
...
This allows reusing it from multiple files.
11 years ago
Diego Biurrun
593886b5dd
ppc: util_altivec: Drop unused macros
11 years ago
Thierry Foucu
12875df324
Timecode: Support 48fps
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Nicolas George
55cc60cd6d
lavu: add thread message API.
11 years ago
Carl Eugen Hoyos
4d8c28deab
imgutils: make systematic palette opaque.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
Clément Bœsch
fa972dcf1a
avutil/display: use hypot().
11 years ago
Michael Niedermayer
6310eb8010
avutil/cpu: force mmx on selection of higher x86 SIMD features
...
Fixes various runtime failures with manually set flags that represent no
existing CPU
Fixes Ticket3653
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Lukasz Marek
7336e39f3c
lavu/fifo: add av_fifo_alloc_array function
...
Allows to alloc fifo buffer by passing
number of elements and size of element.
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
11 years ago
Martin Storsjö
82fc9f4b38
display: Include mathematics.h for fallback definition of NAN
...
This fixes compilation with MSVC.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Vittorio Giovara
bddd8cbf68
Add transformation matrix API.
...
Add AV_PKT_DATA_DISPLAYMATRIX and AV_FRAME_DATA_DISPLAYMATRIX as stream and
frame side data (respectively) to describe a display transformation matrix
for linear transformation operations on the decoded video.
Add functions to easily extract a rotation angle from a matrix and
conversely to setup a matrix for a given rotation angle.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
Olivier Langlois
0eec06ed87
lavu: add av_gettime_relative()
...
These functions are using the POSIX clock_gettime() function with the
CLOCK_MONOTONIC clock id. If these are not present on the targeted
platform, the new functions will fallback on using the original realtime functions
av_gettime() and av_usleep().
Monotonic support can be added on other platforms with their
equivalent native system API eventually if possible.
Whenever time is requested to measure relative time, the monotonic clock,
when available, is superior to the system realtime clock because it is
not affected by discontinuous jumps in the system time
In a future step, offering the flexibility to let the user choose between
rt and monotonic clock for avdevices packets will be investigated.
It is very easy to experience the issues that this patch attempt to address
by rewinding back in the past the system time while ffmpeg is running.
this is breaking the ffmpeg report printing (ffmepg.c:print_report()) and
the the rate emulator functionality (-re) without the patch.
Signed-off-by: Olivier Langlois <olivier@trillion01.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
3690393f68
avutil/dict: delay addition of const from e12a73246d
until next major ABI bump
...
This unbreaks API
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
acb6f3af4f
avutil/fifo: delay addition of const from 78d3453c4a
until next major ABI bump
...
This unbreaks API, for example audacity has more build errors due to this
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
0fdc3cd86f
avutil/version: add FF_CONST_AVUTIL53
...
This will become "const" on the next major API version
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Anton Khirnov
66e6c8a7b4
lavu: Add a pixel format for new VDA hwaccel
...
The current hwaccel is broken and cannot be fixed in a compatible
way. It will be deprecated and replaced with a new one.
11 years ago
Matt Oliver
c6bf660bef
opencl: Make init_mtx static with volatile lock
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Lukasz Marek
351f6118c7
lavu/fifo: add av_fifo_freep function
...
Function allows to free fifo and reset freed pointer.
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
11 years ago
Matt Oliver
1898c2f49d
inline asm: fix arrays as named constraints.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
4aa7848eb8
avutil/file_open: Use av_mallocz_array()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
2ded57216e
avutil/audio_fifo: Use av_mallocz_array()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Lukasz Marek
78d3453c4a
lavu/fifo: add const to arguments
...
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
beecfa81ac
avutil/pca: Use av_malloc_array()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Luca Barbato
de69aedf99
mathematics: K&R formatting cosmetics
11 years ago
Lukasz Marek
ba52fb11dc
lavu/opt: add av_opt_set_dict2() function
...
Existing av_opt_set_dict doesn't accept flags.
It doesn't allow to pass options to nested structs.
New function alllows that.
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
11 years ago
Matt Oliver
5b9bb4d9ec
opencl: add support for non-pthread locking
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
617e866e25
Move av_find_best_pix_fmt_of_2() from avcodec to avutil
...
This avoids a dependancy of libavfilter on libavcodec
See Ticket 3592
Fixes Ticket2784
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Nicolas George
b804eb4323
lavu/hash: add hash_final helpers.
...
The helpers use local memory to compute the final hash,
making AV_HASH_MAX_SIZE safe to use.
11 years ago
Michael Niedermayer
7c71076470
avutil/log: fix memleak from 669a09fb37
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
tue46wsdgxfjrt
669a09fb37
Add AV_LOG_PRINT_LEVEL flag to include log severity in default log formatting.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
James Almer
25d5ea6d5a
lavu: add LOCAL_ALIGNED_32
...
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Y.C. Liu
cebe06a0bf
avutil/opencl: fix a segmentfault in libavutil/opencl.c
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Janne Grunau
a88e1d1c59
lavu: add CHK_OFFS as AV_CHECK_OFFSET to check struct member offsets
11 years ago
Carl Eugen Hoyos
ced0d6c14d
Use correct msvc type specifiers for ptrdiff_t and size_t.
...
The Windows runtime aborts if it finds %t or %z.
Fixes ticket #3472 .
Reviewed-by: Ronald Bultje
11 years ago
Michael Niedermayer
e79b15f5f1
avutil/avutil.h: remove duplicate rational.h include
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
b0bdc2a712
avutil: move av_get_time_base_q() after include rational.h
...
Fix compilation
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
11 years ago