G_BEGIN_DECLS
-GST_EXPORT GType _gst_memory_type;
+GST_API GType _gst_memory_type;
#define GST_TYPE_MEMORY (_gst_memory_type)
-GST_EXPORT
+GST_API
GType gst_memory_get_type(void);
typedef struct _GstMemory GstMemory;
* made when this memory needs to be shared between buffers.
* @GST_MEMORY_FLAG_ZERO_PREFIXED: the memory prefix is filled with 0 bytes
* @GST_MEMORY_FLAG_ZERO_PADDED: the memory padding is filled with 0 bytes
- * @GST_MEMORY_FLAG_PHYSICALLY_CONTIGUOUS: the memory is physically contiguous. (Since 1.2)
- * @GST_MEMORY_FLAG_NOT_MAPPABLE: the memory can't be mapped via gst_memory_map() without any preconditions. (Since 1.2)
+ * @GST_MEMORY_FLAG_PHYSICALLY_CONTIGUOUS: the memory is physically contiguous. (Since: 1.2)
+ * @GST_MEMORY_FLAG_NOT_MAPPABLE: the memory can't be mapped via gst_memory_map() without any preconditions. (Since: 1.2)
* @GST_MEMORY_FLAG_LAST: first flag that can be used for custom purposes
*
* Flags for wrapped memory.
*/
typedef gboolean (*GstMemoryIsSpanFunction) (GstMemory *mem1, GstMemory *mem2, gsize *offset);
-GST_EXPORT
+GST_API
void gst_memory_init (GstMemory *mem, GstMemoryFlags flags,
GstAllocator *allocator, GstMemory *parent,
gsize maxsize, gsize align,
gsize offset, gsize size);
-GST_EXPORT
+GST_API
gboolean gst_memory_is_type (GstMemory *mem, const gchar *mem_type);
/* refcounting */
/* getting/setting memory properties */
-GST_EXPORT
+GST_API
gsize gst_memory_get_sizes (GstMemory *mem, gsize *offset, gsize *maxsize);
-GST_EXPORT
+GST_API
void gst_memory_resize (GstMemory *mem, gssize offset, gsize size);
#define gst_memory_lock(m,f) gst_mini_object_lock (GST_MINI_OBJECT_CAST (m), (f))
/* retrieving data */
-GST_EXPORT
+GST_API
GstMemory * gst_memory_make_mapped (GstMemory *mem, GstMapInfo *info, GstMapFlags flags) G_GNUC_WARN_UNUSED_RESULT;
-GST_EXPORT
+GST_API
gboolean gst_memory_map (GstMemory *mem, GstMapInfo *info, GstMapFlags flags);
-GST_EXPORT
+GST_API
void gst_memory_unmap (GstMemory *mem, GstMapInfo *info);
/* copy and subregions */
-GST_EXPORT
+GST_API
GstMemory * gst_memory_copy (GstMemory *mem, gssize offset, gssize size) G_GNUC_WARN_UNUSED_RESULT;
-GST_EXPORT
+GST_API
GstMemory * gst_memory_share (GstMemory *mem, gssize offset, gssize size) G_GNUC_WARN_UNUSED_RESULT;
/* span memory */
-GST_EXPORT
+GST_API
gboolean gst_memory_is_span (GstMemory *mem1, GstMemory *mem2, gsize *offset);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC