Vittorio Giovara
04ccd584a7
pixfmt: mark further reserved values
10 years ago
Vittorio Giovara
c732c62cee
doc: expand description for some color properties
10 years ago
James Almer
e524a9b1ff
avutil: remove obsolete FF_API_INTFLOAT cruft
...
Signed-off-by: James Almer <jamrial@gmail.com>
10 years ago
James Almer
3e57520982
avutil: remove obsolete FF_API_SAMPLES_UTILS_RETURN_ZERO cruft
...
Signed-off-by: James Almer <jamrial@gmail.com>
10 years ago
James Almer
71718de814
avutil: remove obsolete FF_API_FIND_OPT cruft
...
Signed-off-by: James Almer <jamrial@gmail.com>
10 years ago
James Almer
1abb77285c
avutil: remove obsolete FF_API_GET_BITS_PER_SAMPLE_FMT cruft
...
Signed-off-by: James Almer <jamrial@gmail.com>
10 years ago
wm4
cdd6f059a6
avcodec, avutil: allow more control about how samples are skipped
...
Add CODEC_FLAG2_SKIP_MANUAL (exposed as "skip_manual"), which makes
the decoder export sample skip information via side data, instead
of applying it automatically. The format of the side data is the
same as AV_PKT_DATA_SKIP_SAMPLES, but since AVPacket and AVFrame
side data constants overlap, AV_FRAME_DATA_SKIP_SAMPLES needs to
be introduced.
This is useful for applications which want to do the timestamp
calculations manually, or which actually want to retrieve the
padding.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
0d92b0d5f4
avutil/avstring: Factor av_match_list() out
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
579a0fdc21
avutil/lls: Make unchanged function arguments const
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
b28f470df0
avutil/pca: Make argument of ff_pca_add() const
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
lvqcl
e58fc44649
avutil/x86/cpu: fix cpuid sub-leaf selection
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Luca Barbato
d995f0a155
log: Unbreak no-tty support on 256color terminals
10 years ago
Philip DeCamp
857fc0a71f
libavutil/opt: fix av_opt_set_channel_layout() to access correct memory address
...
Signed-off-by: Philip DeCamp <decamp@mit.edu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Nicolas George
eb7a6d0813
lavu/bprint: add const to av_bprint_is_complete() argument.
10 years ago
James Almer
95a064f530
avutil: remove obsolete FF_API_OLD_OPENCL cruft
...
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
10 years ago
James Almer
af7d260626
avutil: remove obsolete FF_API_LLS1 cruft
...
Reviewed-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: James Almer <jamrial@gmail.com>
10 years ago
Michael Niedermayer
8407cbbfc9
Fix "passing argument 1 of av_free discards const qualifier from pointer target type"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Rong Yan
8e8db16a2c
avutil/ppc/float_dsp_altivec: ppc: Fix bug in ff_vector_fmul_add_altivec() affecting little endian environments on POWER8
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Henrik Gramner
f629705b02
x86inc: Make INIT_CPUFLAGS support an arbitrary number of cpuflags
...
Previously there was a limit of two cpuflags.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years ago
Loren Merritt
ec217218c2
x86inc: Free up variable name "n" in global namespace
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years ago
Henrik Gramner
176a0fca3f
x86inc: Make ym# behave the same way as xm#
...
This makes more sense for future implementations of templates with zmm registers.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years ago
Gabriel Dume
1ec335513f
time: Add missing zero
...
Leftover of 56d7df91e010a177a80cfc8dbe394305
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Henrik Gramner
428aa14a48
x86inc: Make INIT_CPUFLAGS support an arbitrary number of cpuflags
...
Previously there was a limit of two cpuflags.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Henrik Gramner
720c21d11f
x86inc: Make ym# behave the same way as xm#
...
This makes more sense for future implementations of templates with zmm registers.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Loren Merritt
a4dbabc8b3
x86inc: free up variable name "n" in global namespace
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
467a55a4ee
avutil/md5: workaround clang 3.5 #20849
...
This avoids several failures on fate.ffmpeg.org, and thus makes real
bugs easier to spot
Reviewed-by: James Darnley <james.darnley@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Jörg Krause
02a2e171ad
libavutil/error: fix build with musl toolchain
...
Add the feature test macro which is required for building with the
musl toolchain.
The feature test macro _XOPEN_SOURCE = 600 provides the XSI-compliant
version of strerror_r().
Signed-off-by: Jörg Krause <jkrause@posteo.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Luca Barbato
ebef9f5a56
time: Use clock_gettime if the monotonic clock is available
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
10 years ago
Luca Barbato
c19a49e565
ppc: Support little endian intreadwrite
10 years ago
Clément Bœsch
e6b125e3be
avutil/pixelutils: add small buffers tests
10 years ago
Stefano Sabatini
d4ec07dfe7
lavu/avstring: check for overlong encodings in av_utf8_decode()
...
Fix reopened trac ticket #1163 .
10 years ago
Reimar Döffinger
1a558cec64
intmath.h: Remove duplicated ARM include.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
10 years ago
Reimar Döffinger
2ca7edda89
lavu/hash.c: Add missing "static const".
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
10 years ago
Reimar Döffinger
d9e2aceb7f
Add missing "const" all over the place.
...
Only "./configure --enable-gpl" on x86 was tested.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
10 years ago
James Darnley
8c1b942ad7
Replace incorrect use of "multiply" with "multiple"
...
Also replace the plural form "multiplies" with "multiples".
10 years ago
Michael Niedermayer
bb29896793
avutil/opencl: use av_malloc(z)_array()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Clément Bœsch
554d819062
avutil/pixelutils: faster pixelutils_sad_16x16
...
501 to 439 decicycles.
See 45c7f3997e
.
10 years ago
Reimar Döffinger
8fc9bd0d32
dict.c: Free non-strduped av_dict_set arguments on error.
...
Unfortunately this was not explicitly documented and thus
might be risky.
But all uses I could find in FFmpeg and one in VLC had a memleak
in these cases, and I could not find any that relied on the previous
behaviour.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
10 years ago
Clément Bœsch
45c7f3997e
avutil/pixelutils: faster pixelutils_sad_[au]_16x16
...
~560 → ~500 decicycles
This is following the comments from Michael in
https://ffmpeg.org/pipermail/ffmpeg-devel/2014-August/160599.html
Using 2 registers for accumulator didn't help. On the other hand,
some re-ordering between the movs and psadbw allowed going ~538 to ~500.
10 years ago
Clément Bœsch
980a5b01fd
avutil/motion_vector.h: fix coordinate types
...
See b0352b1997
for more information on the
feature.
10 years ago
Lukasz Marek
3c19744218
lavu/log: add device category macros
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Clément Bœsch
b0352b1997
avcodec: export motion vectors in frame side data on demand
...
The reasoning behind this addition is that various third party
applications are interested in getting some motion information out of a
video "for free" when it is available.
It was considered to export other information as well (such as the intra
information about the block, or the quantization) but the structure
might have ended up into a half full-generic, half full of codec
specific cruft. If more information is necessary, it should either be
added in the "flags" field of the AVMotionVector structure, or in
another side-data.
This commit also includes an example exporting them in a CSV stream.
10 years ago
Reimar Döffinger
bddc592001
dict.c: empty dictionaries should be a NULL pointer.
...
Ensure this is even the case if they are empty because
we failed adding the first entry.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
10 years ago
Reimar Döffinger
c2829dc925
dict.c: Add av_dict_set_int helper function.
...
This allows getting rid of the many, slightly differing, implementations
of basically the same thing.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
10 years ago
Gabriel Dume
4b1f5e5090
cosmetics: Write NULL pointer inequality checks more compactly
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years ago
Gabriel Dume
f929ab0569
cosmetics: Write NULL pointer equality checks more compactly
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years ago
Diego Biurrun
7c371754fb
atomic_win32: Drop unnecessary atomic.h #include
...
The file does not require atomic.h. Also kills function redefinition warnings.
10 years ago
Michael Niedermayer
8b6cbc3c33
avutil/opt: remove disabled old ABI compatibility code
...
Fixes some unused variable warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Diego Biurrun
e070d0a5ca
frame: Remove some FF_API_AVFRAME_COLORSPACE leftovers
10 years ago
Diego Biurrun
353240541d
cpu-test: Add unistd.h #include for getopt()
10 years ago