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
c81d2fa9
Commit
c81d2fa9
authored
Mar 29, 2013
by
Xidorn Quan
Committed by
Michael Niedermayer
Mar 29, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/buffer: add get_opaque
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
774a2684
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
buffer.c
libavutil/buffer.c
+5
-0
buffer.h
libavutil/buffer.h
+6
-1
version.h
libavutil/version.h
+2
-2
No files found.
libavutil/buffer.c
View file @
c81d2fa9
...
...
@@ -125,6 +125,11 @@ int av_buffer_is_writable(const AVBufferRef *buf)
return
avpriv_atomic_int_get
(
&
buf
->
buffer
->
refcount
)
==
1
;
}
void
*
av_buffer_get_opaque
(
const
AVBufferRef
*
buf
)
{
return
buf
->
buffer
->
opaque
;
}
int
av_buffer_make_writable
(
AVBufferRef
**
pbuf
)
{
AVBufferRef
*
newbuf
,
*
buf
=
*
pbuf
;
...
...
libavutil/buffer.h
View file @
c81d2fa9
...
...
@@ -122,7 +122,7 @@ AVBufferRef *av_buffer_allocz(int size);
* @param data data array
* @param size size of data in bytes
* @param free a callback for freeing data
* @param opaque parameter to be passed to free
* @param opaque parameter to be
got for processing or
passed to free
* @param flags a combination of AV_BUFFER_FLAG_*
*
* @return an AVBufferRef referring to data on success, NULL on failure.
...
...
@@ -162,6 +162,11 @@ void av_buffer_unref(AVBufferRef **buf);
*/
int
av_buffer_is_writable
(
const
AVBufferRef
*
buf
);
/**
* @return the opaque parameter set by av_buffer_create.
*/
void
*
av_buffer_get_opaque
(
const
AVBufferRef
*
buf
);
/**
* Create a writable reference from a given buffer reference, avoiding data copy
* if possible.
...
...
libavutil/version.h
View file @
c81d2fa9
...
...
@@ -75,8 +75,8 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 52
#define LIBAVUTIL_VERSION_MINOR 2
2
#define LIBAVUTIL_VERSION_MICRO 10
1
#define LIBAVUTIL_VERSION_MINOR 2
3
#define LIBAVUTIL_VERSION_MICRO 10
0
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
LIBAVUTIL_VERSION_MINOR, \
...
...
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