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
7a6cf277
Commit
7a6cf277
authored
9 years ago
by
wm4
Committed by
Anton Khirnov
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
lavu: improve documentation of some AVFrame functions
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
84b5dcf2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavutil/frame.h
+13
-1
13 additions, 1 deletion
libavutil/frame.h
with
13 additions
and
1 deletion
libavutil/frame.h
+
13
−
1
View file @
7a6cf277
...
@@ -391,6 +391,10 @@ void av_frame_free(AVFrame **frame);
...
@@ -391,6 +391,10 @@ void av_frame_free(AVFrame **frame);
* If src is not reference counted, new buffers are allocated and the data is
* If src is not reference counted, new buffers are allocated and the data is
* copied.
* copied.
*
*
* @warning: dst MUST have been either unreferenced with av_frame_unref(dst),
* or newly allocated with av_frame_alloc() before calling this
* function, or undefined behavior will occur.
*
* @return 0 on success, a negative AVERROR on error
* @return 0 on success, a negative AVERROR on error
*/
*/
int
av_frame_ref
(
AVFrame
*
dst
,
const
AVFrame
*
src
);
int
av_frame_ref
(
AVFrame
*
dst
,
const
AVFrame
*
src
);
...
@@ -410,7 +414,11 @@ AVFrame *av_frame_clone(const AVFrame *src);
...
@@ -410,7 +414,11 @@ AVFrame *av_frame_clone(const AVFrame *src);
void
av_frame_unref
(
AVFrame
*
frame
);
void
av_frame_unref
(
AVFrame
*
frame
);
/**
/**
* Move everythnig contained in src to dst and reset src.
* Move everything contained in src to dst and reset src.
*
* @warning: dst is not unreferenced, but directly overwritten without reading
* or deallocating its contents. Call av_frame_unref(dst) manually
* before calling this function to ensure that no memory is leaked.
*/
*/
void
av_frame_move_ref
(
AVFrame
*
dst
,
AVFrame
*
src
);
void
av_frame_move_ref
(
AVFrame
*
dst
,
AVFrame
*
src
);
...
@@ -426,6 +434,10 @@ void av_frame_move_ref(AVFrame *dst, AVFrame *src);
...
@@ -426,6 +434,10 @@ void av_frame_move_ref(AVFrame *dst, AVFrame *src);
* necessary, allocate and fill AVFrame.extended_data and AVFrame.extended_buf.
* necessary, allocate and fill AVFrame.extended_data and AVFrame.extended_buf.
* For planar formats, one buffer will be allocated for each plane.
* For planar formats, one buffer will be allocated for each plane.
*
*
* @warning: if frame already has been allocated, calling this function will
* leak memory. In addition, undefined behavior can occur in certain
* cases.
*
* @param frame frame in which to store the new buffers.
* @param frame frame in which to store the new buffers.
* @param align required buffer size alignment
* @param align required buffer size alignment
*
*
...
...
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