Michael Niedermayer
31d49db75e
avutil/bprint:ædd io.h, try to fix msvc build
...
Suggested-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
0ebcf87803
protect unistd.h with #if HAVE_UNISTD_H in code from recent av_bprint_fd_contents() patches
...
Should fix build failure on MSVC
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Andrey Utkin
fcd1f6bc9d
avutil/bprint: Add av_bprint_fd_contents()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Lou Logan
88f2586adb
fix various typos
...
Signed-off-by: Lou Logan <lou@lrcd.com>
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
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
112c970ca6
avutil/bprint: add av_vbprintf()
...
Reviewed-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
9767ec6b86
lavu: add escape API
...
The escape API will be useful to perform escaping programmatically, which
is required when crafting argument strings, and will be used for context
printing as well.
This is based on the ffescape tool code, with a few extensions and fixes.
12 years ago
Nicolas George
4cd74c8143
lavu/bprint: implement av_bprint_strftime().
12 years ago
Nicolas George
483c1aa5f1
lavu/bprint: add av_bprint_get_buffer().
...
It is useful to use bprint to handle a growing buffer
used with another API.
12 years ago
Derek Buitenhuis
d512e74dec
bprint: Remove custom vsnprintf
...
A proper implementation was introduced in
ba53720280
for MSVC, and
MinGW already has vsnprintf.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
13 years ago
Derek Buitenhuis
0c5fe2f0da
FATE/bprint: Convert a VLA to a normal array
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Reviewed-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
69bf775e9f
bprint: implement vsnprintf for win32.
13 years ago
Michael Niedermayer
4bfee465e9
bprint-test: avoid z modifier, mingw fails with it
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
5b51efdc3a
fate-bprint: try to workaround platform specific value.
...
this should fix some fate failures
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
b3e2bb08a9
bprint: add av_bprint_init_for_buffer().
13 years ago
Clément Bœsch
9548deeea9
lavu/bprint: add av_bprint_reset().
13 years ago
Nicolas George
b75c67dc01
lavu: add av_bprintf and related.
13 years ago