Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
4272bb6e
Commit
4272bb6e
authored
11 years ago
by
Luca Barbato
Browse files
Options
Downloads
Patches
Plain Diff
doxy: Document avlog
Provide some information for every function and add a group.
parent
a4435f92
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libavutil/avutil.h
+6
-0
6 additions, 0 deletions
libavutil/avutil.h
libavutil/log.h
+98
-10
98 additions, 10 deletions
libavutil/log.h
with
104 additions
and
10 deletions
libavutil/avutil.h
+
6
−
0
View file @
4272bb6e
...
...
@@ -127,6 +127,12 @@
*
* @}
*
* @defgroup lavu_log Logging Facility
*
* @{
*
* @}
*
* @defgroup lavu_misc Other
*
* @{
...
...
This diff is collapsed.
Click to expand it.
libavutil/log.h
+
98
−
10
View file @
4272bb6e
...
...
@@ -89,8 +89,19 @@ typedef struct AVClass {
const
struct
AVClass
*
(
*
child_class_next
)(
const
struct
AVClass
*
prev
);
}
AVClass
;
/* av_log API */
/**
* @addtogroup lavu_log
*
* @{
*
* @defgroup lavu_log_constants Logging Constants
*
* @{
*/
/**
* Print no output.
*/
#define AV_LOG_QUIET -8
/**
...
...
@@ -117,7 +128,14 @@ typedef struct AVClass {
*/
#define AV_LOG_WARNING 24
/**
* Standard information.
*/
#define AV_LOG_INFO 32
/**
* Detailed information.
*/
#define AV_LOG_VERBOSE 40
/**
...
...
@@ -125,27 +143,93 @@ typedef struct AVClass {
*/
#define AV_LOG_DEBUG 48
/**
* @}
*/
/**
* Send the specified message to the log if the level is less than or equal
* to the current av_log_level. By default, all logging messages are sent to
* stderr. This behavior can be altered by setting a different
av_vlo
g callback
* stderr. This behavior can be altered by setting a different
loggin
g callback
* function.
* @see av_log_set_callback
*
* @param avcl A pointer to an arbitrary struct of which the first field is a
* pointer to an AVClass struct.
* @param level The importance level of the message
, lower values signifying
*
higher impor
tan
ce
.
*
pointer to an AVClass struct.
* @param level The importance level of the message
expressed using a @ref
*
lavu_log_constants "Logging Cons
tan
t"
.
* @param fmt The format string (printf-compatible) that specifies how
* subsequent arguments are converted to output.
* @see av_vlog
* subsequent arguments are converted to output.
*/
void
av_log
(
void
*
avcl
,
int
level
,
const
char
*
fmt
,
...)
av_printf_format
(
3
,
4
);
void
av_vlog
(
void
*
avcl
,
int
level
,
const
char
*
fmt
,
va_list
);
/**
* Send the specified message to the log if the level is less than or equal
* to the current av_log_level. By default, all logging messages are sent to
* stderr. This behavior can be altered by setting a different logging callback
* function.
* @see av_log_set_callback
*
* @param avcl A pointer to an arbitrary struct of which the first field is a
* pointer to an AVClass struct.
* @param level The importance level of the message expressed using a @ref
* lavu_log_constants "Logging Constant".
* @param fmt The format string (printf-compatible) that specifies how
* subsequent arguments are converted to output.
* @param vl The arguments referenced by the format string.
*/
void
av_vlog
(
void
*
avcl
,
int
level
,
const
char
*
fmt
,
va_list
vl
);
/**
* Get the current log level
*
* @see lavu_log_constants
*
* @return Current log level
*/
int
av_log_get_level
(
void
);
void
av_log_set_level
(
int
);
void
av_log_set_callback
(
void
(
*
)(
void
*
,
int
,
const
char
*
,
va_list
));
/**
* Set the log level
*
* @see lavu_log_constants
*
* @param level Logging level
*/
void
av_log_set_level
(
int
level
);
/**
* Set the logging callback
*
* @see av_log_default_callback
*
* @param callback A logging function with a compatible signature.
*/
void
av_log_set_callback
(
void
(
*
callback
)(
void
*
,
int
,
const
char
*
,
va_list
));
/**
* Default logging callback
*
* It prints the message to stderr, optionally colorizing it.
*
* @param avcl A pointer to an arbitrary struct of which the first field is a
* pointer to an AVClass struct.
* @param level The importance level of the message expressed using a @ref
* lavu_log_constants "Logging Constant".
* @param fmt The format string (printf-compatible) that specifies how
* subsequent arguments are converted to output.
* @param ap The arguments referenced by the format string.
*/
void
av_log_default_callback
(
void
*
ptr
,
int
level
,
const
char
*
fmt
,
va_list
vl
);
/**
* Return the context name
*
* @param ctx The AVClass context
*
* @return The AVClass class_name
*/
const
char
*
av_default_item_name
(
void
*
ctx
);
/**
...
...
@@ -170,4 +254,8 @@ const char* av_default_item_name(void* ctx);
#define AV_LOG_SKIP_REPEATED 1
void
av_log_set_flags
(
int
arg
);
/**
* @}
*/
#endif
/* AVUTIL_LOG_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment