#include <picture.h>
◆ alloc_picture_callback
Allocate the picture buffer based on the Dav1dPictureParameters.
The data[0], data[1] and data[2] must be 32 byte aligned and with a pixel width/height multiple of 128 pixels. data[1] and data[2] must share the same stride[1].
- Parameters
-
pic | The picture to allocate the buffer for. The callback needs to fill the picture data[0], data[1], data[2], stride[0] and stride[1]. The allocator can fill the pic allocator_data pointer with a custom pointer that will be passed to release_picture_callback(). |
cookie | Custom pointer passed to all calls. |
- Returns
- 0 on success. A negative errno value on error.
◆ cookie
void* Dav1dPicAllocator::cookie |
custom data to pass to the allocator callbacks.
◆ release_picture_callback
Release the picture buffer.
- Parameters
-
The documentation for this struct was generated from the following file: