Add GdkDataFormat
This patchset introduces a new (private for now) GdkDataFormat
enum that is meant to be used for all the formats we only support as read-only.
It replaces the big table and set of conversion functions that used to exist in gdkdmabuf.c
and replaces them with a nice API.
There's multiple reasons why I want this:
-
I want a nice memory-format like API, and the old API was always conflated with dmabufs.
-
I want to be able to reason about these formats on Windows and add
DXGI_FORMAT
s. -
I want to be able to add GStreamer infrastructure and include the file in the GStreamer sink.
-
I want to use it for non-dmabuf conversion, ie from
DXGI_FORMAT
toVkFormat
or GStreamer's formats. -
I want to add formats that are only supported by some of those methods and not dmabufs, see for example these formats.