diff options
Diffstat (limited to 'ffmpeg/libavutil/buffer.h')
| -rw-r--r-- | ffmpeg/libavutil/buffer.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ffmpeg/libavutil/buffer.h b/ffmpeg/libavutil/buffer.h index e33775a..b4399fd 100644 --- a/ffmpeg/libavutil/buffer.h +++ b/ffmpeg/libavutil/buffer.h @@ -121,8 +121,8 @@ AVBufferRef *av_buffer_allocz(int size); * If this function fails, data is left untouched. * @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 free a callback for freeing this buffer's data + * @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. @@ -163,6 +163,13 @@ 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); + +int av_buffer_get_ref_count(const AVBufferRef *buf); + +/** * Create a writable reference from a given buffer reference, avoiding data copy * if possible. * |
