So far, this is just the API, the code that creates textures doesn't use more than one plane yet.
25 lines
1.1 KiB
C
25 lines
1.1 KiB
C
#pragma once
|
|
|
|
#include "gdkdmabuftexture.h"
|
|
|
|
#include "gdkdmabuftexturebuilder.h"
|
|
#include "gdktextureprivate.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
GdkTexture * gdk_dmabuf_texture_new_from_builder (GdkDmabufTextureBuilder *builder,
|
|
GDestroyNotify destroy,
|
|
gpointer data);
|
|
|
|
unsigned int gdk_dmabuf_texture_get_fourcc (GdkDmabufTexture *texture);
|
|
guint64 gdk_dmabuf_texture_get_modifier (GdkDmabufTexture *texture);
|
|
int gdk_dmabuf_texture_get_fd (GdkDmabufTexture *texture,
|
|
int plane);
|
|
unsigned int gdk_dmabuf_texture_get_offset (GdkDmabufTexture *texture,
|
|
int plane);
|
|
unsigned int gdk_dmabuf_texture_get_stride (GdkDmabufTexture *texture,
|
|
int plane);
|
|
|
|
G_END_DECLS
|
|
|