Crate libdav1d_sys

Source
Expand description

These are raw FFI bindings for libdav1d, a fast software AV1 decoder. Refer to libdav1d’s documentation for details.

Modules§

Dav1dInloopFilterType

Structs§

Dav1dContentLightLevel
Dav1dContext
Dav1dData
Dav1dDataProps
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.
Dav1dFilmGrainData
Dav1dFrameHeader
Dav1dFrameHeader_Dav1dFrameHeaderOperatingPoint
Dav1dFrameHeader__bindgen_ty_1
Dav1dFrameHeader__bindgen_ty_2
Dav1dFrameHeader__bindgen_ty_3
Dav1dFrameHeader__bindgen_ty_4
Dav1dFrameHeader__bindgen_ty_5
Dav1dFrameHeader__bindgen_ty_6
Dav1dFrameHeader__bindgen_ty_7
Dav1dFrameHeader__bindgen_ty_8
Dav1dFrameHeader__bindgen_ty_9
Dav1dFrameHeader__bindgen_ty_6__bindgen_ty_1
Dav1dFrameHeader__bindgen_ty_6__bindgen_ty_2
Dav1dITUTT35
Dav1dLogger
Dav1dLoopfilterModeRefDeltas
Dav1dMasteringDisplay
Dav1dPicAllocator
Dav1dPicture
Dav1dPictureParameters
Dav1dRef
< allocation origin
Dav1dSegmentationData
Dav1dSegmentationDataSet
Dav1dSequenceHeader
Dav1dSequenceHeader_Dav1dSequenceHeaderOperatingParameterInfo
Dav1dSequenceHeader_Dav1dSequenceHeaderOperatingPoint
Dav1dSettings
Dav1dUserData
A reference-counted object wrapper for a user-configurable pointer.
Dav1dWarpedMotionParams
Dav1dWarpedMotionParams__bindgen_ty_1__bindgen_ty_1

Enums§

Dav1dAdaptiveBoolean
Dav1dChromaSamplePosition
Dav1dColorPrimaries
Dav1dDecodeFrameType
Dav1dEventFlags
Dav1dFilterMode
Dav1dFrameType
Dav1dMatrixCoefficients
Dav1dObuType
Dav1dPixelLayout
Dav1dRestorationType
Dav1dTransferCharacteristics
Dav1dTxfmMode
Dav1dWarpedMotionType

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.

Type Aliases§

va_list

Unions§

Dav1dWarpedMotionParams__bindgen_ty_1