diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c index c2288feeed..bb544ae904 100644 --- a/gdk/gdkdisplay.c +++ b/gdk/gdkdisplay.c @@ -1920,6 +1920,8 @@ gdk_display_init_dmabuf (GdkDisplay *self) * The formats returned by this function can be used for negotiating * buffer formats with producers such as v4l, pipewire or GStreamer. * + * To learn more about dma-bufs, see [class@Gdk.DmabufTextureBuilder]. + * * Returns: (transfer none): a `GdkDmabufFormats` object * * Since: 4.14 diff --git a/gdk/gdkdmabuftexturebuilder.c b/gdk/gdkdmabuftexturebuilder.c index 5202f76c15..a27699d5e4 100644 --- a/gdk/gdkdmabuftexturebuilder.c +++ b/gdk/gdkdmabuftexturebuilder.c @@ -85,8 +85,7 @@ struct _GdkDmabufTextureBuilderClass * descriptor per plane. * * The format of the data (for graphics data, essentially its colorspace) is described - * by a 32-bit integer. These format identifiers are defined in the header file - * [drm_fourcc.h](https://github.com/torvalds/linux/blob/master/include/uapi/drm_fourcc.h) + * by a 32-bit integer. These format identifiers are defined in the header file `drm_fourcc.h` * and commonly referred to as **_fourcc_** values, since they are identified by 4 ASCII * characters. Additionally, each DMA buffer has a **_modifier_**, which is a 64-bit integer * that describes driver-specific details of the memory layout, such as tiling or compression. @@ -106,6 +105,12 @@ struct _GdkDmabufTextureBuilderClass * `GdkDmabufTextureBuilder` can be used for quick one-shot construction of * textures as well as kept around and reused to construct multiple textures. * + * For further information, see + * + * * The Linux kernel [documentation](https://docs.kernel.org/driver-api/dma-buf.html) + * + * * The header file [drm_fourcc.h](https://gitlab.freedesktop.org/mesa/drm/-/blob/main/include/drm/drm_fourcc.h) + * * Since: 4.14 */