[FFmpeg-devel] [PATCH 1/3] log: add category to AVClass

Michael Niedermayer michaelni at gmx.at
Fri Jun 1 14:00:19 CEST 2012


On Fri, Jun 01, 2012 at 07:54:54AM +0200, Clément Bœsch wrote:
> On Mon, May 28, 2012 at 12:53:27PM +0200, Michael Niedermayer wrote:
> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> > ---
> >  libavutil/avutil.h |    2 +-
> >  libavutil/log.h    |   18 ++++++++++++++++++
> >  2 files changed, 19 insertions(+), 1 deletion(-)
> > 
> > diff --git a/libavutil/avutil.h b/libavutil/avutil.h
> > index acef213..2e83d1f 100644
> > --- a/libavutil/avutil.h
> > +++ b/libavutil/avutil.h
> > @@ -153,7 +153,7 @@
> >   */
> >  
> >  #define LIBAVUTIL_VERSION_MAJOR 51
> > -#define LIBAVUTIL_VERSION_MINOR 55
> > +#define LIBAVUTIL_VERSION_MINOR 56
> >  #define LIBAVUTIL_VERSION_MICRO 100
> >  
> >  #define LIBAVUTIL_VERSION_INT   AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
> > diff --git a/libavutil/log.h b/libavutil/log.h
> > index 26c806f..51a5766 100644
> > --- a/libavutil/log.h
> > +++ b/libavutil/log.h
> > @@ -25,6 +25,18 @@
> >  #include "avutil.h"
> >  #include "attributes.h"
> >  
> > +typedef enum {
> > +    AV_LOG_CATEGORY_NA = 0,
> > +    AV_LOG_CATEGORY_INPUT,
> > +    AV_LOG_CATEGORY_OUTPUT,
> > +    AV_LOG_CATEGORY_MUXER,
> > +    AV_LOG_CATEGORY_DEMUXER,
> > +    AV_LOG_CATEGORY_ENCODER,
> > +    AV_LOG_CATEGORY_DECODER,
> > +    AV_LOG_CATEGORY_FILTER,
> > +    AV_LOG_CATEGORY_BITSTREAM_FILTER,
> > +}AVLogCategory;
> > +
> 
> Why not AVClassCategory? It is at the moment only used for displaying
> rainbows, but we can imagine using this for filtering some specific
> class of messages.
> 
> >  /**
> >   * Describe the class of an AVClass context structure. That is an
> >   * arbitrary struct of which the first field is a pointer to an
> > @@ -86,6 +98,12 @@ typedef struct AVClass {
> >       * child_class_next iterates over _all possible_ children.
> >       */
> >      const struct AVClass* (*child_class_next)(const struct AVClass *prev);
> > +
> > +    /**
> > +     * Category used for vissualization (like color)
> 
> visualization

all fixed & applied

thanks

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120601/b9a5a5cc/attachment.asc>


More information about the ffmpeg-devel mailing list