Lines Matching defs:buffer
22 * refcounted data buffer API
39 * represents the data buffer itself; it is opaque and not meant to be accessed
42 * are describing the same data buffer. AVBufferRef represents a single
47 * reference -- av_buffer_alloc() to just allocate a new buffer, and
54 * buffer is considered writable if there exists only one reference to it (and
57 * automatically create a new writable buffer when necessary.
66 * @note Two different references to the same buffer can point to different
67 * parts of the buffer (i.e. their AVBufferRef.data will not be equal).
71 * A reference counted buffer type. It is opaque and is meant to be used through
77 * A reference to a data buffer.
83 AVBuffer *buffer;
86 * The data buffer. It is considered writable if and only if
87 * this is the only reference to the buffer, in which case
105 * Same as av_buffer_alloc(), except the returned buffer will be initialized
111 * Always treat the buffer as read-only, even when it has only one
125 * @param free a callback for freeing this buffer's data
136 * Default free callback, which calls av_free() on the buffer data.
151 * Free a given reference and automatically free the buffer if there are no more
174 * Create a writable reference from a given buffer reference, avoiding data copy
177 * @param buf buffer reference to make writable. On success, buf is either left
185 * Reallocate a given buffer.
187 * @param buf a buffer reference to reallocate. On success, buf will be
190 * may be NULL, then a new buffer is allocated.
191 * @param size required new buffer size.
194 * @note the buffer is actually reallocated with av_realloc() only if it was
197 * a new buffer is allocated and the data is copied.
207 * @param dst Pointer to either a valid buffer reference or NULL. On success,
208 * this will point to a buffer reference equivalent to src. On
210 * @param src A buffer reference to replace dst with. May be NULL, then this
234 * buffer pool. Then whenever a buffer is needed, call av_buffer_pool_get() to
235 * get a reference to a new buffer, similar to av_buffer_alloc(). This new
237 * av_buffer_alloc(). However, when the last reference to this buffer is
251 * The buffer pool. This structure is opaque and not meant to be accessed
258 * Allocate and initialize a buffer pool.
260 * @param size size of each buffer in this pool
264 * @return newly created buffer pool on success, NULL on error.
269 * Allocate and initialize a buffer pool with a more complex allocator.
271 * @param size size of each buffer in this pool
281 * @return newly created buffer pool on success, NULL on error.
298 * Allocate a new AVBuffer, reusing an old buffer from the pool when available.
301 * @return a reference to the new buffer on success, NULL on error.
306 * Query the original opaque parameter of an allocated buffer in the pool.
308 * @param ref a buffer reference to a buffer returned by av_buffer_pool_get.
309 * @return the opaque parameter set by the buffer allocator function of the
310 * buffer pool.
312 * @note the opaque parameter of ref is used by the buffer pool implementation,
314 * parameter of an allocated buffer.