Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
cb81e291
Commit
cb81e291
authored
12 years ago
by
Anton Khirnov
Browse files
Options
Downloads
Patches
Plain Diff
lavfi: reorder AVFilterBuffer fields.
Place related fields together, remove holes.
parent
1961e46c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavfilter/avfilter.h
+15
-16
15 additions, 16 deletions
libavfilter/avfilter.h
with
15 additions
and
16 deletions
libavfilter/avfilter.h
+
15
−
16
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment