Stefano Sabatini
6cfed11270
audioconvert: add explanatory comments to channel_names array
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Stefano Sabatini
3a0b5fa5e8
audioconvert: K&R whitespace cosmetics
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
13 years ago
Michael Niedermayer
0962ad0e2f
avopt: Fix searching for constants
...
Fixes Ticket350
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
4dbcdfa86d
AVOptions: remove AVOption.offset <= 0 checks
...
They will only ever be <=0 if the option is broken, in which case this
check is hiding a bug.
13 years ago
Anton Khirnov
79eff91325
AVOptions: deprecate av_opt_set_defaults2
...
It's a hack which was created to allow for multiple options with
different defaults to refer to same field (e.g. 'b' vs 'ab'). There is
no need for it anymore.
13 years ago
Anton Khirnov
a7e2b2ccc9
AVOptions: move doxy for av_opt_set_defaults() from opt.c to opt.h
...
Also change it to be more readable.
13 years ago
Clément Bœsch
61e2e29691
av_string: add av_asprintf().
13 years ago
Anton Khirnov
e955a682e1
AVOptions: fix av_set_string3() doxy to match reality.
...
Fixes bug 28.
13 years ago
Anton Khirnov
c11fb8288d
AVOptions: add AV_OPT_SEARCH_FAKE_OBJ flag for av_opt_find().
...
It allows to search for options only with AVClass, without allocating
the corresponding context.
13 years ago
Sean McGovern
5938e02185
cpu detection: avoid a signed overflow
...
1<<31 overflows because 1 is signed, so force it to unsigned.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Anton Khirnov
bea5670a4f
AVOptions: drop av_ prefix from static av_get_number().
13 years ago
Stefano Sabatini
bf917e26e1
fifo: add note in av_fifo_realloc2() doxy regarding reallocation failure behavior
13 years ago
Carl Eugen Hoyos
ab539d9eb8
Use the shorter channel layout description for the common case.
13 years ago
Diego Biurrun
fa19c5c20e
doxygen: drop another pointless star from pointer variable name
13 years ago
Stefano Sabatini
1717ba0cdd
fifo: add FIFO API test program, and fate test
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Stefano Sabatini
f2011ed234
fifo: add av_fifo_peek2(), and deprecate av_fifo_peek()
...
The new function provides a more generic interface than av_fifo_peek()
for peeking at a FIFO buffer data.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Diego Biurrun
0138a8dead
doxygen: drop pointless star from pointer variable names
13 years ago
Stefano Sabatini
69e2c1a95a
lavu: add av_get_media_type_string() convenience function
...
Avoid code duplication.
13 years ago
Ronald S. Bultje
38e06c2969
Move clipd macros to x86util.asm.
...
This allows sharing them between multiple .asm files.
13 years ago
Stefano Sabatini
2e81bb5e92
fifo: return AVERROR(ENOMEM) rather -1 in av_fifo_realloc2()
13 years ago
Stefano Sabatini
f1b29223e6
fifo: apply misc cosmetic fixes
13 years ago
Stefano Sabatini
323b930699
fifo: add av_fifo_peek2(), and deprecate av_fifo_peek()
...
The new function provides a more flexible interface for peeking at a
FIFO buffer data.
13 years ago
Michael Niedermayer
c4fd1d34ca
av_get_string: search children too.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
bf71fb54b5
av_get_number: also search children, this is more sane than not doing so.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Ronald S. Bultje
b2c087871d
Move x86util.asm from libavcodec/ to libavutil/.
...
This allows using it in swscale also.
13 years ago
Ronald S. Bultje
3a39195b1d
Move x86inc.asm to libavutil/.
...
This allows using it in libswscale/ also.
13 years ago
Stefano Sabatini
e2affa8ce7
audioconvert: define unique strings for AV_CH_LAYOUT_5POINT{0,1}_BACK
...
Previously the string for AV_CH_LAYOUT_5POINT{0,1}_BACK was the same
of the string for AV_CH_LAYOUT_5POINT{0,1}.
This is required for discerning the two channel layouts, given a
channel layout string.
13 years ago
Stefano Sabatini
9c2651ab44
parseutils: add some documentation for small_strptime()
14 years ago
Mans Rullgard
172ee1da2b
random_seed: use proper #includes
...
Use <> for system headers, add needed math.h, drop unnecessary avutil.h.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
bd39c07688
des: fix #if conditional around P_shuffle
...
CONFIG_SMALL is always defined as 0 or 1.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Biurrun
66f6bab7ad
mem.h: switch doxygen parameter order to match function prototype
14 years ago
Diego Biurrun
6168781f70
doxygen: do not include license boilerplate in Doxygen documentation
14 years ago
Diego Biurrun
96c1e6d40d
doxygen: Make sure parameter names match between .c and .h files.
14 years ago
Oskar Arvidsson
e59d6b4d72
pix_fmt: Fix number of bits per component in yuv444p9be
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Mans Rullgard
7ce914fb5a
lls: use av_lfg instead of rand() in test program
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Anton Khirnov
a726d7fd4e
AVOptions: in av_opt_find() don't return named constants unless unit is specified.
...
That is, unless the caller explicitly asks for them.
Prevents conflict between e.g. the 'loop' option in img2 demuxer and
'loop' flag in AVCodecContext.
14 years ago
Anton Khirnov
8c28e01d31
dict: extend documentation.
14 years ago
Mans Rullgard
fdaf1d0640
lls: whitespace cosmetics
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Diego Biurrun
4904995652
avutil: Add missing test programs to Makefile.
14 years ago
Ronald S. Bultje
dfd8116986
eval: add missing comma to tests.
14 years ago
Ronald S. Bultje
fe277b16f0
eval: fix memleak.
14 years ago
Michael Niedermayer
16a565d0cb
eval/fate: try to fix nan printing format failures.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Carl Eugen Hoyos
96676e1abf
Unbreak libavutil API.
14 years ago
Mans Rullgard
94350ab986
eval: clear Parser instances before using
...
This prevents random values from the stack being used as
"variables" in expressions.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Kostya Shishkov
3e2aa268f6
sha: use AV_RB32() instead of assuming buffer can be cast to uint32_t*
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
9e52a40695
des: allow unaligned input and output buffers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
d04d9f24a0
aes: allow unaligned input and output buffers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
6da812e4ee
eval: make timing optional in test program
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
abc78a5a7c
Do not include log.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Mans Rullgard
d49ea4afb4
Do not include pixfmt.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago