mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
d3d11: Add method for querying d3d11 memory type
... and fix misreading "private" annotation.
This commit is contained in:
parent
8da5237e22
commit
d4c75f32dd
2 changed files with 11 additions and 1 deletions
|
@ -403,3 +403,10 @@ error:
|
|||
gst_d3d11_device_release_texture (device, staging);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
gboolean
|
||||
gst_is_d3d11_memory (GstMemory * mem)
|
||||
{
|
||||
return mem != NULL && mem->allocator != NULL &&
|
||||
GST_IS_D3D11_ALLOCATOR (mem->allocator);
|
||||
}
|
||||
|
|
|
@ -87,9 +87,9 @@ struct _GstD3D11Allocator
|
|||
{
|
||||
GstAllocator parent;
|
||||
|
||||
/*< private >*/
|
||||
GstD3D11Device *device;
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
|
@ -118,6 +118,9 @@ GstD3D11Allocator * gst_d3d11_allocator_new (GstD3D11Device *device);
|
|||
GstMemory * gst_d3d11_allocator_alloc (GstD3D11Allocator * allocator,
|
||||
GstD3D11AllocationParams * params);
|
||||
|
||||
gboolean gst_is_d3d11_memory (GstMemory * mem);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_D3D11_MEMORY_H__ */
|
||||
|
|
Loading…
Reference in a new issue