Vittorio Giovara
eaa2d123f0
log: Print a full backtrace along with error messages under Valgrind
...
Useful to understand where and in what execution state a certain message
is generated. It is enabled only when optimizations are disabled, since
function names are not printed otherwise.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
10 years ago
Vittorio Giovara
c253340ae6
log: Introduce a more verbose debug level
...
And deprecate av_dlog macro.
10 years ago
Luca Barbato
d995f0a155
log: Unbreak no-tty support on 256color terminals
10 years ago
Luca Barbato
9464b69da6
log: Unbreak windows support
...
Add the missing define.
11 years ago
Luca Barbato
4ede1862dc
log: Do not assume the TERM variable is always set
11 years ago
Luca Barbato
28b9ac4e48
log: Remove undefined behaviour
11 years ago
Luca Barbato
7763118cae
log: Support for 256color terminals
...
And provide extended coloring capabilities for debugging.
The default colors do not change in 256 more to keep
supporting people using Black on White, White on Black and
Solarized terminals.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years ago
Diego Biurrun
25a1ba814a
log: Have function parameter names match between .c and .h file
...
This fixes two related Doxygen warnings.
11 years ago
Luca Barbato
0420c810ce
log: pass the correct parameters to missing_feature_sample
...
CC:libav-stable@libav.org
12 years ago
Diego Biurrun
f099d3d1d5
Add av_log_{ask_for_sample|missing_feature} replacements to libavutil
...
This allows reporting missing features and requesting samples from
all libraries in a standard way; with a simplified API.
12 years ago
Anton Khirnov
cb45553f57
Remove pointless #undefs of previously forbidden functions.
12 years ago
Martin Storsjö
7e6a11bcf7
avutil: Use a configure check to enable windows console functions
...
Not all versions or API subsets of windows have these functions.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
b70abd5b61
avutil: Include io.h with a separate condition from windows console functions
...
Not all versions of windows have the console color functions,
while io.h might be needed for isatty (which can be found in
unistd.h or io.h).
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
1d9c2dc89a
Don't include common.h from avutil.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Ronald S. Bultje
246154a9af
log: Include io.h on windows
...
This is required for isatty, which exists on MSVC and is found by
configure, but is provided by io.h instead of unistd.h.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
145a8096d5
log: Only include unistd.h if configure found it
...
MSVC has isatty (in io.h), but not unistd.h. (isatty isn't called
at all for windows, since there's a special case block for that.)
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Mans Rullgard
539df61193
log: include unistd.h only when needed
...
The only symbol this file uses from unistd.h is isatty(). By
including the header only when this function is used, the file
can be built on systems without unistd.h (which presumably also
lack isatty).
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Anton Khirnov
780ff97fef
log: make colored output more colorful.
...
Green for verbose, cyan for debug.
13 years ago
Yordan Makariev
425b45d4b0
Code clean-up for crc.c, lfg.c, log.c, random_see.d, rational.c and tree.c.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Diego Biurrun
f36b390275
Replace some forgotten FFmpeg references by Libav.
13 years ago
Alex Converse
847aaec682
log: Fix an oob array read.
14 years ago
Alex Converse
1a5e4fd8c5
Replace strncpy() with av_strlcpy().
14 years ago
Reinhard Tartler
0247bdee25
Fix races in default av_log handler
...
Prevent competing threads from overwriting (shared) buffers.
Original patch by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Diego Biurrun
63de9e7d80
Remove a version check in av_log made unnecessary by the big bump.
14 years ago
Anton Khirnov
490a022d86
lavu: remove misc disabled cruft
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Daniel Verkamp
dfaa9f3cb3
Recognize FFMPEG_FORCE_NOCOLOR environment variable on Win32
...
Fixes issue 2461
Originally committed as revision 26186 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Stefano Sabatini
3011ecdeb7
Introduce FFMPEG_FORCE_NOCOLOR, with the same meaning and use of
...
NO_COLOR (but properly prefixed for avoiding namespace conflicts).
Originally committed as revision 25899 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Etienne Buira
129983408d
Allow to force colored output.
...
Patch by Etienne Buira, etienne d buira d lists a free d fr
Originally committed as revision 25888 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Michael Niedermayer
d7cd001ff2
indent
...
Originally committed as revision 25178 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Michael Niedermayer
8a19053361
Cosmetic (rename detect_repeats to is_atty which matches the truth)
...
Originally committed as revision 25177 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Michael Niedermayer
1c1c80f0a3
2nd try to fix av_log() repeated detection
...
Originally committed as revision 25174 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Michael Niedermayer
c157fe6356
Limit av_log repeat detection to terminals so as to avoid filling files with
...
lots of mess.
Originally committed as revision 25117 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Michael Niedermayer
fd3064b65e
Make sure "Last message repeated" is printed.
...
Originally committed as revision 24573 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jai Menon
50061b6234
Print a space after the AVClass prefix.
...
This improves readability a bit.
Originally committed as revision 23767 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
3c467bacaa
Fix compilation on windows CE
...
Originally committed as revision 23600 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ramiro Polla
db16e3ca65
log.c: Use parameter passed to macro instead of the equivalent local variable
...
in the only function that uses the macro.
Originally committed as revision 23555 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ramiro Polla
4855f8679e
Add win32 console color output.
...
Based on patches by James Darnley <james dot darnley at gmail dot com>.
Originally committed as revision 23554 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ramiro Polla
6e34a5582d
Move ansi color array to outside of av_log_default_callback(). Do not pass
...
ansi color code to colored_fputs(), and pass instead the error level so the
proper color code may be used.
Originally committed as revision 23553 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ramiro Polla
a1c027e9e4
Rename use_ansi_color to use_color so it is not ANSI-specific.
...
Originally committed as revision 23552 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
4880cfd952
Print parent log context too, if available.
...
Originally committed as revision 23200 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
8d2a5139da
av_default_item_name() so Simply AVClasses need 1 function less.
...
Originally committed as revision 23198 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
3fe1ec39c6
Add means to adjust the log level per context.
...
Originally committed as revision 23059 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
6204402409
4th try at getting ansi colors working with a default of color=yes_please.
...
Colors will only be used if the TERM env var is set and NO_COLOR is not set.
Originally committed as revision 22957 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
aebfb45774
Trying _WIN32 for win32 detection.
...
Originally committed as revision 22953 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
7328cdfa58
Merge the 2 ANSI ESC codes.
...
Originally committed as revision 22952 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
841073ce5e
Reenable ANSI colors, use method from VLC as suggested by ramiro.
...
Please tell us asap if this breaks for your platform & terminal.
Originally committed as revision 22951 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
2c4b87ea0e
Disable ANSI color code until we figured out how to detect ANSI support in
...
the used terminal.
Originally committed as revision 22948 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
51e026d115
Coloring the log with ANSI.
...
Ive checked this on black and white background and found no problem in terms
of readability.
flames welcome.
Originally committed as revision 22946 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
ba87f0801d
Remove explicit filename from Doxygen @file commands.
...
Passing an explicit filename to this command is only necessary if the
documentation in the @file block refers to a file different from the
one the block resides in.
Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago