summaryrefslogtreecommitdiff
path: root/libavfilter/avfilter.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-06-21 11:48:58 +0200
committerAnton Khirnov <anton@khirnov.net>2012-06-26 13:23:50 +0200
commitcb81e29138c17b054d013022cfe81f788598ac7d (patch)
tree24fb8cb2f692b7725534a9af541807a8c0ebfc94 /libavfilter/avfilter.h
parent1961e46c15c23a041f8d8614a25388a3ee9eff63 (diff)
lavfi: reorder AVFilterBuffer fields.
Place related fields together, remove holes.
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r--libavfilter/avfilter.h31
1 files changed, 15 insertions, 16 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index d119c1a0a2..29c08fe88b 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -61,22 +61,6 @@ typedef struct AVFilterFormats AVFilterFormats;
*/
typedef struct AVFilterBuffer {
uint8_t *data[8]; ///< buffer data for each plane/channel
- int linesize[8]; ///< number of bytes per line
-
- 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 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 *buf);
-
- int format; ///< media format
- int w, h; ///< width and height of the allocated buffer
/**
* pointers to the data planes/channels.
@@ -93,6 +77,21 @@ typedef struct AVFilterBuffer {
* in order to access all channels.
*/
uint8_t **extended_data;
+ int linesize[8]; ///< number of bytes per line
+
+ /** private data to be used by a custom free function */
+ void *priv;
+ /**
+ * 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 *buf);
+
+ int format; ///< media format
+ int w, h; ///< width and height of the allocated buffer
+ unsigned refcount; ///< number of references to this buffer
} AVFilterBuffer;
#define AV_PERM_READ 0x01 ///< can read from the buffer