Reimar Döffinger
1109680434
Revert "build: Remove redundant config.mak includes from subdirectory Makefiles."
...
This reverts commit a6213f3dce
.
14 years ago
Stefano Sabatini
5fba761f6e
samplefmt: remove deprecated use of av_get_bits_per_sample_fmt()
...
Use av_get_bytes_per_sample() instead.
Fix deprecation warning:
samplefmt.c: In function ‘av_samples_fill_arrays’:
samplefmt.c:88: warning: ‘av_get_bits_per_sample_fmt’ is deprecated (declared at samplefmt.c:76)
14 years ago
Diego Biurrun
a6213f3dce
build: Remove redundant config.mak includes from subdirectory Makefiles.
...
Calling Make from subdirectories is not supported and config.mak has
multiple inclusion guards anyway, so the top-level include is enough.
14 years ago
Diego Biurrun
adbfc605f6
doxygen: Consistently use '@' instead of '\' for Doxygen markup.
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Martin Storsjö
9abbe8cc13
Use av_printf_format to check the usage of printf style functions
...
This helps catching cases where the format string doesn't
match what is passed in, or injection bugs where user data
is passed in as format string.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
67e9ae14d9
Add av_printf_format, for marking printf style format strings and their parameters
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Mans Rullgard
8986fddc2b
ARM: allow building in Thumb2 mode
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Clément Bœsch
4a34e54b0e
Fix zero-length gnu_printf format string warning.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
940a55ccf4
eval: Fix 32bit unsigned parsing
...
Fixes ticket264
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Stefano Sabatini
141f03541b
opt: do not crash in av_set_options_string() if opts == NULL
...
Add missing NULL check, and update documentation accordingly.
14 years ago
Uoti Urpala
c98b928fa7
intreadwrite.h: fix AV_RL32/AV_RB32 signedness.
...
The output type of the AV_RL32/AV_RB32 macros was signed int. The
resulting overflow broke at least some ASF streams with large
timestamps. Fix by adding a cast to uint32_t.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Anton Khirnov
7c44d716e7
Add minor bumps and APIChanges entries for lavf private options.
14 years ago
Anton Khirnov
1b9b37b8a4
dict: add AV_DICT_APPEND flag.
14 years ago
Anton Khirnov
dc59ec5e79
AVOptions: add av_opt_find() as a replacement for av_find_opt.
14 years ago
Anton Khirnov
7e83e1c511
AVOptions: add av_opt_set_dict() mapping a dictionary struct to a context.
...
This way the caller can pass all the options in one nice package.
14 years ago
Michael Niedermayer
0fd82fedc9
pixfmt: Replace 9/10bit deprecation by a technical explanation.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Ronald S. Bultje
103278f7b0
libavutil/swscale: YUV444P10/YUV444P9 support.
...
Also add missing glue code for recently added YUV422P10 formats
to swscale.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Martin Storsjö
cb7c11cc9e
avoptions: Add an av_opt_flag_is_set function for inspecting flag fields
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Michael Niedermayer
6a137dde3e
dict: This code was developed in ffmpeg and not libav, nor by libav developers.
...
Correct copyright notices.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Anton Khirnov
d9f80ea2a7
Move metadata API from lavf to lavu.
...
Rename it to AVDictionary, since it will be used as such. Tags
documentation and metadata conversion API is lavf-specific, so remains
there.
14 years ago
Stefano Sabatini
a6703faa15
samplefmt: add av_get_bytes_per_sample()
...
Deprecate av_get_bits_per_sample_fmt(), which was a misnamed function.
For the moment we don't have sample formats with a non-integer number
of bytes, in that case we may need to create a new
av_get_bits_per_sample() function. In the meanwhile we prefer to adopt
this variant, since avoids divisions by 8 all over the place.
14 years ago
Diego Biurrun
e01bb264e7
inverse.c: Replace unnecessary intmath.h header by necessary stdint.h.
14 years ago
Diego Biurrun
dc25d79f49
Drop unnecessary directory prefixes from #include directives.
14 years ago
Michael Niedermayer
a39bd458a0
mem: Trying to workaround posix_memalign() bug on OSX
...
This patch is based on a patch by John Stebbins
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Stefano Sabatini
d58ed64a89
eval: add support for pow() function
...
It is a more search-friendly alternative to the ^ operator.
14 years ago
Stefano Sabatini
263f57c6d7
pixdesc: remove duplicated header inclusion
14 years ago
Stefano Sabatini
0bc2cca12f
samplefmt: switch nb_channels/nb_samples params order in av_samples_alloc()
...
This is consistent with the order of parameters in
av_samples_fill_arrays().
14 years ago
Stefano Sabatini
e1c7414812
samplefmt: change layout for arrays created by av_samples_alloc() and _fill_arrays()
...
The new layout is consistent with that of the av_image_() API, and
simplifies understanding and copy operations, it also preserves
alignment information which was lost with the previous layout.
This breaks API/ABI, but since the function was never referenced in
the code (and it isn't unlikely already used by someone) then this
should not be a problem.
14 years ago
Diego Biurrun
fb8648ad4b
Remove unnecessary LIBAVFORMAT_BUILD #ifdef.
14 years ago
Anton Khirnov
b39b06233d
AVOptions: add av_opt_free convenience function.
14 years ago
Mans Rullgard
5a4a71257c
Fix build of eval-test program
...
eval.c has moved to libavutil, move the TESTPROGS entry too.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
d0989bed22
Fix error check in av_file_map()
...
On failure, mmap() returns MAP_FAILED, which may or may not be -1.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Michael Niedermayer
5ad38d93e8
cpudetect: add av_force_cpu_flags()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Mans Rullgard
6bb70dfd74
ARM: simplify inline asm with 64-bit operands
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Michael Niedermayer
2c10ee2358
error.c: fix compile flags
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Stefano Sabatini
e71f26086a
lavu: add av_get_pix_fmt_name() convenience function
...
Also deprecate avcodec_get_pix_fmt_name() in its favor.
14 years ago
Mans Rullgard
a84f82560e
ARM: improve FASTDIV asm
...
This uses one register less. Also add missing "cc" clobber.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Stefano Sabatini
8f653e28f5
lavu: add av_get_pix_fmt_name() convenience function
...
Also deprecate avcodec_get_pix_fmt_name() in its favor.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Michael Niedermayer
87ababd7c5
avopt: fix segfault
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Mans Rullgard
ca7d8256e3
ARM: add ARMv6 optimised av_clip_uintp2
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
77cd6efc33
ARM: remove volatile from asm statements in libavutil/intmath
...
The volatile qualifiers are not needed on these statements as
their effects are fully specified by constraints.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
74cc8c52ed
ARM: fix av_clipl_int32_arm()
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Anton Khirnov
6c117d43c9
AVOptions: set string default values.
14 years ago
Martin Storsjö
80068da3a0
avoptions: Return explicitly NAN or {0,0} if the option isn't found
...
This actually matches what av_get_double did earlier, the
0.0/0.0 division was intentional, for producing NAN.
Still keeping the check for the return value from
av_get_number, for clarity.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Stefano Sabatini
3c2c52baec
eval: implement not() expression
14 years ago
Ronald S. Bultje
e973557211
Move emms_c() from libavcodec to libavutil.
14 years ago
Stefano Sabatini
6b4c0be558
mem: define the MAX_MALLOC_SIZE constant and use it in place of INT_MAX
...
This makes re-dimensionating the constant simpler, since now it is
defined only in one place.
14 years ago
Martin Storsjö
8089b7fa8c
avoptions: Check the return value from av_get_number
...
This avoids doing a division by zero if the option wasn't found,
or wasn't an option of an appropriate type.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Diego Biurrun
153382e1b6
multiple inclusion guard cleanup
...
Add missing multiple inclusion guards; clean up #endif comments;
add missing library prefixes; keep guard names consistent.
14 years ago
Martin Storsjö
0eed5016a2
avoptions: Support getting flag values using av_get_int
14 years ago