Expand description
These are raw FFI bindings for libdav1d, a fast software AV1 decoder. Refer to libdav1d’s documentation for details.
Modules§
Structs§
- Dav1d
Content Light Level - Dav1d
Context - Dav1d
Data - Dav1d
Data Props - Input packet metadata which are copied from the input data used to decode each image into the matching structure of the output image returned back to the user. Since these are metadata fields, they can be used for other purposes than the documented ones, they will still be passed from input data to output picture without being used internally.
- Dav1d
Film Grain Data - Dav1d
Frame Header - Dav1d
Frame Header_ Dav1d Frame Header Operating Point - Dav1d
Frame Header__ bindgen_ ty_ 1 - Dav1d
Frame Header__ bindgen_ ty_ 2 - Dav1d
Frame Header__ bindgen_ ty_ 3 - Dav1d
Frame Header__ bindgen_ ty_ 4 - Dav1d
Frame Header__ bindgen_ ty_ 5 - Dav1d
Frame Header__ bindgen_ ty_ 6 - Dav1d
Frame Header__ bindgen_ ty_ 7 - Dav1d
Frame Header__ bindgen_ ty_ 8 - Dav1d
Frame Header__ bindgen_ ty_ 9 - Dav1d
Frame Header__ bindgen_ ty_ 6__ bindgen_ ty_ 1 - Dav1d
Frame Header__ bindgen_ ty_ 6__ bindgen_ ty_ 2 - Dav1dITUT
T35 - Dav1d
Logger - Dav1d
Loopfilter Mode RefDeltas - Dav1d
Mastering Display - Dav1d
PicAllocator - Dav1d
Picture - Dav1d
Picture Parameters - Dav1d
Ref - < allocation origin
- Dav1d
Segmentation Data - Dav1d
Segmentation Data Set - Dav1d
Sequence Header - Dav1d
Sequence Header_ Dav1d Sequence Header Operating Parameter Info - Dav1d
Sequence Header_ Dav1d Sequence Header Operating Point - Dav1d
Settings - Dav1d
User Data - A reference-counted object wrapper for a user-configurable pointer.
- Dav1d
Warped Motion Params - Dav1d
Warped Motion Params__ bindgen_ ty_ 1__ bindgen_ ty_ 1
Enums§
- Dav1d
Adaptive Boolean - Dav1d
Chroma Sample Position - Dav1d
Color Primaries - Dav1d
Decode Frame Type - Dav1d
Event Flags - Dav1d
Filter Mode - Dav1d
Frame Type - Dav1d
Matrix Coefficients - Dav1d
ObuType - Dav1d
Pixel Layout - Dav1d
Restoration Type - Dav1d
Transfer Characteristics - Dav1d
Txfm Mode - Dav1d
Warped Motion Type
Constants§
- DAV1D_
API_ VERSION_ MAJOR - DAV1D_
API_ VERSION_ MINOR - DAV1D_
API_ VERSION_ PATCH - DAV1D_
ERR_ AGAIN - DAV1D_
ERR_ INVAL - DAV1D_
ERR_ NOMEM - DAV1D_
ERR_ NOPROTOOPT - DAV1D_
MAX_ CDEF_ STRENGTHS - DAV1D_
MAX_ FRAME_ DELAY - DAV1D_
MAX_ OPERATING_ POINTS - DAV1D_
MAX_ SEGMENTS - DAV1D_
MAX_ THREADS - DAV1D_
MAX_ TILE_ COLS - DAV1D_
MAX_ TILE_ ROWS - DAV1D_
NUM_ REF_ FRAMES - DAV1D_
PICTURE_ ALIGNMENT - DAV1D_
PRIMARY_ REF_ NONE - DAV1D_
REFS_ PER_ FRAME - DAV1D_
TOTAL_ REFS_ PER_ FRAME
Functions§
- DAV1D_
ERR - dav1d_
apply_ ⚠grain - Apply film grain to a previously decoded picture. If the picture contains no film grain metadata, then this function merely returns a new reference.
- dav1d_
close ⚠ - Close a decoder instance and free all associated memory.
- dav1d_
data_ ⚠create - Allocate data.
- dav1d_
data_ ⚠props_ unref - Release reference to a Dav1dDataProps.
- dav1d_
data_ ⚠unref - Free the data reference.
- dav1d_
data_ ⚠wrap - Wrap an existing data array.
- dav1d_
data_ ⚠wrap_ user_ data - Wrap a user-provided data pointer into a reference counted object.
- dav1d_
default_ ⚠settings - Initialize settings to default values.
- dav1d_
flush ⚠ - Flush all delayed frames in decoder and clear internal decoder state, to be used when seeking.
- dav1d_
get_ ⚠decode_ error_ data_ props - Retrieve the user-provided metadata associated with the input data packet for the last decoding error reported to the user, i.e. a negative return value (not EAGAIN) from dav1d_send_data() or dav1d_get_picture().
- dav1d_
get_ ⚠event_ flags - Fetch a combination of DAV1D_EVENT_FLAG_* event flags generated by the decoding process.
- dav1d_
get_ ⚠frame_ delay - Get the decoder delay, which is the number of internally buffered frames, not including reference frames. This value is guaranteed to be >= 1 and <= max_frame_delay.
- dav1d_
get_ ⚠picture - Return a decoded picture.
- dav1d_
open ⚠ - Allocate and open a decoder instance.
- dav1d_
parse_ ⚠sequence_ header - Parse a Sequence Header OBU from bitstream data.
- dav1d_
picture_ ⚠unref - Release reference to a picture.
- dav1d_
send_ ⚠data - Feed bitstream data to the decoder, in the form of one or multiple AV1 Open Bitstream Units (OBUs).
- dav1d_
version ⚠ - Get library version.
- dav1d_
version_ ⚠api - Get library API version.