Provides information about supported DMA buffer formats.
You can query whether a given format is supported with
dmabuf-formats:contains? and you
can iterate over the list of all supported formats with
dmabuf-formats:get-n-formats
and dmabuf-formats:get-format.
The list of supported formats is sorted by preference, with the best formats coming first.
The list may contains (format, modifier) pairs where the modifier is
DMA_FORMAT_MOD_INVALID, indicating that _implicit
modifiers_ may be used with this format.
See <GdkDmabufTextureBuilder> for
more information about DMA buffers.
Note that DMA buffers only exist on Linux.
Returns whether a given format is contained in self.
Passed: a <GdkDmabufFormats>.
Passed: an unsigned 32-bit integer.
a format code
Passed: an unsigned 64-bit integer.
a format modifier
Returned: a boolean.
TRUE if the format specified by the arguments is part of
self
Returns whether self and formats2 contain the same dmabuf formats, in the same order.
Passed: a <GdkDmabufFormats>.
Passed, or left out: a <GdkDmabufFormats>,
or #f.
another <GdkDmabufFormats>
Returned: a boolean.
TRUE if self and formats2 are equal
Gets the fourcc code and modifier for a format that is contained in self.
Passed: a <GdkDmabufFormats>.
Passed: an unsigned 64-bit integer.
the index of the format to return
Returned: an unsigned 32-bit integer.
return location for the format code
Returned: an unsigned 64-bit integer.
return location for the format modifier
Returns the number of formats that the self object contains.
Note that DMA buffers are a Linux concept, so on other platforms,
dmabuf-formats:get-n-formats
will always return zero.
Passed: a <GdkDmabufFormats>.
Returned: an unsigned 64-bit integer.
the number of formats
Increases the reference count of self.
Passed: a <GdkDmabufFormats>.
Returned: a <GdkDmabufFormats>.
the passed-in object
Decreases the reference count of self.
When the reference count reaches zero, the object is freed.
Passed: a <GdkDmabufFormats>.