Michael Niedermayer
50bfd547b9
log: fix compilation failure on mingw due to reference to undefined set_color256
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Paul B Mahol
1842b27564
lavu: 256 color support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
13 years ago
Michael Niedermayer
ee7214c59a
log: change color for filters from blue to bright green
...
The blue is difficult to read on several peoples terminals with black background.
Idea-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 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
Wolfram Gloger
258dfff839
extend log line buffer sizes
...
The string passed to av_vlog() from libx264's X264_log overflows the 512
byte part_size, truncating x264 parameter output. Double this size
and put it in a #define so it only needs to be changed in one place.
Signed-off-by: Wolfram Gloger <video06@malloc.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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
Michael Niedermayer
bc210bfca6
log: flip highlight bit for codec & muxer layer
...
This way the encoder/muxer side is bold
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e69263cd01
avutil: add get_category() for the case where one AVClass can have more than 1 category
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b76f77ee0d
log: swap colors for muxer and codec layer
...
This way the filters which are semantically closer to the codec layer
have a (subjectively to me) more similar color.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
eb7efc126a
log: color prefixes according to their source.
...
The use of cyan is droped from the levels to avoid confusion
magenta/cyan/blue is used for muxer/codec/filter layer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
2191aef93b
log: cleanup color arrays
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
780ff97fef
log: make colored output more colorful.
...
Green for verbose, cyan for debug.
13 years ago
Michael Niedermayer
7c7c5b2415
avutil/log: allow av_log_set_callback (NULL)
...
Idea-by: Don Moir <donmoir@comcast.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
625751c47a
log: use a different color for debug (green).
13 years ago
Nicolas George
26c6fec9d9
lavu: introduce av_log_format_line.
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
Michael Niedermayer
48ee302e0f
Fix apparently exploitable race condition.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
0a51362b3f
log:Sanitize string of most control chars before printing.
...
This may be security relevant depending upon the used terminal.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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