Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
cb81e291
Commit
cb81e291
authored
Jun 21, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: reorder AVFilterBuffer fields.
Place related fields together, remove holes.
parent
1961e46c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
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