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
Ramiro Polla
e244f54e78
Make av_log_level static at next lavu major version bump.
...
Originally committed as revision 20721 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Michael Niedermayer
b9c353fff2
Compact repeated messages to "Last message repeated x times".
...
Originally committed as revision 17531 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
bad5537e2c
Use full internal pathname in doxygen @file directives.
...
Otherwise doxygen complains about ambiguous filenames when files exist
under the same name in different subdirectories.
Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
7d685b486b
spelling/grammar/consistency review part III
...
Originally committed as revision 16849 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
77652a6aaf
C files should #include the header files of the same name.
...
Originally committed as revision 16792 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Benoit Fouet
c3b9f5fbce
Remove a useless directive.
...
Originally committed as revision 14645 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Benoit Fouet
2daefd2c00
Cosmetics: indentation
...
Originally committed as revision 14644 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Alexander Strange
b1e12f99a2
Print the address of the AVCodecContext in av_log().
...
This makes debug output much easier to read when the
same codec is open more than once.
Originally committed as revision 14237 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Måns Rullgård
a309073bf4
use av_log_get/set_level()
...
Originally committed as revision 11209 to svn://svn.ffmpeg.org/ffmpeg/trunk
17 years ago
Panagiotis Issaris
3ec9a7873f
Move the unaltered Doxygen docs from the log source code to the accompanying
...
header file.
Originally committed as revision 8225 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Panagiotis Issaris
0f482cfcb2
Adds Doxygen docs for the av_log function.
...
Originally committed as revision 8040 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Axel Holzinger
411983c1f2
Allow to uninstall a custom log callback
...
patch by Axel Holzinger % aholzinger A gmx P de %
original thread:
date: Jan 11, 2007 4:54 PM
subject: [Ffmpeg-devel] [PATCH] uninstall custom log callback
Originally committed as revision 7446 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Diego Biurrun
b78e7197a8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
...
and fix GPL/LGPL version mismatches.
Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
18 years ago
Michael Niedermayer
918a45917c
removing redundant mess next time we break compatiility
...
Originally committed as revision 5804 to svn://svn.ffmpeg.org/ffmpeg/trunk
19 years ago