diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-17 18:27:11 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-17 18:27:11 +0000 |
commit | 32d7bcd4b123122736834c7554ce05a00045452a (patch) | |
tree | 903feffe55926aef719d1c93eef5ea317430d287 /libavfilter | |
parent | 8e9d93087337cb55709ed9dc4461ad336a23150b (diff) | |
download | ffmpeg-32d7bcd4b123122736834c7554ce05a00045452a.tar.gz |
Clarify AVFilterBuffer documentation, make it clear that it is not
necessarily video-related.
Originally committed as revision 24293 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avfilter.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 75b872616a..ac30b496e3 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -59,31 +59,28 @@ typedef struct AVFilterContext AVFilterContext; typedef struct AVFilterLink AVFilterLink; typedef struct AVFilterPad AVFilterPad; -/* TODO: look for other flags which may be useful in this structure (interlace - * flags, etc) - */ /** - * A reference-counted picture data type used by the filter system. Filters + * A reference-counted buffer data type used by the filter system. Filters * should not store pointers to this structure directly, but instead use the * AVFilterPicRef structure below. */ typedef struct AVFilterBuffer { - uint8_t *data[4]; ///< picture data for each plane + uint8_t *data[4]; ///< buffer data for each plane int linesize[4]; ///< number of bytes per line enum PixelFormat format; ///< colorspace - unsigned refcount; ///< number of references to this image + unsigned refcount; ///< number of references to this buffer /** private data to be used by a custom free function */ void *priv; /** - * A pointer to the function to deallocate this image if the default + * A pointer to the function to deallocate this buffer if the default * function is not sufficient. This could, for example, add the memory * back into a memory pool to be reused later without the overhead of * reallocating it from scratch. */ - void (*free)(struct AVFilterBuffer *pic); + void (*free)(struct AVFilterBuffer *buf); } AVFilterBuffer; /** |