Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
cb81e291
Commit
cb81e291
authored
Jun 21, 2012
by
Anton Khirnov
Browse files
lavfi: reorder AVFilterBuffer fields.
Place related fields together, remove holes.
parent
1961e46c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
libavfilter/avfilter.h
libavfilter/avfilter.h
+15
-16
No files found.
libavfilter/avfilter.h
View file @
cb81e291
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment