mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
gst: GST_EXPORT -> GST_API
We need different export decorators for the different libs. For now no actual change though, just rename before the release, and add prelude headers to define the new decorator to GST_EXPORT.
This commit is contained in:
parent
7a008ea481
commit
8983cce9f6
73 changed files with 1602 additions and 1598 deletions
|
@ -25,7 +25,7 @@ DOC_SOURCE_DIR = $(top_srcdir)/gst
|
|||
|
||||
# Extra options to supply to gtkdoc-scan.
|
||||
SCAN_OPTIONS=--deprecated-guards="GST_DISABLE_DEPRECATED" \
|
||||
--ignore-decorators='GST_EXPORT'
|
||||
--ignore-decorators='GST_API'
|
||||
|
||||
# Extra options to supply to gtkdoc-mkdb.
|
||||
MKDB_OPTIONS=--sgml-mode --output-format=xml --ignore-files=parse
|
||||
|
|
|
@ -256,7 +256,7 @@ gstenumtypes.h: $(gst_headers)
|
|||
$(AM_V_GEN)$(GLIB_MKENUMS) \
|
||||
--fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n#include <gst/gstconfig.h>\n\nG_BEGIN_DECLS\n" \
|
||||
--fprod "\n/* enumerations from \"@filename@\" */\n" \
|
||||
--vhead "GST_EXPORT GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
|
||||
--vhead "GST_API GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
|
||||
--ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
|
||||
$^ > gstenumtypes.h
|
||||
|
||||
|
|
26
gst/gst.h
26
gst/gst.h
|
@ -97,43 +97,43 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_init (int *argc, char **argv[]);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_init_check (int *argc, char **argv[],
|
||||
GError ** err);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_is_initialized (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GOptionGroup * gst_init_get_option_group (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_deinit (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_version (guint *major, guint *minor,
|
||||
guint *micro, guint *nano);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_version_string (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_segtrap_is_enabled (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_segtrap_set_enabled (gboolean enabled);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_registry_fork_is_enabled (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_registry_fork_set_enabled (gboolean enabled);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_update_registry (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_get_main_executable_path (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -38,7 +38,7 @@ extern const char g_log_domain_gstreamer[];
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
/* Needed for GST_EXPORT */
|
||||
/* Needed for GST_API */
|
||||
#include "gst/gstconfig.h"
|
||||
|
||||
/* Needed for GstRegistry * */
|
||||
|
@ -144,7 +144,7 @@ gboolean _priv_gst_registry_remove_cache_plugins (GstRegistry *registry);
|
|||
|
||||
G_GNUC_INTERNAL void _priv_gst_registry_cleanup (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean _gst_plugin_loader_client_run (void);
|
||||
|
||||
G_GNUC_INTERNAL GstPlugin * _priv_gst_plugin_load_file_for_registry (const gchar *filename,
|
||||
|
@ -226,12 +226,12 @@ GstCapsFeatures * __gst_caps_get_features_unchecked (const GstCaps * caps, guint
|
|||
#ifndef GST_DISABLE_REGISTRY
|
||||
/* Secret variable to initialise gst without registry cache */
|
||||
|
||||
GST_EXPORT gboolean _gst_disable_registry_cache;
|
||||
GST_API gboolean _gst_disable_registry_cache;
|
||||
#endif
|
||||
|
||||
/* Secret variable to let the plugin scanner use the same base path
|
||||
* as the main application in order to determine dependencies */
|
||||
GST_EXPORT gchar *_gst_executable_path;
|
||||
GST_API gchar *_gst_executable_path;
|
||||
|
||||
/* provide inline gst_g_value_get_foo_unchecked(), used in gststructure.c */
|
||||
#define DEFINE_INLINE_G_VALUE_GET_UNCHECKED(ret_type,name_type,v_field) \
|
||||
|
@ -255,37 +255,37 @@ DEFINE_INLINE_G_VALUE_GET_UNCHECKED(const gchar *,string,v_pointer)
|
|||
|
||||
#ifndef GST_REMOVE_GST_DEBUG
|
||||
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_GST_INIT;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_MEMORY;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_PARENTAGE;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_STATES;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_SCHEDULING;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_BUFFER;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_BUFFER_LIST;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_BUS;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_CAPS;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_CLOCK;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_ELEMENT_PADS;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_PADS;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_PERFORMANCE;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_PIPELINE;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_PLUGIN_LOADING;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_PLUGIN_INFO;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_PROPERTIES;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_NEGOTIATION;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_REFCOUNTING;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_ERROR_SYSTEM;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_EVENT;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_MESSAGE;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_PARAMS;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_CALL_TRACE;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_SIGNAL;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_PROBE;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_REGISTRY;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_QOS;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_META;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_LOCKING;
|
||||
GST_EXPORT GstDebugCategory *GST_CAT_CONTEXT;
|
||||
GST_API GstDebugCategory *GST_CAT_GST_INIT;
|
||||
GST_API GstDebugCategory *GST_CAT_MEMORY;
|
||||
GST_API GstDebugCategory *GST_CAT_PARENTAGE;
|
||||
GST_API GstDebugCategory *GST_CAT_STATES;
|
||||
GST_API GstDebugCategory *GST_CAT_SCHEDULING;
|
||||
GST_API GstDebugCategory *GST_CAT_BUFFER;
|
||||
GST_API GstDebugCategory *GST_CAT_BUFFER_LIST;
|
||||
GST_API GstDebugCategory *GST_CAT_BUS;
|
||||
GST_API GstDebugCategory *GST_CAT_CAPS;
|
||||
GST_API GstDebugCategory *GST_CAT_CLOCK;
|
||||
GST_API GstDebugCategory *GST_CAT_ELEMENT_PADS;
|
||||
GST_API GstDebugCategory *GST_CAT_PADS;
|
||||
GST_API GstDebugCategory *GST_CAT_PERFORMANCE;
|
||||
GST_API GstDebugCategory *GST_CAT_PIPELINE;
|
||||
GST_API GstDebugCategory *GST_CAT_PLUGIN_LOADING;
|
||||
GST_API GstDebugCategory *GST_CAT_PLUGIN_INFO;
|
||||
GST_API GstDebugCategory *GST_CAT_PROPERTIES;
|
||||
GST_API GstDebugCategory *GST_CAT_NEGOTIATION;
|
||||
GST_API GstDebugCategory *GST_CAT_REFCOUNTING;
|
||||
GST_API GstDebugCategory *GST_CAT_ERROR_SYSTEM;
|
||||
GST_API GstDebugCategory *GST_CAT_EVENT;
|
||||
GST_API GstDebugCategory *GST_CAT_MESSAGE;
|
||||
GST_API GstDebugCategory *GST_CAT_PARAMS;
|
||||
GST_API GstDebugCategory *GST_CAT_CALL_TRACE;
|
||||
GST_API GstDebugCategory *GST_CAT_SIGNAL;
|
||||
GST_API GstDebugCategory *GST_CAT_PROBE;
|
||||
GST_API GstDebugCategory *GST_CAT_REGISTRY;
|
||||
GST_API GstDebugCategory *GST_CAT_QOS;
|
||||
GST_API GstDebugCategory *GST_CAT_META;
|
||||
GST_API GstDebugCategory *GST_CAT_LOCKING;
|
||||
GST_API GstDebugCategory *GST_CAT_CONTEXT;
|
||||
|
||||
/* Categories that should be completely private to
|
||||
* libgstreamer should be done like this: */
|
||||
|
|
|
@ -41,7 +41,7 @@ typedef struct _GstAllocatorClass GstAllocatorClass;
|
|||
|
||||
#define GST_TYPE_ALLOCATION_PARAMS (gst_allocation_params_get_type())
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_allocation_params_get_type(void);
|
||||
|
||||
typedef struct _GstAllocationParams GstAllocationParams;
|
||||
|
@ -53,7 +53,7 @@ typedef struct _GstAllocationParams GstAllocationParams;
|
|||
* an alignment of 7 would be the same as what malloc() guarantees.
|
||||
*/
|
||||
|
||||
GST_EXPORT gsize gst_memory_alignment;
|
||||
GST_API gsize gst_memory_alignment;
|
||||
|
||||
/**
|
||||
* GST_ALLOCATOR_SYSMEM:
|
||||
|
@ -151,42 +151,42 @@ struct _GstAllocatorClass {
|
|||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_allocator_get_type (void);
|
||||
|
||||
/* allocators */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_allocator_register (const gchar *name, GstAllocator *allocator);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstAllocator * gst_allocator_find (const gchar *name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_allocator_set_default (GstAllocator * allocator);
|
||||
|
||||
/* allocation parameters */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_allocation_params_init (GstAllocationParams *params);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstAllocationParams *
|
||||
gst_allocation_params_copy (const GstAllocationParams *params) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_allocation_params_free (GstAllocationParams *params);
|
||||
|
||||
/* allocating memory blocks */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMemory * gst_allocator_alloc (GstAllocator * allocator, gsize size,
|
||||
GstAllocationParams *params);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_allocator_free (GstAllocator * allocator, GstMemory *memory);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMemory * gst_memory_new_wrapped (GstMemoryFlags flags, gpointer data, gsize maxsize,
|
||||
gsize offset, gsize size, gpointer user_data,
|
||||
GDestroyNotify notify);
|
||||
|
|
|
@ -41,28 +41,28 @@ G_BEGIN_DECLS
|
|||
typedef struct _GstAtomicQueue GstAtomicQueue;
|
||||
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_atomic_queue_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstAtomicQueue * gst_atomic_queue_new (guint initial_size) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_atomic_queue_ref (GstAtomicQueue * queue);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_atomic_queue_unref (GstAtomicQueue * queue);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_atomic_queue_push (GstAtomicQueue* queue, gpointer data);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gpointer gst_atomic_queue_pop (GstAtomicQueue* queue);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gpointer gst_atomic_queue_peek (GstAtomicQueue* queue);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_atomic_queue_length (GstAtomicQueue * queue);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
32
gst/gstbin.h
32
gst/gstbin.h
|
@ -192,62 +192,62 @@ struct _GstBinClass {
|
|||
gpointer _gst_reserved[GST_PADDING-2];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_bin_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstElement* gst_bin_new (const gchar *name);
|
||||
|
||||
/* add and remove elements from the bin */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_bin_add (GstBin *bin, GstElement *element);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_bin_remove (GstBin *bin, GstElement *element);
|
||||
|
||||
/* retrieve a single child */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstElement* gst_bin_get_by_name (GstBin *bin, const gchar *name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstElement* gst_bin_get_by_name_recurse_up (GstBin *bin, const gchar *name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstElement* gst_bin_get_by_interface (GstBin *bin, GType iface);
|
||||
|
||||
/* retrieve multiple children */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIterator* gst_bin_iterate_elements (GstBin *bin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIterator* gst_bin_iterate_sorted (GstBin *bin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIterator* gst_bin_iterate_recurse (GstBin *bin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIterator* gst_bin_iterate_sinks (GstBin *bin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIterator* gst_bin_iterate_sources (GstBin *bin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIterator* gst_bin_iterate_all_by_interface (GstBin *bin, GType iface);
|
||||
|
||||
/* latency */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_bin_recalculate_latency (GstBin * bin);
|
||||
|
||||
/* set and get suppressed flags */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_bin_set_suppressed_flags (GstBin * bin, GstElementFlags flags);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstElementFlags gst_bin_get_suppressed_flags (GstBin * bin);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
122
gst/gstbuffer.h
122
gst/gstbuffer.h
|
@ -31,7 +31,7 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
GST_EXPORT GType _gst_buffer_type;
|
||||
GST_API GType _gst_buffer_type;
|
||||
|
||||
typedef struct _GstBuffer GstBuffer;
|
||||
typedef struct _GstBufferPool GstBufferPool;
|
||||
|
@ -277,133 +277,133 @@ struct _GstBuffer {
|
|||
guint64 offset_end;
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_buffer_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_buffer_get_max_memory (void);
|
||||
|
||||
/* allocation */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBuffer * gst_buffer_new (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBuffer * gst_buffer_new_allocate (GstAllocator * allocator, gsize size,
|
||||
GstAllocationParams * params);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBuffer * gst_buffer_new_wrapped_full (GstMemoryFlags flags, gpointer data, gsize maxsize,
|
||||
gsize offset, gsize size, gpointer user_data,
|
||||
GDestroyNotify notify);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBuffer * gst_buffer_new_wrapped (gpointer data, gsize size);
|
||||
|
||||
/* memory blocks */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_buffer_n_memory (GstBuffer *buffer);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_insert_memory (GstBuffer *buffer, gint idx, GstMemory *mem);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_replace_memory_range (GstBuffer *buffer, guint idx, gint length, GstMemory *mem);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMemory * gst_buffer_peek_memory (GstBuffer *buffer, guint idx);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMemory * gst_buffer_get_memory_range (GstBuffer *buffer, guint idx, gint length);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_remove_memory_range (GstBuffer *buffer, guint idx, gint length);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_prepend_memory (GstBuffer *buffer, GstMemory *mem);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_append_memory (GstBuffer *buffer, GstMemory *mem);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_replace_memory (GstBuffer *buffer, guint idx, GstMemory *mem);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_replace_all_memory (GstBuffer *buffer, GstMemory *mem);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMemory * gst_buffer_get_memory (GstBuffer *buffer, guint idx);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMemory * gst_buffer_get_all_memory (GstBuffer *buffer);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_remove_memory (GstBuffer *buffer, guint idx);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_remove_all_memory (GstBuffer *buffer);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_find_memory (GstBuffer *buffer, gsize offset, gsize size,
|
||||
guint *idx, guint *length, gsize *skip);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_is_memory_range_writable (GstBuffer *buffer, guint idx, gint length);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_is_all_memory_writable (GstBuffer *buffer);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gsize gst_buffer_fill (GstBuffer *buffer, gsize offset,
|
||||
gconstpointer src, gsize size);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gsize gst_buffer_extract (GstBuffer *buffer, gsize offset,
|
||||
gpointer dest, gsize size);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_buffer_memcmp (GstBuffer *buffer, gsize offset,
|
||||
gconstpointer mem, gsize size);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gsize gst_buffer_memset (GstBuffer *buffer, gsize offset,
|
||||
guint8 val, gsize size);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gsize gst_buffer_get_sizes_range (GstBuffer *buffer, guint idx, gint length,
|
||||
gsize *offset, gsize *maxsize);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_resize_range (GstBuffer *buffer, guint idx, gint length,
|
||||
gssize offset, gssize size);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gsize gst_buffer_get_sizes (GstBuffer *buffer, gsize *offset, gsize *maxsize);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gsize gst_buffer_get_size (GstBuffer *buffer);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_resize (GstBuffer *buffer, gssize offset, gssize size);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_set_size (GstBuffer *buffer, gssize size);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_map_range (GstBuffer *buffer, guint idx, gint length,
|
||||
GstMapInfo *info, GstMapFlags flags);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_map (GstBuffer *buffer, GstMapInfo *info, GstMapFlags flags);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_unmap (GstBuffer *buffer, GstMapInfo *info);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_extract_dup (GstBuffer *buffer, gsize offset,
|
||||
gsize size, gpointer *dest,
|
||||
gsize *dest_size);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBufferFlags gst_buffer_get_flags (GstBuffer * buffer);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_has_flags (GstBuffer * buffer, GstBufferFlags flags);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_set_flags (GstBuffer * buffer, GstBufferFlags flags);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_unset_flags (GstBuffer * buffer, GstBufferFlags flags);
|
||||
|
||||
|
||||
|
@ -461,7 +461,7 @@ gst_buffer_copy (const GstBuffer * buf)
|
|||
return GST_BUFFER (gst_mini_object_copy (GST_MINI_OBJECT_CONST_CAST (buf)));
|
||||
}
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBuffer * gst_buffer_copy_deep (const GstBuffer * buf);
|
||||
|
||||
/**
|
||||
|
@ -513,7 +513,7 @@ typedef enum {
|
|||
|
||||
/* copies memory or metadata into newly allocated buffer */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_copy_into (GstBuffer *dest, GstBuffer *src,
|
||||
GstBufferCopyFlags flags,
|
||||
gsize offset, gsize size);
|
||||
|
@ -579,16 +579,16 @@ gst_buffer_replace (GstBuffer **obuf, GstBuffer *nbuf)
|
|||
|
||||
/* creating a region */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBuffer* gst_buffer_copy_region (GstBuffer *parent, GstBufferCopyFlags flags,
|
||||
gsize offset, gsize size);
|
||||
|
||||
/* append two buffers */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBuffer* gst_buffer_append_region (GstBuffer *buf1, GstBuffer *buf2,
|
||||
gssize offset, gssize size);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBuffer* gst_buffer_append (GstBuffer *buf1, GstBuffer *buf2);
|
||||
|
||||
/* metadata */
|
||||
|
@ -615,26 +615,26 @@ GstBuffer* gst_buffer_append (GstBuffer *buf1, GstBuffer *buf
|
|||
typedef gboolean (*GstBufferForeachMetaFunc) (GstBuffer *buffer, GstMeta **meta,
|
||||
gpointer user_data);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMeta * gst_buffer_get_meta (GstBuffer *buffer, GType api);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_buffer_get_n_meta (GstBuffer *buffer, GType api_type);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMeta * gst_buffer_add_meta (GstBuffer *buffer, const GstMetaInfo *info,
|
||||
gpointer params);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_remove_meta (GstBuffer *buffer, GstMeta *meta);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMeta * gst_buffer_iterate_meta (GstBuffer *buffer, gpointer *state);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMeta * gst_buffer_iterate_meta_filtered (GstBuffer * buffer,
|
||||
gpointer * state,
|
||||
GType meta_api_type);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_foreach_meta (GstBuffer *buffer,
|
||||
GstBufferForeachMetaFunc func,
|
||||
gpointer user_data);
|
||||
|
@ -693,7 +693,7 @@ struct _GstParentBufferMeta
|
|||
GstBuffer *buffer;
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_parent_buffer_meta_api_get_type (void);
|
||||
#ifndef GST_DISABLE_DEPRECATED
|
||||
#define GST_TYPE_PARENT_BUFFER_META_API_TYPE GST_PARENT_BUFFER_META_API_TYPE
|
||||
|
@ -710,13 +710,13 @@ GType gst_parent_buffer_meta_api_get_type (void);
|
|||
#define gst_buffer_get_parent_buffer_meta(b) \
|
||||
((GstParentBufferMeta*)gst_buffer_get_meta((b),GST_PARENT_BUFFER_META_API_TYPE))
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GstMetaInfo *gst_parent_buffer_meta_get_info (void);
|
||||
#define GST_PARENT_BUFFER_META_INFO (gst_parent_buffer_meta_get_info())
|
||||
|
||||
/* implementation */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstParentBufferMeta *gst_buffer_add_parent_buffer_meta (GstBuffer *buffer,
|
||||
GstBuffer *ref);
|
||||
|
||||
|
@ -751,23 +751,23 @@ struct _GstReferenceTimestampMeta
|
|||
GstClockTime timestamp, duration;
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_reference_timestamp_meta_api_get_type (void);
|
||||
#define GST_REFERENCE_TIMESTAMP_META_API_TYPE (gst_reference_timestamp_meta_api_get_type())
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GstMetaInfo *gst_reference_timestamp_meta_get_info (void);
|
||||
#define GST_REFERENCE_TIMESTAMP_META_INFO (gst_reference_timestamp_meta_get_info())
|
||||
|
||||
/* implementation */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstReferenceTimestampMeta * gst_buffer_add_reference_timestamp_meta (GstBuffer * buffer,
|
||||
GstCaps * reference,
|
||||
GstClockTime timestamp,
|
||||
GstClockTime duration);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstReferenceTimestampMeta * gst_buffer_get_reference_timestamp_meta (GstBuffer * buffer,
|
||||
GstCaps * reference);
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
GST_EXPORT GType _gst_buffer_list_type;
|
||||
GST_API GType _gst_buffer_list_type;
|
||||
|
||||
#define GST_TYPE_BUFFER_LIST (_gst_buffer_list_type)
|
||||
#define GST_IS_BUFFER_LIST(obj) (GST_IS_MINI_OBJECT_TYPE(obj, GST_TYPE_BUFFER_LIST))
|
||||
|
@ -131,40 +131,40 @@ gst_buffer_list_copy (const GstBufferList * list)
|
|||
*/
|
||||
#define gst_buffer_list_make_writable(list) GST_BUFFER_LIST_CAST (gst_mini_object_make_writable (GST_MINI_OBJECT_CAST (list)))
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_buffer_list_get_type (void);
|
||||
|
||||
/* allocation */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBufferList * gst_buffer_list_new (void) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBufferList * gst_buffer_list_new_sized (guint size) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_buffer_list_length (GstBufferList *list);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBuffer * gst_buffer_list_get (GstBufferList *list, guint idx);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBuffer * gst_buffer_list_get_writable (GstBufferList *list, guint idx);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_list_insert (GstBufferList *list, gint idx, GstBuffer *buffer);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_list_remove (GstBufferList *list, guint idx, guint length);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_list_foreach (GstBufferList *list,
|
||||
GstBufferListFunc func,
|
||||
gpointer user_data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBufferList * gst_buffer_list_copy_deep (const GstBufferList * list);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gsize gst_buffer_list_calculate_size (GstBufferList * list);
|
||||
|
||||
#define gst_buffer_list_add(l,b) gst_buffer_list_insert((l),-1,(b));
|
||||
|
|
|
@ -175,80 +175,80 @@ struct _GstBufferPoolClass {
|
|||
gpointer _gst_reserved[GST_PADDING - 2];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_buffer_pool_get_type (void);
|
||||
|
||||
/* allocation */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBufferPool * gst_buffer_pool_new (void);
|
||||
|
||||
/* state management */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_pool_set_active (GstBufferPool *pool, gboolean active);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_pool_is_active (GstBufferPool *pool);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_pool_set_config (GstBufferPool *pool, GstStructure *config);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStructure * gst_buffer_pool_get_config (GstBufferPool *pool);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar ** gst_buffer_pool_get_options (GstBufferPool *pool);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_pool_has_option (GstBufferPool *pool, const gchar *option);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_pool_set_flushing (GstBufferPool *pool, gboolean flushing);
|
||||
|
||||
/* helpers for configuring the config structure */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_pool_config_set_params (GstStructure *config, GstCaps *caps,
|
||||
guint size, guint min_buffers, guint max_buffers);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_pool_config_get_params (GstStructure *config, GstCaps **caps,
|
||||
guint *size, guint *min_buffers, guint *max_buffers);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_pool_config_set_allocator (GstStructure *config, GstAllocator *allocator,
|
||||
const GstAllocationParams *params);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_pool_config_get_allocator (GstStructure *config, GstAllocator **allocator,
|
||||
GstAllocationParams *params);
|
||||
|
||||
/* options */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_buffer_pool_config_n_options (GstStructure *config);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_pool_config_add_option (GstStructure *config, const gchar *option);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_buffer_pool_config_get_option (GstStructure *config, guint index);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_pool_config_has_option (GstStructure *config, const gchar *option);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_buffer_pool_config_validate_params (GstStructure *config, GstCaps *caps,
|
||||
guint size, guint min_buffers, guint max_buffers);
|
||||
|
||||
/* buffer management */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstFlowReturn gst_buffer_pool_acquire_buffer (GstBufferPool *pool, GstBuffer **buffer,
|
||||
GstBufferPoolAcquireParams *params);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_buffer_pool_release_buffer (GstBufferPool *pool, GstBuffer *buffer);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
48
gst/gstbus.h
48
gst/gstbus.h
|
@ -132,95 +132,95 @@ struct _GstBusClass
|
|||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_bus_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBus* gst_bus_new (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_bus_post (GstBus * bus, GstMessage * message);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_bus_have_pending (GstBus * bus);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_bus_peek (GstBus * bus);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_bus_pop (GstBus * bus);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_bus_pop_filtered (GstBus * bus, GstMessageType types);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_bus_timed_pop (GstBus * bus, GstClockTime timeout);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_bus_timed_pop_filtered (GstBus * bus, GstClockTime timeout, GstMessageType types);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_bus_set_flushing (GstBus * bus, gboolean flushing);
|
||||
|
||||
/* synchronous dispatching */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_bus_set_sync_handler (GstBus * bus, GstBusSyncHandler func,
|
||||
gpointer user_data, GDestroyNotify notify);
|
||||
|
||||
/* asynchronous message notifications */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_bus_get_pollfd (GstBus * bus, GPollFD *fd);
|
||||
|
||||
/* GSource based dispatching */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GSource * gst_bus_create_watch (GstBus * bus);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_bus_add_watch_full (GstBus * bus,
|
||||
gint priority,
|
||||
GstBusFunc func,
|
||||
gpointer user_data,
|
||||
GDestroyNotify notify);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_bus_add_watch (GstBus * bus,
|
||||
GstBusFunc func,
|
||||
gpointer user_data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_bus_remove_watch (GstBus * bus);
|
||||
|
||||
/* polling the bus */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage* gst_bus_poll (GstBus *bus, GstMessageType events,
|
||||
GstClockTime timeout);
|
||||
|
||||
/* signal based dispatching helper functions. */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_bus_async_signal_func (GstBus *bus, GstMessage *message,
|
||||
gpointer data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBusSyncReply gst_bus_sync_signal_handler (GstBus *bus, GstMessage *message,
|
||||
gpointer data);
|
||||
|
||||
/* convenience api to add/remove a gsource that emits the async signals */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_bus_add_signal_watch (GstBus * bus);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_bus_add_signal_watch_full (GstBus * bus, gint priority);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_bus_remove_signal_watch (GstBus * bus);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_bus_enable_sync_message_emission (GstBus * bus);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_bus_disable_sync_message_emission (GstBus * bus);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
104
gst/gstcaps.h
104
gst/gstcaps.h
|
@ -28,7 +28,7 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
GST_EXPORT GType _gst_caps_type;
|
||||
GST_API GType _gst_caps_type;
|
||||
|
||||
#define GST_TYPE_CAPS (_gst_caps_type)
|
||||
#define GST_IS_CAPS(obj) (GST_IS_MINI_OBJECT_TYPE((obj), GST_TYPE_CAPS))
|
||||
|
@ -136,9 +136,9 @@ typedef enum {
|
|||
typedef struct _GstCaps GstCaps;
|
||||
typedef struct _GstStaticCaps GstStaticCaps;
|
||||
|
||||
GST_EXPORT GstCaps * _gst_caps_any;
|
||||
GST_API GstCaps * _gst_caps_any;
|
||||
|
||||
GST_EXPORT GstCaps * _gst_caps_none;
|
||||
GST_API GstCaps * _gst_caps_none;
|
||||
/**
|
||||
* GST_CAPS_FLAGS:
|
||||
* @caps: a #GstCaps.
|
||||
|
@ -396,174 +396,174 @@ typedef gboolean (*GstCapsFilterMapFunc) (GstCapsFeatures *features,
|
|||
gpointer user_data);
|
||||
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_caps_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_caps_new_empty (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_caps_new_any (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_caps_new_empty_simple (const char *media_type) G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_caps_new_simple (const char *media_type,
|
||||
const char *fieldname,
|
||||
...) G_GNUC_NULL_TERMINATED G_GNUC_WARN_UNUSED_RESULT;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_caps_new_full (GstStructure *struct1,
|
||||
...) G_GNUC_NULL_TERMINATED G_GNUC_WARN_UNUSED_RESULT;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_caps_new_full_valist (GstStructure *structure,
|
||||
va_list var_args) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_static_caps_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_static_caps_get (GstStaticCaps *static_caps);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_static_caps_cleanup (GstStaticCaps *static_caps);
|
||||
|
||||
/* manipulation */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_caps_append (GstCaps *caps1,
|
||||
GstCaps *caps2);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_caps_append_structure (GstCaps *caps,
|
||||
GstStructure *structure);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_caps_append_structure_full (GstCaps *caps,
|
||||
GstStructure *structure,
|
||||
GstCapsFeatures *features);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_caps_remove_structure (GstCaps *caps, guint idx);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_caps_merge (GstCaps *caps1,
|
||||
GstCaps *caps2) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_caps_merge_structure (GstCaps *caps,
|
||||
GstStructure *structure) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_caps_merge_structure_full (GstCaps *caps,
|
||||
GstStructure *structure,
|
||||
GstCapsFeatures *features) G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_caps_get_size (const GstCaps *caps);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStructure * gst_caps_get_structure (const GstCaps *caps,
|
||||
guint index);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStructure * gst_caps_steal_structure (GstCaps *caps,
|
||||
guint index) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_caps_set_features (GstCaps *caps,
|
||||
guint index,
|
||||
GstCapsFeatures * features);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCapsFeatures * gst_caps_get_features (const GstCaps *caps,
|
||||
guint index);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_caps_copy_nth (const GstCaps *caps, guint nth) G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_caps_truncate (GstCaps *caps) G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_caps_set_value (GstCaps *caps,
|
||||
const char *field,
|
||||
const GValue *value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_caps_set_simple (GstCaps *caps,
|
||||
const char *field, ...) G_GNUC_NULL_TERMINATED;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_caps_set_simple_valist (GstCaps *caps,
|
||||
const char *field,
|
||||
va_list varargs);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_caps_foreach (const GstCaps *caps,
|
||||
GstCapsForeachFunc func,
|
||||
gpointer user_data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_caps_map_in_place (GstCaps *caps,
|
||||
GstCapsMapFunc func,
|
||||
gpointer user_data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_caps_filter_and_map_in_place (GstCaps *caps,
|
||||
GstCapsFilterMapFunc func,
|
||||
gpointer user_data);
|
||||
|
||||
/* tests */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_caps_is_any (const GstCaps *caps);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_caps_is_empty (const GstCaps *caps);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_caps_is_fixed (const GstCaps *caps);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_caps_is_always_compatible (const GstCaps *caps1,
|
||||
const GstCaps *caps2);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_caps_is_subset (const GstCaps *subset,
|
||||
const GstCaps *superset);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_caps_is_subset_structure (const GstCaps *caps,
|
||||
const GstStructure *structure);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_caps_is_subset_structure_full (const GstCaps *caps,
|
||||
const GstStructure *structure,
|
||||
const GstCapsFeatures *features);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_caps_is_equal (const GstCaps *caps1,
|
||||
const GstCaps *caps2);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_caps_is_equal_fixed (const GstCaps *caps1,
|
||||
const GstCaps *caps2);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_caps_can_intersect (const GstCaps * caps1,
|
||||
const GstCaps * caps2);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_caps_is_strictly_equal (const GstCaps *caps1,
|
||||
const GstCaps *caps2);
|
||||
|
||||
|
||||
/* operations */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_caps_intersect (GstCaps *caps1,
|
||||
GstCaps *caps2) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_caps_intersect_full (GstCaps *caps1,
|
||||
GstCaps *caps2,
|
||||
GstCapsIntersectMode mode) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_caps_subtract (GstCaps *minuend,
|
||||
GstCaps *subtrahend) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_caps_normalize (GstCaps *caps) G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_caps_simplify (GstCaps *caps) G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_caps_fixate (GstCaps *caps) G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
/* utility */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_caps_to_string (const GstCaps *caps) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_caps_from_string (const gchar *string) G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
|
@ -30,7 +30,7 @@ G_BEGIN_DECLS
|
|||
|
||||
typedef struct _GstCapsFeatures GstCapsFeatures;
|
||||
|
||||
GST_EXPORT GType _gst_caps_features_type;
|
||||
GST_API GType _gst_caps_features_type;
|
||||
|
||||
#define GST_TYPE_CAPS_FEATURES (_gst_caps_features_type)
|
||||
#define GST_IS_CAPS_FEATURES(object) (gst_is_caps_features(object))
|
||||
|
@ -39,82 +39,82 @@ GST_EXPORT GType _gst_caps_features_type;
|
|||
|
||||
#define GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY "memory:SystemMemory"
|
||||
|
||||
GST_EXPORT GstCapsFeatures *_gst_caps_features_any;
|
||||
GST_API GstCapsFeatures *_gst_caps_features_any;
|
||||
#define GST_CAPS_FEATURES_ANY (_gst_caps_features_any)
|
||||
|
||||
GST_EXPORT GstCapsFeatures *_gst_caps_features_memory_system_memory;
|
||||
GST_API GstCapsFeatures *_gst_caps_features_memory_system_memory;
|
||||
#define GST_CAPS_FEATURES_MEMORY_SYSTEM_MEMORY (_gst_caps_features_memory_system_memory)
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_caps_features_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_is_caps_features (gconstpointer obj);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCapsFeatures * gst_caps_features_new_empty (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCapsFeatures * gst_caps_features_new_any (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCapsFeatures * gst_caps_features_new (const gchar *feature1, ...);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCapsFeatures * gst_caps_features_new_valist (const gchar *feature1, va_list varargs);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCapsFeatures * gst_caps_features_new_id (GQuark feature1, ...);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCapsFeatures * gst_caps_features_new_id_valist (GQuark feature1, va_list varargs);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_caps_features_set_parent_refcount (GstCapsFeatures *features, gint * refcount);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCapsFeatures * gst_caps_features_copy (const GstCapsFeatures * features);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_caps_features_free (GstCapsFeatures * features);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_caps_features_to_string (const GstCapsFeatures * features);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCapsFeatures * gst_caps_features_from_string (const gchar * features);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_caps_features_get_size (const GstCapsFeatures * features);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_caps_features_get_nth (const GstCapsFeatures * features, guint i);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GQuark gst_caps_features_get_nth_id (const GstCapsFeatures * features, guint i);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_caps_features_contains (const GstCapsFeatures * features, const gchar * feature);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_caps_features_contains_id (const GstCapsFeatures * features, GQuark feature);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_caps_features_is_equal (const GstCapsFeatures * features1, const GstCapsFeatures * features2);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_caps_features_is_any (const GstCapsFeatures * features);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_caps_features_add (GstCapsFeatures * features, const gchar * feature);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_caps_features_add_id ( GstCapsFeatures * features, GQuark feature);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_caps_features_remove (GstCapsFeatures * features, const gchar * feature);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_caps_features_remove_id (GstCapsFeatures * features, GQuark feature);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
|
@ -67,48 +67,48 @@ struct _GstChildProxyInterface
|
|||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_child_proxy_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GObject * gst_child_proxy_get_child_by_name (GstChildProxy * parent, const gchar * name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_child_proxy_get_children_count (GstChildProxy * parent);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GObject * gst_child_proxy_get_child_by_index (GstChildProxy * parent, guint index);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_child_proxy_lookup (GstChildProxy *object, const gchar *name,
|
||||
GObject **target, GParamSpec **pspec);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_child_proxy_get_property (GstChildProxy * object, const gchar *name,
|
||||
GValue *value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_child_proxy_get_valist (GstChildProxy * object,
|
||||
const gchar * first_property_name,
|
||||
va_list var_args);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_child_proxy_get (GstChildProxy * object,
|
||||
const gchar * first_property_name,
|
||||
...) G_GNUC_NULL_TERMINATED;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_child_proxy_set_property (GstChildProxy * object, const gchar *name,
|
||||
const GValue *value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_child_proxy_set_valist (GstChildProxy* object,
|
||||
const gchar * first_property_name,
|
||||
va_list var_args);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_child_proxy_set (GstChildProxy * object,
|
||||
const gchar * first_property_name,
|
||||
...) G_GNUC_NULL_TERMINATED;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_child_proxy_child_added (GstChildProxy * parent, GObject * child,
|
||||
const gchar *name);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_child_proxy_child_removed (GstChildProxy * parent, GObject * child,
|
||||
const gchar *name);
|
||||
|
||||
|
|
|
@ -491,24 +491,24 @@ struct _GstClockClass {
|
|||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_clock_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockTime gst_clock_set_resolution (GstClock *clock,
|
||||
GstClockTime resolution);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockTime gst_clock_get_resolution (GstClock *clock);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockTime gst_clock_get_time (GstClock *clock);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_clock_set_calibration (GstClock *clock, GstClockTime internal,
|
||||
GstClockTime external,
|
||||
GstClockTime rate_num,
|
||||
GstClockTime rate_denom);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_clock_get_calibration (GstClock *clock, GstClockTime *internal,
|
||||
GstClockTime *external,
|
||||
GstClockTime *rate_num,
|
||||
|
@ -516,22 +516,22 @@ void gst_clock_get_calibration (GstClock *clock, GstClo
|
|||
|
||||
/* master/slave clocks */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_clock_set_master (GstClock *clock, GstClock *master);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClock* gst_clock_get_master (GstClock *clock);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_clock_set_timeout (GstClock *clock,
|
||||
GstClockTime timeout);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockTime gst_clock_get_timeout (GstClock *clock);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_clock_add_observation (GstClock *clock, GstClockTime slave,
|
||||
GstClockTime master, gdouble *r_squared);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_clock_add_observation_unapplied (GstClock *clock, GstClockTime slave,
|
||||
GstClockTime master, gdouble *r_squared,
|
||||
GstClockTime *internal,
|
||||
|
@ -541,84 +541,84 @@ gboolean gst_clock_add_observation_unapplied (GstClock *clock, Gs
|
|||
|
||||
/* getting and adjusting internal/external time */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockTime gst_clock_get_internal_time (GstClock *clock);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockTime gst_clock_adjust_unlocked (GstClock *clock, GstClockTime internal);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockTime gst_clock_adjust_with_calibration (GstClock *clock,
|
||||
GstClockTime internal_target,
|
||||
GstClockTime cinternal,
|
||||
GstClockTime cexternal,
|
||||
GstClockTime cnum,
|
||||
GstClockTime cdenom);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockTime gst_clock_unadjust_with_calibration (GstClock *clock,
|
||||
GstClockTime external_target,
|
||||
GstClockTime cinternal,
|
||||
GstClockTime cexternal,
|
||||
GstClockTime cnum,
|
||||
GstClockTime cdenom);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockTime gst_clock_unadjust_unlocked (GstClock * clock, GstClockTime external);
|
||||
|
||||
/* waiting for, signalling and checking for synchronization */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_clock_wait_for_sync (GstClock * clock, GstClockTime timeout);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_clock_is_synced (GstClock * clock);
|
||||
|
||||
/* to be used by subclasses only */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_clock_set_synced (GstClock * clock, gboolean synced);
|
||||
|
||||
/* creating IDs that can be used to get notifications */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockID gst_clock_new_single_shot_id (GstClock *clock,
|
||||
GstClockTime time);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockID gst_clock_new_periodic_id (GstClock *clock,
|
||||
GstClockTime start_time,
|
||||
GstClockTime interval);
|
||||
|
||||
/* reference counting */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockID gst_clock_id_ref (GstClockID id);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_clock_id_unref (GstClockID id);
|
||||
|
||||
/* operations on IDs */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_clock_id_compare_func (gconstpointer id1, gconstpointer id2);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockTime gst_clock_id_get_time (GstClockID id);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockReturn gst_clock_id_wait (GstClockID id,
|
||||
GstClockTimeDiff *jitter);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockReturn gst_clock_id_wait_async (GstClockID id,
|
||||
GstClockCallback func,
|
||||
gpointer user_data,
|
||||
GDestroyNotify destroy_data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_clock_id_unschedule (GstClockID id);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_clock_single_shot_id_reinit (GstClock * clock,
|
||||
GstClockID id,
|
||||
GstClockTime time);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_clock_periodic_id_reinit (GstClock * clock,
|
||||
GstClockID id,
|
||||
GstClockTime start_time,
|
||||
|
|
|
@ -155,16 +155,20 @@
|
|||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef GST_API
|
||||
#define GST_API GST_EXPORT
|
||||
#endif
|
||||
|
||||
/* These macros are used to mark deprecated functions in GStreamer headers,
|
||||
* and thus have to be exposed in installed headers. But please
|
||||
* do *not* use them in other projects. Instead, use G_DEPRECATED
|
||||
* or define your own wrappers around it. */
|
||||
#ifndef GST_DISABLE_DEPRECATED
|
||||
#define GST_DEPRECATED GST_EXPORT
|
||||
#define GST_DEPRECATED_FOR(f) GST_EXPORT
|
||||
#define GST_DEPRECATED GST_API
|
||||
#define GST_DEPRECATED_FOR(f) GST_API
|
||||
#else
|
||||
#define GST_DEPRECATED G_DEPRECATED GST_EXPORT
|
||||
#define GST_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) GST_EXPORT
|
||||
#define GST_DEPRECATED G_DEPRECATED GST_API
|
||||
#define GST_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) GST_API
|
||||
#endif
|
||||
|
||||
#endif /* __GST_CONFIG_H__ */
|
||||
|
|
|
@ -33,7 +33,7 @@ typedef struct _GstContext GstContext;
|
|||
#include <gst/gstminiobject.h>
|
||||
#include <gst/gststructure.h>
|
||||
|
||||
GST_EXPORT GType _gst_context_type;
|
||||
GST_API GType _gst_context_type;
|
||||
|
||||
#define GST_TYPE_CONTEXT (_gst_context_type)
|
||||
#define GST_IS_CONTEXT(obj) (GST_IS_MINI_OBJECT_TYPE (obj, GST_TYPE_CONTEXT))
|
||||
|
@ -42,7 +42,7 @@ GST_EXPORT GType _gst_context_type;
|
|||
|
||||
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_context_get_type (void);
|
||||
|
||||
|
||||
|
@ -133,22 +133,22 @@ gst_context_replace (GstContext **old_context, GstContext *new_context)
|
|||
return gst_mini_object_replace ((GstMiniObject **) old_context, (GstMiniObject *) new_context);
|
||||
}
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstContext * gst_context_new (const gchar * context_type,
|
||||
gboolean persistent) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_context_get_context_type (const GstContext * context);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_context_has_context_type (const GstContext * context, const gchar * context_type);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GstStructure * gst_context_get_structure (const GstContext * context);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStructure * gst_context_writable_structure (GstContext * context);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_context_is_persistent (const GstContext * context);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
|
@ -110,27 +110,27 @@ struct _GstControlBindingClass
|
|||
|
||||
#define GST_CONTROL_BINDING_PSPEC(cb) (((GstControlBinding *) cb)->pspec)
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_control_binding_get_type (void);
|
||||
|
||||
/* Functions */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_control_binding_sync_values (GstControlBinding * binding, GstObject *object,
|
||||
GstClockTime timestamp, GstClockTime last_sync);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GValue * gst_control_binding_get_value (GstControlBinding *binding,
|
||||
GstClockTime timestamp);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_control_binding_get_value_array (GstControlBinding *binding, GstClockTime timestamp,
|
||||
GstClockTime interval, guint n_values, gpointer values);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_control_binding_get_g_value_array (GstControlBinding *binding, GstClockTime timestamp,
|
||||
GstClockTime interval, guint n_values, GValue *values);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_control_binding_set_disabled (GstControlBinding * binding, gboolean disabled);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_control_binding_is_disabled (GstControlBinding * binding);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
|
@ -125,15 +125,15 @@ struct _GstControlSourceClass
|
|||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_control_source_get_type (void);
|
||||
|
||||
/* Functions */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_control_source_get_value (GstControlSource *self, GstClockTime timestamp,
|
||||
gdouble *value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_control_source_get_value_array (GstControlSource *self, GstClockTime timestamp,
|
||||
GstClockTime interval, guint n_values,
|
||||
gdouble *values);
|
||||
|
|
|
@ -39,7 +39,7 @@ G_BEGIN_DECLS
|
|||
*/
|
||||
typedef struct _GstDateTime GstDateTime;
|
||||
|
||||
GST_EXPORT GType _gst_date_time_type;
|
||||
GST_API GType _gst_date_time_type;
|
||||
|
||||
/**
|
||||
* GST_TYPE_DATE_TIME:
|
||||
|
@ -51,107 +51,107 @@ GST_EXPORT GType _gst_date_time_type;
|
|||
|
||||
#define GST_TYPE_DATE_TIME (_gst_date_time_type)
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_date_time_get_type (void);
|
||||
|
||||
/* query which fields are set */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_date_time_has_year (const GstDateTime * datetime);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_date_time_has_month (const GstDateTime * datetime);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_date_time_has_day (const GstDateTime * datetime);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_date_time_has_time (const GstDateTime * datetime);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_date_time_has_second (const GstDateTime * datetime);
|
||||
|
||||
/* field getters */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_date_time_get_year (const GstDateTime * datetime);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_date_time_get_month (const GstDateTime * datetime);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_date_time_get_day (const GstDateTime * datetime);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_date_time_get_hour (const GstDateTime * datetime);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_date_time_get_minute (const GstDateTime * datetime);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_date_time_get_second (const GstDateTime * datetime);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_date_time_get_microsecond (const GstDateTime * datetime);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gfloat gst_date_time_get_time_zone_offset (const GstDateTime * datetime);
|
||||
|
||||
/* constructors */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDateTime * gst_date_time_new_from_unix_epoch_local_time (gint64 secs) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDateTime * gst_date_time_new_from_unix_epoch_utc (gint64 secs) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDateTime * gst_date_time_new_local_time (gint year,
|
||||
gint month,
|
||||
gint day,
|
||||
gint hour,
|
||||
gint minute,
|
||||
gdouble seconds) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDateTime * gst_date_time_new_y (gint year) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDateTime * gst_date_time_new_ym (gint year,
|
||||
gint month) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDateTime * gst_date_time_new_ymd (gint year,
|
||||
gint month,
|
||||
gint day) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDateTime * gst_date_time_new (gfloat tzoffset,
|
||||
gint year, gint month,
|
||||
gint day, gint hour,
|
||||
gint minute,
|
||||
gdouble seconds) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDateTime * gst_date_time_new_now_local_time (void) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDateTime * gst_date_time_new_now_utc (void) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_date_time_to_iso8601_string (GstDateTime * datetime) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDateTime * gst_date_time_new_from_iso8601_string (const gchar * string) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GDateTime * gst_date_time_to_g_date_time (GstDateTime * datetime);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDateTime * gst_date_time_new_from_g_date_time (GDateTime * dt);
|
||||
|
||||
/* refcounting */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDateTime * gst_date_time_ref (GstDateTime * datetime);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_date_time_unref (GstDateTime * datetime);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
|
@ -58,13 +58,13 @@ typedef enum {
|
|||
|
||||
/********** pipeline graphs **********/
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_debug_bin_to_dot_data (GstBin *bin, GstDebugGraphDetails details);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_bin_to_dot_file (GstBin *bin, GstDebugGraphDetails details, const gchar *file_name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_bin_to_dot_file_with_ts (GstBin *bin, GstDebugGraphDetails details, const gchar *file_name);
|
||||
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
|
|
|
@ -84,31 +84,31 @@ struct _GstDeviceClass {
|
|||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_device_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstElement * gst_device_create_element (GstDevice * device, const gchar * name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_device_get_caps (GstDevice * device);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_device_get_display_name (GstDevice * device);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_device_get_device_class (GstDevice * device);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStructure * gst_device_get_properties (GstDevice * device);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_device_reconfigure_element (GstDevice * device,
|
||||
GstElement * element);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_device_has_classesv (GstDevice * device,
|
||||
gchar ** classes);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_device_has_classes (GstDevice * device,
|
||||
const gchar * classes);
|
||||
|
||||
|
|
|
@ -75,40 +75,40 @@ struct _GstDeviceMonitorClass {
|
|||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_device_monitor_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDeviceMonitor * gst_device_monitor_new (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBus * gst_device_monitor_get_bus (GstDeviceMonitor * monitor);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList * gst_device_monitor_get_devices (GstDeviceMonitor * monitor);
|
||||
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_device_monitor_start (GstDeviceMonitor * monitor);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_device_monitor_stop (GstDeviceMonitor * monitor);
|
||||
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_device_monitor_add_filter (GstDeviceMonitor * monitor,
|
||||
const gchar * classes,
|
||||
GstCaps * caps);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_device_monitor_remove_filter (GstDeviceMonitor * monitor,
|
||||
guint filter_id);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar ** gst_device_monitor_get_providers (GstDeviceMonitor * monitor);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_device_monitor_set_show_all_devices (GstDeviceMonitor * monitor, gboolean show_all);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_device_monitor_get_show_all_devices (GstDeviceMonitor * monitor);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
|
@ -99,72 +99,72 @@ struct _GstDeviceProviderClass {
|
|||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_device_provider_get_type (void);
|
||||
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList * gst_device_provider_get_devices (GstDeviceProvider * provider);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_device_provider_start (GstDeviceProvider * provider);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_device_provider_stop (GstDeviceProvider * provider);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_device_provider_can_monitor (GstDeviceProvider * provider);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBus * gst_device_provider_get_bus (GstDeviceProvider * provider);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_device_provider_device_add (GstDeviceProvider * provider,
|
||||
GstDevice * device);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_device_provider_device_remove (GstDeviceProvider * provider,
|
||||
GstDevice * device);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar ** gst_device_provider_get_hidden_providers (GstDeviceProvider * provider);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_device_provider_hide_provider (GstDeviceProvider * provider,
|
||||
const gchar * name);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_device_provider_unhide_provider (GstDeviceProvider * provider,
|
||||
const gchar * name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_device_provider_get_metadata (GstDeviceProvider * provider,
|
||||
const gchar * key);
|
||||
|
||||
/* device provider class meta data */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_device_provider_class_set_metadata (GstDeviceProviderClass *klass,
|
||||
const gchar *longname,
|
||||
const gchar *classification,
|
||||
const gchar *description,
|
||||
const gchar *author);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_device_provider_class_set_static_metadata (GstDeviceProviderClass *klass,
|
||||
const gchar *longname,
|
||||
const gchar *classification,
|
||||
const gchar *description,
|
||||
const gchar *author);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_device_provider_class_add_metadata (GstDeviceProviderClass * klass,
|
||||
const gchar * key, const gchar * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_device_provider_class_add_static_metadata (GstDeviceProviderClass * klass,
|
||||
const gchar * key, const gchar * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_device_provider_class_get_metadata (GstDeviceProviderClass * klass,
|
||||
const gchar * key);
|
||||
|
||||
/* factory management */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDeviceProviderFactory * gst_device_provider_get_factory (GstDeviceProvider * provider);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
|
@ -60,38 +60,38 @@ G_BEGIN_DECLS
|
|||
#define GST_IS_DEVICE_PROVIDER_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DEVICE_PROVIDER_FACTORY))
|
||||
#define GST_DEVICE_PROVIDER_FACTORY_CAST(obj) ((GstDeviceProviderFactory *)(obj))
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_device_provider_factory_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDeviceProviderFactory * gst_device_provider_factory_find (const gchar *name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_device_provider_factory_get_device_provider_type (GstDeviceProviderFactory *factory);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_device_provider_factory_get_metadata (GstDeviceProviderFactory *factory, const gchar *key);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar ** gst_device_provider_factory_get_metadata_keys (GstDeviceProviderFactory *factory);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDeviceProvider* gst_device_provider_factory_get (GstDeviceProviderFactory *factory) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDeviceProvider* gst_device_provider_factory_get_by_name (const gchar *factoryname) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_device_provider_register (GstPlugin *plugin, const gchar *name,
|
||||
guint rank,
|
||||
GType type);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_device_provider_factory_has_classesv (GstDeviceProviderFactory * factory,
|
||||
gchar ** classes);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_device_provider_factory_has_classes (GstDeviceProviderFactory *factory,
|
||||
const gchar * classes);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList * gst_device_provider_factory_list_get_device_providers (
|
||||
GstRank minrank) G_GNUC_MALLOC;
|
||||
|
||||
|
|
|
@ -45,13 +45,13 @@ G_BEGIN_DECLS
|
|||
#define GST_IS_DYNAMIC_TYPE_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DYNAMIC_TYPE_FACTORY))
|
||||
#define GST_DYNAMIC_TYPE_FACTORY_CAST(obj) ((GstDynamicTypeFactory *)(obj))
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_dynamic_type_factory_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_dynamic_type_factory_load (const gchar *factoryname);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_dynamic_type_register (GstPlugin *plugin, GType type);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
126
gst/gstelement.h
126
gst/gstelement.h
|
@ -347,7 +347,7 @@ typedef enum
|
|||
*/
|
||||
#define GST_ELEMENT_START_TIME(elem) (GST_ELEMENT_CAST(elem)->start_time)
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStructure *gst_make_element_message_details (const char *name, ...);
|
||||
|
||||
#define GST_ELEMENT_MESSAGE_MAKE_DETAILS(args) gst_make_element_message_details args
|
||||
|
@ -745,51 +745,51 @@ struct _GstElementClass
|
|||
|
||||
/* element class pad templates */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_class_add_pad_template (GstElementClass *klass, GstPadTemplate *templ);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_class_add_static_pad_template (GstElementClass *klass, GstStaticPadTemplate *static_templ);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_class_add_static_pad_template_with_gtype (GstElementClass *klass,
|
||||
GstStaticPadTemplate *static_templ,
|
||||
GType pad_type);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPadTemplate* gst_element_class_get_pad_template (GstElementClass *element_class, const gchar *name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList* gst_element_class_get_pad_template_list (GstElementClass *element_class);
|
||||
|
||||
/* element class meta data */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_class_set_metadata (GstElementClass *klass,
|
||||
const gchar *longname,
|
||||
const gchar *classification,
|
||||
const gchar *description,
|
||||
const gchar *author);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_class_set_static_metadata (GstElementClass *klass,
|
||||
const gchar *longname,
|
||||
const gchar *classification,
|
||||
const gchar *description,
|
||||
const gchar *author);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_class_add_metadata (GstElementClass * klass,
|
||||
const gchar * key, const gchar * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_class_add_static_metadata (GstElementClass * klass,
|
||||
const gchar * key, const gchar * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_element_class_get_metadata (GstElementClass * klass,
|
||||
const gchar * key);
|
||||
|
||||
|
||||
/* element instance */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_element_get_type (void);
|
||||
|
||||
/* basic name and parentage stuff from GstObject */
|
||||
|
@ -839,79 +839,79 @@ GType gst_element_get_type (void);
|
|||
|
||||
/* clocking */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClock* gst_element_provide_clock (GstElement *element);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClock* gst_element_get_clock (GstElement *element);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_set_clock (GstElement *element, GstClock *clock);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_set_base_time (GstElement *element, GstClockTime time);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockTime gst_element_get_base_time (GstElement *element);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_set_start_time (GstElement *element, GstClockTime time);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockTime gst_element_get_start_time (GstElement *element);
|
||||
|
||||
/* bus */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_set_bus (GstElement * element, GstBus * bus);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBus * gst_element_get_bus (GstElement * element);
|
||||
|
||||
/* context */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_set_context (GstElement * element, GstContext * context);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList * gst_element_get_contexts (GstElement * element);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstContext * gst_element_get_context (GstElement * element, const gchar * context_type);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstContext * gst_element_get_context_unlocked (GstElement * element, const gchar * context_type);
|
||||
|
||||
/* pad management */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_add_pad (GstElement *element, GstPad *pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_remove_pad (GstElement *element, GstPad *pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_no_more_pads (GstElement *element);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPad* gst_element_get_static_pad (GstElement *element, const gchar *name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPad* gst_element_get_request_pad (GstElement *element, const gchar *name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPad* gst_element_request_pad (GstElement *element, GstPadTemplate *templ,
|
||||
const gchar * name, const GstCaps *caps);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_release_request_pad (GstElement *element, GstPad *pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIterator * gst_element_iterate_pads (GstElement * element);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIterator * gst_element_iterate_src_pads (GstElement * element);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIterator * gst_element_iterate_sink_pads (GstElement * element);
|
||||
|
||||
/**
|
||||
|
@ -931,52 +931,52 @@ typedef gboolean (*GstElementForeachPadFunc) (GstElement * element,
|
|||
GstPad * pad,
|
||||
gpointer user_data);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_foreach_sink_pad (GstElement * element,
|
||||
GstElementForeachPadFunc func,
|
||||
gpointer user_data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_foreach_src_pad (GstElement * element,
|
||||
GstElementForeachPadFunc func,
|
||||
gpointer user_data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_foreach_pad (GstElement * element,
|
||||
GstElementForeachPadFunc func,
|
||||
gpointer user_data);
|
||||
/* event/query/format stuff */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_send_event (GstElement *element, GstEvent *event);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_seek (GstElement *element, gdouble rate,
|
||||
GstFormat format, GstSeekFlags flags,
|
||||
GstSeekType start_type, gint64 start,
|
||||
GstSeekType stop_type, gint64 stop);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_query (GstElement *element, GstQuery *query);
|
||||
|
||||
/* messages */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_post_message (GstElement * element, GstMessage * message);
|
||||
|
||||
/* error handling */
|
||||
/* gcc versions < 3.3 warn about NULL being passed as format to printf */
|
||||
#if (!defined(__GNUC__) || (__GNUC__ < 3) || (__GNUC__ == 3 && __GNUC_MINOR__ < 3))
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * _gst_element_error_printf (const gchar *format, ...);
|
||||
#else
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * _gst_element_error_printf (const gchar *format, ...) G_GNUC_PRINTF (1, 2);
|
||||
#endif
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_message_full (GstElement * element, GstMessageType type,
|
||||
GQuark domain, gint code, gchar * text,
|
||||
gchar * debug, const gchar * file,
|
||||
const gchar * function, gint line);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_message_full_with_details (GstElement * element, GstMessageType type,
|
||||
GQuark domain, gint code, gchar * text,
|
||||
gchar * debug, const gchar * file,
|
||||
|
@ -985,69 +985,69 @@ void gst_element_message_full_with_details (GstElement * elem
|
|||
|
||||
/* state management */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_is_locked_state (GstElement *element);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_set_locked_state (GstElement *element, gboolean locked_state);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_sync_state_with_parent (GstElement *element);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStateChangeReturn gst_element_get_state (GstElement * element,
|
||||
GstState * state,
|
||||
GstState * pending,
|
||||
GstClockTime timeout);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStateChangeReturn gst_element_set_state (GstElement *element, GstState state);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_abort_state (GstElement * element);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStateChangeReturn gst_element_change_state (GstElement * element,
|
||||
GstStateChange transition);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStateChangeReturn gst_element_continue_state (GstElement * element,
|
||||
GstStateChangeReturn ret);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_lost_state (GstElement * element);
|
||||
|
||||
|
||||
typedef void (*GstElementCallAsyncFunc) (GstElement * element,
|
||||
gpointer user_data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_call_async (GstElement * element,
|
||||
GstElementCallAsyncFunc func, gpointer user_data,
|
||||
GDestroyNotify destroy_notify);
|
||||
|
||||
/* factory management */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstElementFactory* gst_element_get_factory (GstElement *element);
|
||||
|
||||
/* utility functions */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gulong gst_element_add_property_notify_watch (GstElement * element,
|
||||
const gchar * property_name,
|
||||
gboolean include_value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gulong gst_element_add_property_deep_notify_watch (GstElement * element,
|
||||
const gchar * property_name,
|
||||
gboolean include_value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_remove_property_notify_watch (GstElement * element,
|
||||
gulong watch_id);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPadTemplate* gst_element_get_pad_template (GstElement *element, const gchar *name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList* gst_element_get_pad_template_list (GstElement *element);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_element_get_metadata (GstElement * element, const gchar * key);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
|
@ -50,43 +50,43 @@ G_BEGIN_DECLS
|
|||
#define GST_IS_ELEMENT_FACTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ELEMENT_FACTORY))
|
||||
#define GST_ELEMENT_FACTORY_CAST(obj) ((GstElementFactory *)(obj))
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_element_factory_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstElementFactory * gst_element_factory_find (const gchar *name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_element_factory_get_element_type (GstElementFactory *factory);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_element_factory_get_metadata (GstElementFactory *factory, const gchar *key);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar ** gst_element_factory_get_metadata_keys (GstElementFactory *factory);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_element_factory_get_num_pad_templates (GstElementFactory *factory);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GList * gst_element_factory_get_static_pad_templates (GstElementFactory *factory);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstURIType gst_element_factory_get_uri_type (GstElementFactory *factory);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * const * gst_element_factory_get_uri_protocols (GstElementFactory *factory);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_factory_has_interface (GstElementFactory *factory,
|
||||
const gchar *interfacename);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstElement* gst_element_factory_create (GstElementFactory *factory,
|
||||
const gchar *name) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstElement* gst_element_factory_make (const gchar *factoryname, const gchar *name) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_register (GstPlugin *plugin, const gchar *name,
|
||||
guint rank, GType type);
|
||||
|
||||
|
@ -210,16 +210,16 @@ typedef guint64 GstElementFactoryListType;
|
|||
#define GST_ELEMENT_FACTORY_KLASS_MEDIA_SUBTITLE "Subtitle"
|
||||
#define GST_ELEMENT_FACTORY_KLASS_MEDIA_METADATA "Metadata"
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_factory_list_is_type (GstElementFactory *factory,
|
||||
GstElementFactoryListType type);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList * gst_element_factory_list_get_elements (GstElementFactoryListType type,
|
||||
GstRank minrank) G_GNUC_MALLOC;
|
||||
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList * gst_element_factory_list_filter (GList *list, const GstCaps *caps,
|
||||
GstPadDirection direction,
|
||||
gboolean subsetonly) G_GNUC_MALLOC;
|
||||
|
|
|
@ -14,7 +14,7 @@ G_BEGIN_DECLS
|
|||
/*** END file-production ***/
|
||||
|
||||
/*** BEGIN value-header ***/
|
||||
GST_EXPORT GType @enum_name@_get_type (void);
|
||||
GST_API GType @enum_name@_get_type (void);
|
||||
#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ())
|
||||
/*** END value-header ***/
|
||||
|
||||
|
|
|
@ -242,19 +242,19 @@ typedef enum
|
|||
*/
|
||||
#define GST_ERROR_SYSTEM ("system error: %s", g_strerror (errno))
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar *gst_error_get_message (GQuark domain, gint code);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GQuark gst_stream_error_quark (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GQuark gst_core_error_quark (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GQuark gst_resource_error_quark (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GQuark gst_library_error_quark (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
124
gst/gstevent.h
124
gst/gstevent.h
|
@ -222,7 +222,7 @@ typedef enum {
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
GST_EXPORT GType _gst_event_type;
|
||||
GST_API GType _gst_event_type;
|
||||
|
||||
#define GST_TYPE_EVENT (_gst_event_type)
|
||||
#define GST_IS_EVENT(obj) (GST_IS_MINI_OBJECT_TYPE (obj, GST_TYPE_EVENT))
|
||||
|
@ -410,13 +410,13 @@ struct _GstEvent {
|
|||
guint32 seqnum;
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar* gst_event_type_get_name (GstEventType type);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GQuark gst_event_type_to_quark (GstEventType type);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEventTypeFlags
|
||||
gst_event_type_get_flags (GstEventType type);
|
||||
|
||||
|
@ -463,193 +463,193 @@ gst_event_copy (const GstEvent * event)
|
|||
return GST_EVENT_CAST (gst_mini_object_copy (GST_MINI_OBJECT_CONST_CAST (event)));
|
||||
}
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_event_get_type (void);
|
||||
|
||||
/* custom event */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent* gst_event_new_custom (GstEventType type, GstStructure *structure) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GstStructure *
|
||||
gst_event_get_structure (GstEvent *event);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStructure * gst_event_writable_structure (GstEvent *event);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_event_has_name (GstEvent *event, const gchar *name);
|
||||
|
||||
/* identifiers for events and messages */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint32 gst_event_get_seqnum (GstEvent *event);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_set_seqnum (GstEvent *event, guint32 seqnum);
|
||||
|
||||
/* accumulated pad offsets for the event */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint64 gst_event_get_running_time_offset (GstEvent *event);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_set_running_time_offset (GstEvent *event, gint64 offset);
|
||||
|
||||
/* Stream start event */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent * gst_event_new_stream_start (const gchar *stream_id) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_stream_start (GstEvent *event, const gchar **stream_id);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_set_stream (GstEvent *event, GstStream *stream);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_stream (GstEvent *event, GstStream **stream);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_set_stream_flags (GstEvent *event, GstStreamFlags flags);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_stream_flags (GstEvent *event, GstStreamFlags *flags);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_set_group_id (GstEvent *event, guint group_id);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_event_parse_group_id (GstEvent *event, guint *group_id);
|
||||
|
||||
/* flush events */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent * gst_event_new_flush_start (void) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent * gst_event_new_flush_stop (gboolean reset_time) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_flush_stop (GstEvent *event, gboolean *reset_time);
|
||||
|
||||
/* Stream collection event */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent * gst_event_new_stream_collection (GstStreamCollection *collection) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_stream_collection (GstEvent *event, GstStreamCollection **collection);
|
||||
|
||||
/* select streams event */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent * gst_event_new_select_streams (GList *streams);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_select_streams (GstEvent *event, GList **streams);
|
||||
|
||||
/* stream-group-done event */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent * gst_event_new_stream_group_done (guint group_id) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_stream_group_done (GstEvent *event, guint *group_id);
|
||||
|
||||
/* EOS event */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent * gst_event_new_eos (void) G_GNUC_MALLOC;
|
||||
|
||||
/* GAP event */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent * gst_event_new_gap (GstClockTime timestamp,
|
||||
GstClockTime duration) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_gap (GstEvent * event,
|
||||
GstClockTime * timestamp,
|
||||
GstClockTime * duration);
|
||||
|
||||
/* Caps events */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent * gst_event_new_caps (GstCaps *caps) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_caps (GstEvent *event, GstCaps **caps);
|
||||
|
||||
/* segment event */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent* gst_event_new_segment (const GstSegment *segment) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_segment (GstEvent *event, const GstSegment **segment);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_copy_segment (GstEvent *event, GstSegment *segment);
|
||||
|
||||
/* tag event */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent* gst_event_new_tag (GstTagList *taglist) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_tag (GstEvent *event, GstTagList **taglist);
|
||||
|
||||
/* TOC event */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent* gst_event_new_toc (GstToc *toc, gboolean updated);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_toc (GstEvent *event, GstToc **toc, gboolean *updated);
|
||||
|
||||
/* Protection event */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent * gst_event_new_protection (const gchar * system_id, GstBuffer * data, const gchar * origin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_protection (GstEvent * event, const gchar ** system_id,
|
||||
GstBuffer ** data, const gchar ** origin);
|
||||
|
||||
/* buffer */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent * gst_event_new_buffer_size (GstFormat format, gint64 minsize, gint64 maxsize,
|
||||
gboolean async) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_buffer_size (GstEvent *event, GstFormat *format, gint64 *minsize,
|
||||
gint64 *maxsize, gboolean *async);
|
||||
|
||||
/* sink message */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent* gst_event_new_sink_message (const gchar *name, GstMessage *msg) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_sink_message (GstEvent *event, GstMessage **msg);
|
||||
|
||||
/* QOS events */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent* gst_event_new_qos (GstQOSType type, gdouble proportion,
|
||||
GstClockTimeDiff diff, GstClockTime timestamp) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_qos (GstEvent *event, GstQOSType *type,
|
||||
gdouble *proportion, GstClockTimeDiff *diff,
|
||||
GstClockTime *timestamp);
|
||||
/* seek event */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent* gst_event_new_seek (gdouble rate, GstFormat format, GstSeekFlags flags,
|
||||
GstSeekType start_type, gint64 start,
|
||||
GstSeekType stop_type, gint64 stop) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_seek (GstEvent *event, gdouble *rate, GstFormat *format,
|
||||
GstSeekFlags *flags,
|
||||
GstSeekType *start_type, gint64 *start,
|
||||
|
@ -657,45 +657,45 @@ void gst_event_parse_seek (GstEvent *event, gdouble *rate,
|
|||
|
||||
/* navigation event */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent* gst_event_new_navigation (GstStructure *structure) G_GNUC_MALLOC;
|
||||
|
||||
/* latency event */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent* gst_event_new_latency (GstClockTime latency) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_latency (GstEvent *event, GstClockTime *latency);
|
||||
|
||||
/* step event */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent* gst_event_new_step (GstFormat format, guint64 amount, gdouble rate,
|
||||
gboolean flush, gboolean intermediate) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_step (GstEvent *event, GstFormat *format, guint64 *amount,
|
||||
gdouble *rate, gboolean *flush, gboolean *intermediate);
|
||||
|
||||
/* renegotiate event */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent* gst_event_new_reconfigure (void) G_GNUC_MALLOC;
|
||||
|
||||
/* TOC select event */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent* gst_event_new_toc_select (const gchar *uid) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_toc_select (GstEvent *event, gchar **uid);
|
||||
|
||||
/* segment-done event */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent* gst_event_new_segment_done (GstFormat format, gint64 position) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_event_parse_segment_done (GstEvent *event, GstFormat *format, gint64 *position);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
|
@ -92,33 +92,33 @@ struct _GstFormatDefinition
|
|||
GQuark quark;
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar* gst_format_get_name (GstFormat format);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GQuark gst_format_to_quark (GstFormat format);
|
||||
|
||||
/* register a new format */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstFormat gst_format_register (const gchar *nick,
|
||||
const gchar *description);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstFormat gst_format_get_by_nick (const gchar *nick);
|
||||
|
||||
/* check if a format is in an array of formats */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_formats_contains (const GstFormat *formats, GstFormat format);
|
||||
|
||||
/* query for format details */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GstFormatDefinition*
|
||||
gst_format_get_details (GstFormat format);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIterator* gst_format_iterate_definitions (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -57,23 +57,23 @@ struct _GstProxyPadClass
|
|||
gpointer _gst_reserved[1];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_proxy_pad_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstProxyPad * gst_proxy_pad_get_internal (GstProxyPad *pad);
|
||||
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIterator* gst_proxy_pad_iterate_internal_links_default (GstPad *pad, GstObject *parent) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstFlowReturn gst_proxy_pad_chain_default (GstPad *pad, GstObject *parent,
|
||||
GstBuffer *buffer);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstFlowReturn gst_proxy_pad_chain_list_default (GstPad *pad, GstObject *parent,
|
||||
GstBufferList *list);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstFlowReturn gst_proxy_pad_getrange_default (GstPad *pad, GstObject *parent,
|
||||
guint64 offset, guint size,
|
||||
GstBuffer **buffer);
|
||||
|
@ -111,34 +111,34 @@ struct _GstGhostPadClass
|
|||
};
|
||||
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_ghost_pad_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPad* gst_ghost_pad_new (const gchar *name, GstPad *target) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPad* gst_ghost_pad_new_no_target (const gchar *name, GstPadDirection dir) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPad* gst_ghost_pad_new_from_template (const gchar *name, GstPad * target, GstPadTemplate * templ) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPad* gst_ghost_pad_new_no_target_from_template (const gchar *name, GstPadTemplate * templ) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPad* gst_ghost_pad_get_target (GstGhostPad *gpad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_ghost_pad_set_target (GstGhostPad *gpad, GstPad *newtarget);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_ghost_pad_construct (GstGhostPad *gpad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_ghost_pad_activate_mode_default (GstPad * pad, GstObject * parent,
|
||||
GstPadMode mode, gboolean active);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_ghost_pad_internal_activate_mode_default (GstPad * pad, GstObject * parent,
|
||||
GstPadMode mode, gboolean active);
|
||||
|
||||
|
|
100
gst/gstinfo.h
100
gst/gstinfo.h
|
@ -323,7 +323,7 @@ typedef void (*GstLogFunction) (GstDebugCategory * category,
|
|||
GstDebugMessage * message,
|
||||
gpointer user_data);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_log (GstDebugCategory * category,
|
||||
GstDebugLevel level,
|
||||
const gchar * file,
|
||||
|
@ -332,7 +332,7 @@ void gst_debug_log (GstDebugCategory * category,
|
|||
GObject * object,
|
||||
const gchar * format,
|
||||
...) G_GNUC_PRINTF (7, 8) G_GNUC_NO_INSTRUMENT;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_log_valist (GstDebugCategory * category,
|
||||
GstDebugLevel level,
|
||||
const gchar * file,
|
||||
|
@ -344,20 +344,20 @@ void gst_debug_log_valist (GstDebugCategory * category,
|
|||
|
||||
/* do not use this function, use the GST_DEBUG_CATEGORY_INIT macro */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDebugCategory *_gst_debug_category_new (const gchar * name,
|
||||
guint color,
|
||||
const gchar * description);
|
||||
|
||||
/* do not use this function, use the GST_DEBUG_CATEGORY_GET macro */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDebugCategory *_gst_debug_get_category (const gchar *name);
|
||||
|
||||
|
||||
/* do not use this function, use the GST_CAT_MEMDUMP_* macros */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void _gst_debug_dump_mem (GstDebugCategory * cat, const gchar * file,
|
||||
const gchar * func, gint line, GObject * obj, const gchar * msg,
|
||||
const guint8 * data, guint length);
|
||||
|
@ -370,18 +370,18 @@ typedef void (* GstDebugFuncPtr) (void);
|
|||
|
||||
/* do no use these functions, use the GST_DEBUG*_FUNCPTR macros */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void _gst_debug_register_funcptr (GstDebugFuncPtr func,
|
||||
const gchar * ptrname);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar *
|
||||
_gst_debug_nameof_funcptr (GstDebugFuncPtr func) G_GNUC_NO_INSTRUMENT;
|
||||
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_debug_message_get (GstDebugMessage * message);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_log_default (GstDebugCategory * category,
|
||||
GstDebugLevel level,
|
||||
const gchar * file,
|
||||
|
@ -390,108 +390,108 @@ void gst_debug_log_default (GstDebugCategory * category,
|
|||
GObject * object,
|
||||
GstDebugMessage * message,
|
||||
gpointer user_data) G_GNUC_NO_INSTRUMENT;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_debug_level_get_name (GstDebugLevel level);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_add_log_function (GstLogFunction func,
|
||||
gpointer user_data,
|
||||
GDestroyNotify notify);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_debug_remove_log_function (GstLogFunction func);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_debug_remove_log_function_by_data (gpointer data);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_set_active (gboolean active);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_debug_is_active (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_set_colored (gboolean colored);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_set_color_mode (GstDebugColorMode mode);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_set_color_mode_from_string (const gchar * mode);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_debug_is_colored (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDebugColorMode gst_debug_get_color_mode (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_set_default_threshold (GstDebugLevel level);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDebugLevel gst_debug_get_default_threshold (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_set_threshold_for_name (const gchar * name,
|
||||
GstDebugLevel level);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_set_threshold_from_string (const gchar * list, gboolean reset);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_unset_threshold_for_name (const gchar * name);
|
||||
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_category_free (GstDebugCategory * category);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_category_set_threshold (GstDebugCategory * category,
|
||||
GstDebugLevel level);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_category_reset_threshold (GstDebugCategory * category);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstDebugLevel gst_debug_category_get_threshold (GstDebugCategory * category);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_debug_category_get_name (GstDebugCategory * category);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_debug_category_get_color (GstDebugCategory * category);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_debug_category_get_description (GstDebugCategory * category);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GSList * gst_debug_get_all_categories (void);
|
||||
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_debug_construct_term_color (guint colorinfo);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_debug_construct_win_color (guint colorinfo);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_info_vasprintf (gchar ** result,
|
||||
const gchar * format,
|
||||
va_list args) G_GNUC_PRINTF (2, 0);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_info_strdup_vprintf (const gchar *format, va_list args) G_GNUC_PRINTF (1, 0);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_info_strdup_printf (const gchar *format, ...) G_GNUC_PRINTF (1, 2);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_print (const gchar * format, ...) G_GNUC_PRINTF (1, 2);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_println (const gchar * format, ...) G_GNUC_PRINTF (1, 2);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_printerr (const gchar * format, ...) G_GNUC_PRINTF (1, 2);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_printerrln (const gchar * format, ...) G_GNUC_PRINTF (1, 2);
|
||||
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
|
@ -609,15 +609,15 @@ G_STMT_START{ \
|
|||
* Default gstreamer core debug log category. Please define your own.
|
||||
*/
|
||||
|
||||
GST_EXPORT GstDebugCategory * GST_CAT_DEFAULT;
|
||||
GST_API GstDebugCategory * GST_CAT_DEFAULT;
|
||||
/* this symbol may not be used */
|
||||
|
||||
GST_EXPORT gboolean _gst_debug_enabled;
|
||||
GST_API gboolean _gst_debug_enabled;
|
||||
|
||||
/* the min debug level, used for quickly discarding debug
|
||||
* messages that fall under the threshold. */
|
||||
|
||||
GST_EXPORT GstDebugLevel _gst_debug_min;
|
||||
GST_API GstDebugLevel _gst_debug_min;
|
||||
|
||||
/**
|
||||
* GST_CAT_LEVEL_LOG:
|
||||
|
@ -1740,17 +1740,17 @@ GST_TRACE (const char *format, ...)
|
|||
#endif /* GST_DISABLE_GST_DEBUG */
|
||||
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_print_stack_trace (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_debug_get_stack_trace (GstStackTraceFlags flags);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_add_ring_buffer_logger (guint max_size_per_thread, guint thread_timeout);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_debug_remove_ring_buffer_logger (void);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar ** gst_debug_ring_buffer_logger_get_logs (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -225,12 +225,12 @@ struct _GstIterator {
|
|||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_iterator_get_type (void);
|
||||
|
||||
/* creating iterators */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIterator* gst_iterator_new (guint size,
|
||||
GType type,
|
||||
GMutex *lock,
|
||||
|
@ -240,46 +240,46 @@ GstIterator* gst_iterator_new (guint size,
|
|||
GstIteratorItemFunction item,
|
||||
GstIteratorResyncFunction resync,
|
||||
GstIteratorFreeFunction free) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIterator* gst_iterator_new_list (GType type,
|
||||
GMutex *lock,
|
||||
guint32 *master_cookie,
|
||||
GList **list,
|
||||
GObject * owner,
|
||||
GstIteratorItemFunction item) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIterator* gst_iterator_new_single (GType type,
|
||||
const GValue * object) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIterator* gst_iterator_copy (const GstIterator *it) G_GNUC_MALLOC;
|
||||
|
||||
/* using iterators */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIteratorResult gst_iterator_next (GstIterator *it, GValue * elem);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_iterator_resync (GstIterator *it);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_iterator_free (GstIterator *it);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_iterator_push (GstIterator *it, GstIterator *other);
|
||||
|
||||
/* higher-order functions that operate on iterators */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIterator* gst_iterator_filter (GstIterator *it, GCompareFunc func,
|
||||
const GValue * user_data) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIteratorResult gst_iterator_fold (GstIterator *it,
|
||||
GstIteratorFoldFunction func,
|
||||
GValue *ret, gpointer user_data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIteratorResult gst_iterator_foreach (GstIterator *it,
|
||||
GstIteratorForeachFunction func, gpointer user_data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_iterator_find_custom (GstIterator *it, GCompareFunc func,
|
||||
GValue *elem, gpointer user_data);
|
||||
|
||||
|
|
|
@ -31,10 +31,10 @@
|
|||
|
||||
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;
|
||||
|
@ -310,12 +310,12 @@ typedef GstMemory * (*GstMemoryShareFunction) (GstMemory *mem, gssize offset
|
|||
*/
|
||||
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 */
|
||||
|
@ -347,10 +347,10 @@ gst_memory_unref (GstMemory * memory)
|
|||
|
||||
/* 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))
|
||||
|
@ -360,26 +360,26 @@ void gst_memory_resize (GstMemory *mem, gssize offset, gsize siz
|
|||
|
||||
/* 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
|
||||
|
|
194
gst/gstmessage.h
194
gst/gstmessage.h
|
@ -185,7 +185,7 @@ typedef enum
|
|||
#include <gst/gststreams.h>
|
||||
#include <gst/gststreamcollection.h>
|
||||
|
||||
GST_EXPORT GType _gst_message_type;
|
||||
GST_API GType _gst_message_type;
|
||||
|
||||
#define GST_TYPE_MESSAGE (_gst_message_type)
|
||||
#define GST_IS_MESSAGE(obj) (GST_IS_MINI_OBJECT_TYPE (obj, GST_TYPE_MESSAGE))
|
||||
|
@ -342,13 +342,13 @@ struct _GstMessage
|
|||
|
||||
#include <gst/gstquery.h>
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_message_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar* gst_message_type_get_name (GstMessageType type);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GQuark gst_message_type_to_quark (GstMessageType type);
|
||||
|
||||
/* refcounting */
|
||||
|
@ -441,375 +441,375 @@ gst_message_replace (GstMessage **old_message, GstMessage *new_message)
|
|||
|
||||
/* custom messages */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_custom (GstMessageType type,
|
||||
GstObject * src,
|
||||
GstStructure * structure) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GstStructure *
|
||||
gst_message_get_structure (GstMessage *message);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStructure * gst_message_writable_structure (GstMessage *message);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_message_has_name (GstMessage *message, const gchar *name);
|
||||
|
||||
/* identifiers for events and messages */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint32 gst_message_get_seqnum (GstMessage *message);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_set_seqnum (GstMessage *message, guint32 seqnum);
|
||||
|
||||
/* EOS */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_eos (GstObject * src) G_GNUC_MALLOC;
|
||||
|
||||
/* ERROR */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_error (GstObject * src, GError * error, const gchar * debug) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_error_with_details (GstObject * src, GError * error, const gchar * debug, GstStructure * details) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_error (GstMessage *message, GError **gerror, gchar **debug);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_error_details (GstMessage *message, const GstStructure **structure);
|
||||
|
||||
/* WARNING */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_warning (GstObject * src, GError * error, const gchar * debug) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_warning_with_details (GstObject * src, GError * error, const gchar * debug, GstStructure * details) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_warning (GstMessage *message, GError **gerror, gchar **debug);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_warning_details (GstMessage *message, const GstStructure **structure);
|
||||
|
||||
/* INFO */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_info (GstObject * src, GError * error, const gchar * debug) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_info_with_details (GstObject * src, GError * error, const gchar * debug, GstStructure * details) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_info (GstMessage *message, GError **gerror, gchar **debug);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_info_details (GstMessage *message, const GstStructure **structure);
|
||||
|
||||
/* TAG */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_tag (GstObject * src, GstTagList * tag_list) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_tag (GstMessage *message, GstTagList **tag_list);
|
||||
|
||||
/* BUFFERING */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_buffering (GstObject * src, gint percent) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_buffering (GstMessage *message, gint *percent);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_set_buffering_stats (GstMessage *message, GstBufferingMode mode,
|
||||
gint avg_in, gint avg_out,
|
||||
gint64 buffering_left);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_buffering_stats (GstMessage *message, GstBufferingMode *mode,
|
||||
gint *avg_in, gint *avg_out,
|
||||
gint64 *buffering_left);
|
||||
|
||||
/* STATE_CHANGED */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_state_changed (GstObject * src, GstState oldstate,
|
||||
GstState newstate, GstState pending) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_state_changed (GstMessage *message, GstState *oldstate,
|
||||
GstState *newstate, GstState *pending);
|
||||
|
||||
/* STATE_DIRTY */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_state_dirty (GstObject * src) G_GNUC_MALLOC;
|
||||
|
||||
/* STEP_DONE */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_step_done (GstObject * src, GstFormat format, guint64 amount,
|
||||
gdouble rate, gboolean flush, gboolean intermediate,
|
||||
guint64 duration, gboolean eos) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_step_done (GstMessage * message, GstFormat *format, guint64 *amount,
|
||||
gdouble *rate, gboolean *flush, gboolean *intermediate,
|
||||
guint64 *duration, gboolean *eos);
|
||||
/* CLOCK_PROVIDE */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_clock_provide (GstObject * src, GstClock *clock, gboolean ready) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_clock_provide (GstMessage *message, GstClock **clock,
|
||||
gboolean *ready);
|
||||
|
||||
/* CLOCK_LOST */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_clock_lost (GstObject * src, GstClock *clock) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_clock_lost (GstMessage *message, GstClock **clock);
|
||||
|
||||
/* NEW_CLOCK */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_new_clock (GstObject * src, GstClock *clock) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_new_clock (GstMessage *message, GstClock **clock);
|
||||
|
||||
/* APPLICATION */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_application (GstObject * src, GstStructure * structure) G_GNUC_MALLOC;
|
||||
|
||||
/* ELEMENT */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_element (GstObject * src, GstStructure * structure) G_GNUC_MALLOC;
|
||||
|
||||
/* SEGMENT_START */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_segment_start (GstObject * src, GstFormat format, gint64 position) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_segment_start (GstMessage *message, GstFormat *format,
|
||||
gint64 *position);
|
||||
|
||||
/* SEGMENT_DONE */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_segment_done (GstObject * src, GstFormat format, gint64 position) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_segment_done (GstMessage *message, GstFormat *format,
|
||||
gint64 *position);
|
||||
|
||||
/* DURATION_CHANGED */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_duration_changed (GstObject * src) G_GNUC_MALLOC;
|
||||
|
||||
/* LATENCY */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_latency (GstObject * src) G_GNUC_MALLOC;
|
||||
|
||||
/* ASYNC_START */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_async_start (GstObject * src) G_GNUC_MALLOC;
|
||||
|
||||
/* ASYNC_DONE */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_async_done (GstObject * src, GstClockTime running_time) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_async_done (GstMessage *message, GstClockTime *running_time);
|
||||
|
||||
/* STRUCTURE CHANGE */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_structure_change (GstObject * src, GstStructureChangeType type,
|
||||
GstElement *owner, gboolean busy) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_structure_change (GstMessage *message, GstStructureChangeType *type,
|
||||
GstElement **owner, gboolean *busy);
|
||||
|
||||
/* STREAM STATUS */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_stream_status (GstObject * src, GstStreamStatusType type,
|
||||
GstElement *owner) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_stream_status (GstMessage *message, GstStreamStatusType *type,
|
||||
GstElement **owner);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_set_stream_status_object (GstMessage *message, const GValue *object);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GValue * gst_message_get_stream_status_object (GstMessage *message);
|
||||
|
||||
/* REQUEST_STATE */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_request_state (GstObject * src, GstState state) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_request_state (GstMessage * message, GstState *state);
|
||||
|
||||
/* STEP_START */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_step_start (GstObject * src, gboolean active, GstFormat format,
|
||||
guint64 amount, gdouble rate, gboolean flush,
|
||||
gboolean intermediate) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_step_start (GstMessage * message, gboolean *active, GstFormat *format,
|
||||
guint64 *amount, gdouble *rate, gboolean *flush,
|
||||
gboolean *intermediate);
|
||||
|
||||
/* QOS */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_qos (GstObject * src, gboolean live, guint64 running_time,
|
||||
guint64 stream_time, guint64 timestamp, guint64 duration) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_set_qos_values (GstMessage * message, gint64 jitter, gdouble proportion,
|
||||
gint quality);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_set_qos_stats (GstMessage * message, GstFormat format, guint64 processed,
|
||||
guint64 dropped);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_qos (GstMessage * message, gboolean * live, guint64 * running_time,
|
||||
guint64 * stream_time, guint64 * timestamp, guint64 * duration);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_qos_values (GstMessage * message, gint64 * jitter, gdouble * proportion,
|
||||
gint * quality);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_qos_stats (GstMessage * message, GstFormat * format, guint64 * processed,
|
||||
guint64 * dropped);
|
||||
/* PROGRESS */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_progress (GstObject * src, GstProgressType type, const gchar *code,
|
||||
const gchar *text) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_progress (GstMessage * message, GstProgressType * type, gchar ** code,
|
||||
gchar ** text);
|
||||
|
||||
/* TOC */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_toc (GstObject *src, GstToc *toc, gboolean updated);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_toc (GstMessage *message, GstToc **toc, gboolean *updated);
|
||||
|
||||
/* RESET_TIME */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_reset_time (GstObject * src, GstClockTime running_time) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_reset_time (GstMessage *message, GstClockTime *running_time);
|
||||
|
||||
/* STREAM_START */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_stream_start (GstObject * src) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_set_group_id (GstMessage *message, guint group_id);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_message_parse_group_id (GstMessage *message, guint *group_id);
|
||||
|
||||
/* NEED_CONTEXT */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_need_context (GstObject * src, const gchar * context_type) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_message_parse_context_type (GstMessage * message, const gchar ** context_type);
|
||||
|
||||
/* HAVE_CONTEXT */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_have_context (GstObject * src, GstContext *context) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_have_context (GstMessage *message, GstContext **context);
|
||||
|
||||
/* DEVICE_ADDED */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_device_added (GstObject * src, GstDevice * device) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_device_added (GstMessage * message, GstDevice ** device);
|
||||
|
||||
/* DEVICE_REMOVED */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_device_removed (GstObject * src, GstDevice * device) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_device_removed (GstMessage * message, GstDevice ** device);
|
||||
|
||||
/* PROPERTY_NOTIFY */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_property_notify (GstObject * src, const gchar * property_name, GValue * val) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_property_notify (GstMessage * message, GstObject ** object, const gchar ** property_name, const GValue ** property_value);
|
||||
|
||||
/* STREAM_COLLECTION */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_stream_collection (GstObject * src, GstStreamCollection * collection) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_stream_collection (GstMessage *message, GstStreamCollection **collection);
|
||||
|
||||
/* STREAMS_SELECTED */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_streams_selected (GstObject *src, GstStreamCollection *collection);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_streams_selected_add (GstMessage *message, GstStream *stream);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_streams_selected (GstMessage * message, GstStreamCollection **collection);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_message_streams_selected_get_size (GstMessage * message);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStream *gst_message_streams_selected_get_stream (GstMessage *message, guint idx);
|
||||
|
||||
/* REDIRECT */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMessage * gst_message_new_redirect (GstObject * src, const gchar * location, GstTagList * tag_list, const GstStructure * entry_struct) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_add_redirect_entry (GstMessage * message, const gchar * location, GstTagList * tag_list, const GstStructure * entry_struct);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_message_parse_redirect_entry (GstMessage * message, gsize entry_index, const gchar ** location, GstTagList ** tag_list, const GstStructure ** entry_struct);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gsize gst_message_get_num_redirect_entries (GstMessage * message);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
|
@ -132,7 +132,7 @@ typedef void (*GstMetaFreeFunction) (GstMeta *meta, GstBuffer *buffer);
|
|||
* GQuark for the "gst-copy" transform.
|
||||
*/
|
||||
|
||||
GST_EXPORT GQuark _gst_meta_transform_copy;
|
||||
GST_API GQuark _gst_meta_transform_copy;
|
||||
|
||||
/**
|
||||
* GST_META_TRANSFORM_IS_COPY:
|
||||
|
@ -204,27 +204,27 @@ struct _GstMetaInfo {
|
|||
* just like interfaces */
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_meta_api_type_register (const gchar *api,
|
||||
const gchar **tags);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_meta_api_type_has_tag (GType api, GQuark tag);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GstMetaInfo * gst_meta_register (GType api, const gchar *impl,
|
||||
gsize size,
|
||||
GstMetaInitFunction init_func,
|
||||
GstMetaFreeFunction free_func,
|
||||
GstMetaTransformFunction transform_func);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GstMetaInfo * gst_meta_get_info (const gchar * impl);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar* const* gst_meta_api_type_get_tags (GType api);
|
||||
|
||||
/* some default tags */
|
||||
|
||||
GST_EXPORT GQuark _gst_meta_tag_memory;
|
||||
GST_API GQuark _gst_meta_tag_memory;
|
||||
|
||||
/**
|
||||
* GST_META_TAG_MEMORY:
|
||||
|
|
|
@ -218,7 +218,7 @@ struct _GstMiniObject {
|
|||
gpointer qdata;
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_mini_object_init (GstMiniObject *mini_object,
|
||||
guint flags, GType type,
|
||||
GstMiniObjectCopyFunction copy_func,
|
||||
|
@ -228,57 +228,57 @@ void gst_mini_object_init (GstMiniObject *mini_object,
|
|||
|
||||
/* refcounting */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMiniObject * gst_mini_object_ref (GstMiniObject *mini_object);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_mini_object_unref (GstMiniObject *mini_object);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_mini_object_weak_ref (GstMiniObject *object,
|
||||
GstMiniObjectNotify notify,
|
||||
gpointer data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_mini_object_weak_unref (GstMiniObject *object,
|
||||
GstMiniObjectNotify notify,
|
||||
gpointer data);
|
||||
|
||||
/* locking */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_mini_object_lock (GstMiniObject *object, GstLockFlags flags);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_mini_object_unlock (GstMiniObject *object, GstLockFlags flags);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_mini_object_is_writable (const GstMiniObject *mini_object);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMiniObject * gst_mini_object_make_writable (GstMiniObject *mini_object) G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
/* copy */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMiniObject * gst_mini_object_copy (const GstMiniObject *mini_object) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_mini_object_set_qdata (GstMiniObject *object, GQuark quark,
|
||||
gpointer data, GDestroyNotify destroy);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gpointer gst_mini_object_get_qdata (GstMiniObject *object, GQuark quark);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gpointer gst_mini_object_steal_qdata (GstMiniObject *object, GQuark quark);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_mini_object_replace (GstMiniObject **olddata, GstMiniObject *newdata);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_mini_object_take (GstMiniObject **olddata, GstMiniObject *newdata);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstMiniObject * gst_mini_object_steal (GstMiniObject **olddata) G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
/**
|
||||
|
|
|
@ -211,113 +211,113 @@ struct _GstObjectClass {
|
|||
|
||||
/* normal GObject stuff */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_object_get_type (void);
|
||||
|
||||
/* name routines */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_object_set_name (GstObject *object, const gchar *name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar* gst_object_get_name (GstObject *object);
|
||||
|
||||
/* parentage routines */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_object_set_parent (GstObject *object, GstObject *parent);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstObject* gst_object_get_parent (GstObject *object);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_object_unparent (GstObject *object);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_object_has_as_parent (GstObject *object, GstObject *parent);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_object_has_as_ancestor (GstObject *object, GstObject *ancestor);
|
||||
|
||||
GST_DEPRECATED_FOR(gst_object_has_as_ancestor)
|
||||
gboolean gst_object_has_ancestor (GstObject *object, GstObject *ancestor);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_object_default_deep_notify (GObject *object, GstObject *orig,
|
||||
GParamSpec *pspec, gchar **excluded_props);
|
||||
|
||||
/* refcounting + life cycle */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gpointer gst_object_ref (gpointer object);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_object_unref (gpointer object);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gpointer gst_object_ref_sink (gpointer object);
|
||||
|
||||
/* replace object pointer */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_object_replace (GstObject **oldobj, GstObject *newobj);
|
||||
|
||||
/* printing out the 'path' of the object */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_object_get_path_string (GstObject *object);
|
||||
|
||||
/* misc utils */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_object_check_uniqueness (GList *list, const gchar *name);
|
||||
|
||||
/* controller functions */
|
||||
#include <gst/gstcontrolbinding.h>
|
||||
#include <gst/gstcontrolsource.h>
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockTime gst_object_suggest_next_sync (GstObject * object);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_object_sync_values (GstObject * object, GstClockTime timestamp);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_object_has_active_control_bindings (GstObject *object);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_object_set_control_bindings_disabled (GstObject *object, gboolean disabled);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_object_set_control_binding_disabled (GstObject *object,
|
||||
const gchar * property_name,
|
||||
gboolean disabled);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_object_add_control_binding (GstObject * object, GstControlBinding * binding);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstControlBinding *
|
||||
gst_object_get_control_binding (GstObject *object, const gchar * property_name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_object_remove_control_binding (GstObject * object, GstControlBinding * binding);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GValue * gst_object_get_value (GstObject * object, const gchar * property_name,
|
||||
GstClockTime timestamp);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_object_get_value_array (GstObject * object, const gchar * property_name,
|
||||
GstClockTime timestamp, GstClockTime interval,
|
||||
guint n_values, gpointer values);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_object_get_g_value_array (GstObject * object, const gchar * property_name,
|
||||
GstClockTime timestamp, GstClockTime interval,
|
||||
guint n_values, GValue *values);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockTime gst_object_get_control_rate (GstObject * object);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_object_set_control_rate (GstObject * object, GstClockTime control_rate);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
144
gst/gstpad.h
144
gst/gstpad.h
|
@ -63,7 +63,7 @@ typedef enum {
|
|||
|
||||
#include <glib.h>
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_pad_mode_get_name (GstPadMode mode);
|
||||
|
||||
#include <gst/gstobject.h>
|
||||
|
@ -182,13 +182,13 @@ typedef enum {
|
|||
GST_FLOW_CUSTOM_ERROR_2 = -102
|
||||
} GstFlowReturn;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_flow_get_name (GstFlowReturn ret);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GQuark gst_flow_to_quark (GstFlowReturn ret);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_pad_link_get_name (GstPadLinkReturn ret);
|
||||
|
||||
/**
|
||||
|
@ -612,16 +612,16 @@ struct _GstPadProbeInfo
|
|||
#define GST_PAD_PROBE_INFO_OFFSET(d) ((d)->offset)
|
||||
#define GST_PAD_PROBE_INFO_SIZE(d) ((d)->size)
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent* gst_pad_probe_info_get_event (GstPadProbeInfo * info);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstQuery* gst_pad_probe_info_get_query (GstPadProbeInfo * info);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBuffer* gst_pad_probe_info_get_buffer (GstPadProbeInfo * info);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBufferList* gst_pad_probe_info_get_buffer_list (GstPadProbeInfo * info);
|
||||
|
||||
/**
|
||||
|
@ -1273,18 +1273,18 @@ struct _GstPadClass {
|
|||
#define GST_PAD_BLOCK_SIGNAL(pad) (g_cond_signal(GST_PAD_BLOCK_GET_COND (pad)))
|
||||
#define GST_PAD_BLOCK_BROADCAST(pad) (g_cond_broadcast(GST_PAD_BLOCK_GET_COND (pad)))
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_pad_get_type (void);
|
||||
|
||||
/* creating pads */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPad* gst_pad_new (const gchar *name, GstPadDirection direction);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPad* gst_pad_new_from_template (GstPadTemplate *templ, const gchar *name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPad* gst_pad_new_from_static_template (GstStaticPadTemplate *templ, const gchar *name);
|
||||
|
||||
|
||||
|
@ -1311,96 +1311,96 @@ GstPad* gst_pad_new_from_static_template (GstStaticPadTemplate *templ, const g
|
|||
*/
|
||||
#define gst_pad_get_parent(pad) gst_object_get_parent (GST_OBJECT_CAST (pad))
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPadDirection gst_pad_get_direction (GstPad *pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_set_active (GstPad *pad, gboolean active);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_is_active (GstPad *pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_activate_mode (GstPad *pad, GstPadMode mode,
|
||||
gboolean active);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gulong gst_pad_add_probe (GstPad *pad,
|
||||
GstPadProbeType mask,
|
||||
GstPadProbeCallback callback,
|
||||
gpointer user_data,
|
||||
GDestroyNotify destroy_data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pad_remove_probe (GstPad *pad, gulong id);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_is_blocked (GstPad *pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_is_blocking (GstPad *pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pad_mark_reconfigure (GstPad *pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_needs_reconfigure (GstPad *pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_check_reconfigure (GstPad *pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pad_set_element_private (GstPad *pad, gpointer priv);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gpointer gst_pad_get_element_private (GstPad *pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPadTemplate* gst_pad_get_pad_template (GstPad *pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstFlowReturn gst_pad_store_sticky_event (GstPad *pad, GstEvent *event);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstEvent* gst_pad_get_sticky_event (GstPad *pad, GstEventType event_type,
|
||||
guint idx);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pad_sticky_events_foreach (GstPad *pad, GstPadStickyEventsForeachFunction foreach_func, gpointer user_data);
|
||||
|
||||
/* data passing setup functions */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pad_set_activate_function_full (GstPad *pad,
|
||||
GstPadActivateFunction activate,
|
||||
gpointer user_data,
|
||||
GDestroyNotify notify);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pad_set_activatemode_function_full (GstPad *pad,
|
||||
GstPadActivateModeFunction activatemode,
|
||||
gpointer user_data,
|
||||
GDestroyNotify notify);
|
||||
/* data passing functions */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pad_set_chain_function_full (GstPad *pad,
|
||||
GstPadChainFunction chain,
|
||||
gpointer user_data,
|
||||
GDestroyNotify notify);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pad_set_chain_list_function_full (GstPad *pad,
|
||||
GstPadChainListFunction chainlist,
|
||||
gpointer user_data,
|
||||
GDestroyNotify notify);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pad_set_getrange_function_full (GstPad *pad,
|
||||
GstPadGetRangeFunction get,
|
||||
gpointer user_data,
|
||||
GDestroyNotify notify);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pad_set_event_function_full (GstPad *pad,
|
||||
GstPadEventFunction event,
|
||||
gpointer user_data,
|
||||
GDestroyNotify notify);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pad_set_event_full_function_full (GstPad *pad,
|
||||
GstPadEventFullFunction event,
|
||||
gpointer user_data,
|
||||
|
@ -1416,12 +1416,12 @@ void gst_pad_set_event_full_function_full (GstPad *pad,
|
|||
|
||||
/* pad links */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pad_set_link_function_full (GstPad *pad,
|
||||
GstPadLinkFunction link,
|
||||
gpointer user_data,
|
||||
GDestroyNotify notify);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pad_set_unlink_function_full (GstPad *pad,
|
||||
GstPadUnlinkFunction unlink,
|
||||
gpointer user_data,
|
||||
|
@ -1430,125 +1430,125 @@ void gst_pad_set_unlink_function_full (GstPad *pad,
|
|||
#define gst_pad_set_link_function(p,f) gst_pad_set_link_function_full((p),(f),NULL,NULL)
|
||||
#define gst_pad_set_unlink_function(p,f) gst_pad_set_unlink_function_full((p),(f),NULL,NULL)
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_can_link (GstPad *srcpad, GstPad *sinkpad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPadLinkReturn gst_pad_link (GstPad *srcpad, GstPad *sinkpad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPadLinkReturn gst_pad_link_full (GstPad *srcpad, GstPad *sinkpad, GstPadLinkCheck flags);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_unlink (GstPad *srcpad, GstPad *sinkpad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_is_linked (GstPad *pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPad* gst_pad_get_peer (GstPad *pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps* gst_pad_get_pad_template_caps (GstPad *pad);
|
||||
|
||||
/* capsnego function for linked/unlinked pads */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_pad_get_current_caps (GstPad * pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_has_current_caps (GstPad * pad);
|
||||
|
||||
/* capsnego for linked pads */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_pad_get_allowed_caps (GstPad * pad);
|
||||
|
||||
/* pad offsets */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint64 gst_pad_get_offset (GstPad *pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pad_set_offset (GstPad *pad, gint64 offset);
|
||||
|
||||
/* data passing functions to peer */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstFlowReturn gst_pad_push (GstPad *pad, GstBuffer *buffer);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstFlowReturn gst_pad_push_list (GstPad *pad, GstBufferList *list);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstFlowReturn gst_pad_pull_range (GstPad *pad, guint64 offset, guint size,
|
||||
GstBuffer **buffer);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_push_event (GstPad *pad, GstEvent *event);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_event_default (GstPad *pad, GstObject *parent,
|
||||
GstEvent *event);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstFlowReturn gst_pad_get_last_flow_return (GstPad *pad);
|
||||
|
||||
/* data passing functions on pad */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstFlowReturn gst_pad_chain (GstPad *pad, GstBuffer *buffer);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstFlowReturn gst_pad_chain_list (GstPad *pad, GstBufferList *list);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstFlowReturn gst_pad_get_range (GstPad *pad, guint64 offset, guint size,
|
||||
GstBuffer **buffer);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_send_event (GstPad *pad, GstEvent *event);
|
||||
|
||||
/* pad tasks */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_start_task (GstPad *pad, GstTaskFunction func,
|
||||
gpointer user_data, GDestroyNotify notify);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_pause_task (GstPad *pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_stop_task (GstPad *pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTaskState gst_pad_get_task_state (GstPad *pad);
|
||||
|
||||
/* internal links */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pad_set_iterate_internal_links_function_full (GstPad * pad,
|
||||
GstPadIterIntLinkFunction iterintlink,
|
||||
gpointer user_data,
|
||||
GDestroyNotify notify);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIterator * gst_pad_iterate_internal_links (GstPad * pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstIterator * gst_pad_iterate_internal_links_default (GstPad * pad, GstObject *parent);
|
||||
|
||||
#define gst_pad_set_iterate_internal_links_function(p,f) gst_pad_set_iterate_internal_links_function_full((p),(f),NULL,NULL)
|
||||
|
||||
/* generic query function */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_query (GstPad *pad, GstQuery *query);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_peer_query (GstPad *pad, GstQuery *query);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pad_set_query_function_full (GstPad *pad, GstPadQueryFunction query,
|
||||
gpointer user_data,
|
||||
GDestroyNotify notify);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_query_default (GstPad *pad, GstObject *parent,
|
||||
GstQuery *query);
|
||||
|
||||
|
@ -1556,7 +1556,7 @@ gboolean gst_pad_query_default (GstPad *pad, GstObject *parent,
|
|||
|
||||
/* misc helper functions */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_forward (GstPad *pad, GstPadForwardFunction forward,
|
||||
gpointer user_data);
|
||||
|
||||
|
|
|
@ -191,35 +191,35 @@ struct _GstStaticPadTemplate {
|
|||
|
||||
/* templates and factories */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_pad_template_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_static_pad_template_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPadTemplate* gst_pad_template_new (const gchar *name_template,
|
||||
GstPadDirection direction, GstPadPresence presence,
|
||||
GstCaps *caps) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPadTemplate* gst_pad_template_new_with_gtype (const gchar *name_template,
|
||||
GstPadDirection direction, GstPadPresence presence,
|
||||
GstCaps *caps, GType pad_type) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPadTemplate * gst_static_pad_template_get (GstStaticPadTemplate *pad_template);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPadTemplate * gst_pad_template_new_from_static_pad_template_with_gtype (
|
||||
GstStaticPadTemplate * pad_template,
|
||||
GType pad_type);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps* gst_static_pad_template_get_caps (GstStaticPadTemplate *templ);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps* gst_pad_template_get_caps (GstPadTemplate *templ);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pad_template_pad_created (GstPadTemplate * templ, GstPad * pad);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
|
@ -82,10 +82,10 @@ G_BEGIN_DECLS
|
|||
|
||||
/* --- get_type functions --- */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_param_spec_fraction_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_param_spec_array_get_type (void);
|
||||
|
||||
|
||||
|
@ -132,7 +132,7 @@ struct _GstParamSpecArray {
|
|||
|
||||
/* --- GParamSpec prototypes --- */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GParamSpec * gst_param_spec_fraction (const gchar * name,
|
||||
const gchar * nick,
|
||||
const gchar * blurb,
|
||||
|
@ -140,7 +140,7 @@ GParamSpec * gst_param_spec_fraction (const gchar * name,
|
|||
gint max_num, gint max_denom,
|
||||
gint default_num, gint default_denom,
|
||||
GParamFlags flags) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GParamSpec * gst_param_spec_array (const gchar * name,
|
||||
const gchar * nick,
|
||||
const gchar * blurb,
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GQuark gst_parse_error_quark (void);
|
||||
/**
|
||||
* GST_PARSE_ERROR:
|
||||
|
@ -96,36 +96,36 @@ typedef struct _GstParseContext GstParseContext;
|
|||
|
||||
/* create, process and free a parse context */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_parse_context_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstParseContext * gst_parse_context_new (void) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar ** gst_parse_context_get_missing_elements (GstParseContext * context) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_parse_context_free (GstParseContext * context);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstParseContext * gst_parse_context_copy (const GstParseContext * context);
|
||||
|
||||
|
||||
/* parse functions */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstElement * gst_parse_launch (const gchar * pipeline_description,
|
||||
GError ** error) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstElement * gst_parse_launchv (const gchar ** argv,
|
||||
GError ** error) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstElement * gst_parse_launch_full (const gchar * pipeline_description,
|
||||
GstParseContext * context,
|
||||
GstParseFlags flags,
|
||||
GError ** error) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstElement * gst_parse_launchv_full (const gchar ** argv,
|
||||
GstParseContext * context,
|
||||
GstParseFlags flags,
|
||||
|
|
|
@ -88,46 +88,46 @@ struct _GstPipelineClass {
|
|||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_pipeline_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstElement* gst_pipeline_new (const gchar *name) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBus* gst_pipeline_get_bus (GstPipeline *pipeline);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pipeline_use_clock (GstPipeline *pipeline, GstClock *clock);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pipeline_set_clock (GstPipeline *pipeline, GstClock *clock);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClock* gst_pipeline_get_clock (GstPipeline *pipeline);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClock* gst_pipeline_get_pipeline_clock (GstPipeline *pipeline);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pipeline_auto_clock (GstPipeline *pipeline);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pipeline_set_delay (GstPipeline *pipeline, GstClockTime delay);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockTime gst_pipeline_get_delay (GstPipeline *pipeline);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pipeline_set_latency (GstPipeline *pipeline, GstClockTime latency);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockTime gst_pipeline_get_latency (GstPipeline *pipeline);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pipeline_set_auto_flush_bus (GstPipeline *pipeline, gboolean auto_flush);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pipeline_get_auto_flush_bus (GstPipeline *pipeline);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
|
@ -49,7 +49,7 @@ typedef struct _GstPluginDesc GstPluginDesc;
|
|||
* Returns: The error quark used in GError messages
|
||||
*/
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GQuark gst_plugin_error_quark (void);
|
||||
/**
|
||||
* GST_PLUGIN_ERROR:
|
||||
|
@ -309,10 +309,10 @@ G_END_DECLS
|
|||
typedef gboolean (*GstPluginFilter) (GstPlugin *plugin,
|
||||
gpointer user_data);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_plugin_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_plugin_register_static (gint major_version,
|
||||
gint minor_version,
|
||||
const gchar *name,
|
||||
|
@ -323,7 +323,7 @@ gboolean gst_plugin_register_static (gint major_version,
|
|||
const gchar *source,
|
||||
const gchar *package,
|
||||
const gchar *origin);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_plugin_register_static_full (gint major_version,
|
||||
gint minor_version,
|
||||
const gchar *name,
|
||||
|
@ -335,64 +335,64 @@ gboolean gst_plugin_register_static_full (gint major_version,
|
|||
const gchar *package,
|
||||
const gchar *origin,
|
||||
gpointer user_data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar* gst_plugin_get_name (GstPlugin *plugin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar* gst_plugin_get_description (GstPlugin *plugin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar* gst_plugin_get_filename (GstPlugin *plugin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar* gst_plugin_get_version (GstPlugin *plugin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar* gst_plugin_get_license (GstPlugin *plugin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar* gst_plugin_get_source (GstPlugin *plugin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar* gst_plugin_get_package (GstPlugin *plugin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar* gst_plugin_get_origin (GstPlugin *plugin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar* gst_plugin_get_release_date_string (GstPlugin *plugin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GstStructure* gst_plugin_get_cache_data (GstPlugin * plugin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_plugin_set_cache_data (GstPlugin * plugin, GstStructure *cache_data);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_plugin_is_loaded (GstPlugin *plugin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPlugin * gst_plugin_load_file (const gchar *filename, GError** error);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPlugin * gst_plugin_load (GstPlugin *plugin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPlugin * gst_plugin_load_by_name (const gchar *name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_plugin_add_dependency (GstPlugin * plugin,
|
||||
const gchar ** env_vars,
|
||||
const gchar ** paths,
|
||||
const gchar ** names,
|
||||
GstPluginDependencyFlags flags);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_plugin_add_dependency_simple (GstPlugin * plugin,
|
||||
const gchar * env_vars,
|
||||
const gchar * paths,
|
||||
const gchar * names,
|
||||
GstPluginDependencyFlags flags);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_plugin_list_free (GList *list);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
|
@ -105,32 +105,32 @@ typedef gboolean (*GstPluginFeatureFilter) (GstPluginFeature *featu
|
|||
|
||||
/* normal GObject stuff */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_plugin_feature_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPluginFeature *
|
||||
gst_plugin_feature_load (GstPluginFeature *feature);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_plugin_feature_set_rank (GstPluginFeature *feature, guint rank);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_plugin_feature_get_rank (GstPluginFeature *feature);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPlugin * gst_plugin_feature_get_plugin (GstPluginFeature *feature);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_plugin_feature_get_plugin_name (GstPluginFeature *feature);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_plugin_feature_list_free (GList *list);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList *gst_plugin_feature_list_copy (GList *list) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_plugin_feature_list_debug (GList *list);
|
||||
|
||||
/**
|
||||
|
@ -146,12 +146,12 @@ void gst_plugin_feature_list_debug (GList *list);
|
|||
#define GST_PLUGIN_FEATURE_LIST_DEBUG(list)
|
||||
#endif
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_plugin_feature_check_version (GstPluginFeature *feature,
|
||||
guint min_major,
|
||||
guint min_minor,
|
||||
guint min_micro);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_plugin_feature_rank_compare_func (gconstpointer p1,
|
||||
gconstpointer p2);
|
||||
|
||||
|
|
|
@ -61,64 +61,64 @@ typedef struct {
|
|||
*/
|
||||
#define GST_POLL_FD_INIT { -1, -1 }
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPoll* gst_poll_new (gboolean controllable) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPoll* gst_poll_new_timer (void) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_poll_free (GstPoll *set);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_poll_get_read_gpollfd (GstPoll *set, GPollFD *fd);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_poll_fd_init (GstPollFD *fd);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_poll_add_fd (GstPoll *set, GstPollFD *fd);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_poll_remove_fd (GstPoll *set, GstPollFD *fd);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_poll_fd_ctl_write (GstPoll *set, GstPollFD *fd, gboolean active);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_poll_fd_ctl_read (GstPoll *set, GstPollFD *fd, gboolean active);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_poll_fd_ignored (GstPoll *set, GstPollFD *fd);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_poll_fd_has_closed (const GstPoll *set, GstPollFD *fd);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_poll_fd_has_error (const GstPoll *set, GstPollFD *fd);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_poll_fd_can_read (const GstPoll *set, GstPollFD *fd);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_poll_fd_can_write (const GstPoll *set, GstPollFD *fd);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_poll_wait (GstPoll *set, GstClockTime timeout);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_poll_set_controllable (GstPoll *set, gboolean controllable);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_poll_restart (GstPoll *set);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_poll_set_flushing (GstPoll *set, gboolean flushing);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_poll_write_control (GstPoll *set);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_poll_read_control (GstPoll *set) G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -77,40 +77,40 @@ struct _GstPresetInterface
|
|||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_preset_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar** gst_preset_get_preset_names (GstPreset *preset) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar** gst_preset_get_property_names (GstPreset *preset) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_preset_load_preset (GstPreset *preset, const gchar *name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_preset_save_preset (GstPreset *preset, const gchar *name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_preset_rename_preset (GstPreset *preset, const gchar *old_name,
|
||||
const gchar *new_name);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_preset_delete_preset (GstPreset *preset, const gchar *name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_preset_set_meta (GstPreset *preset, const gchar *name,
|
||||
const gchar *tag, const gchar *value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_preset_get_meta (GstPreset *preset, const gchar *name,
|
||||
const gchar *tag, gchar **value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_preset_set_app_dir (const gchar *app_dir);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar *gst_preset_get_app_dir (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_preset_is_editable (GstPreset *preset);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_promise_get_type(void);
|
||||
#define GST_TYPE_PROMISE (gst_promise_get_type())
|
||||
#define GST_PROMISE(obj) ((GstPromise *) obj)
|
||||
|
@ -73,24 +73,24 @@ struct _GstPromise
|
|||
GstMiniObject parent;
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPromise * gst_promise_new (void);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPromise * gst_promise_new_with_change_func (GstPromiseChangeFunc func,
|
||||
gpointer user_data,
|
||||
GDestroyNotify notify);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPromiseResult gst_promise_wait (GstPromise * promise);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_promise_reply (GstPromise * promise,
|
||||
GstStructure * s);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_promise_interrupt (GstPromise * promise);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_promise_expire (GstPromise * promise);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GstStructure * gst_promise_get_reply (GstPromise * promise);
|
||||
|
||||
/**
|
||||
|
|
|
@ -52,7 +52,7 @@ struct _GstProtectionMeta
|
|||
GstStructure *info;
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_protection_meta_api_get_type (void);
|
||||
|
||||
#define GST_PROTECTION_META_API_TYPE (gst_protection_meta_api_get_type())
|
||||
|
@ -62,16 +62,16 @@ GType gst_protection_meta_api_get_type (void);
|
|||
|
||||
#define GST_PROTECTION_META_INFO (gst_protection_meta_get_info())
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GstMetaInfo * gst_protection_meta_get_info (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstProtectionMeta * gst_buffer_add_protection_meta (GstBuffer * buffer,
|
||||
GstStructure * info);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_protection_select_system (const gchar ** system_identifiers);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar ** gst_protection_filter_systems_by_available_decryptors (
|
||||
const gchar ** system_identifiers);
|
||||
|
||||
|
|
172
gst/gstquery.h
172
gst/gstquery.h
|
@ -127,7 +127,7 @@ typedef enum {
|
|||
} GstQueryType;
|
||||
#undef FLAG
|
||||
|
||||
GST_EXPORT GType _gst_query_type;
|
||||
GST_API GType _gst_query_type;
|
||||
|
||||
#define GST_TYPE_QUERY (_gst_query_type)
|
||||
#define GST_IS_QUERY(obj) (GST_IS_MINI_OBJECT_TYPE (obj, GST_TYPE_QUERY))
|
||||
|
@ -212,18 +212,18 @@ typedef enum {
|
|||
#include <gst/gsttoc.h>
|
||||
#include <gst/gstcontext.h>
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar* gst_query_type_get_name (GstQueryType type);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GQuark gst_query_type_to_quark (GstQueryType type);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstQueryTypeFlags
|
||||
gst_query_type_get_flags (GstQueryType type);
|
||||
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_query_get_type (void);
|
||||
|
||||
/* refcounting */
|
||||
|
@ -311,246 +311,246 @@ gst_query_replace (GstQuery **old_query, GstQuery *new_query)
|
|||
|
||||
/* application specific query */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstQuery * gst_query_new_custom (GstQueryType type, GstStructure *structure) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GstStructure *
|
||||
gst_query_get_structure (GstQuery *query);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStructure * gst_query_writable_structure (GstQuery *query);
|
||||
|
||||
/* position query */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstQuery* gst_query_new_position (GstFormat format) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_position (GstQuery *query, GstFormat format, gint64 cur);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_position (GstQuery *query, GstFormat *format, gint64 *cur);
|
||||
|
||||
/* duration query */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstQuery* gst_query_new_duration (GstFormat format) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_duration (GstQuery *query, GstFormat format, gint64 duration);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_duration (GstQuery *query, GstFormat *format, gint64 *duration);
|
||||
|
||||
/* latency query */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstQuery* gst_query_new_latency (void) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_latency (GstQuery *query, gboolean live, GstClockTime min_latency,
|
||||
GstClockTime max_latency);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_latency (GstQuery *query, gboolean *live, GstClockTime *min_latency,
|
||||
GstClockTime *max_latency);
|
||||
|
||||
/* convert query */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstQuery* gst_query_new_convert (GstFormat src_format, gint64 value, GstFormat dest_format) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_convert (GstQuery *query, GstFormat src_format, gint64 src_value,
|
||||
GstFormat dest_format, gint64 dest_value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_convert (GstQuery *query, GstFormat *src_format, gint64 *src_value,
|
||||
GstFormat *dest_format, gint64 *dest_value);
|
||||
/* segment query */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstQuery* gst_query_new_segment (GstFormat format) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_segment (GstQuery *query, gdouble rate, GstFormat format,
|
||||
gint64 start_value, gint64 stop_value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_segment (GstQuery *query, gdouble *rate, GstFormat *format,
|
||||
gint64 *start_value, gint64 *stop_value);
|
||||
|
||||
/* seeking query */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstQuery* gst_query_new_seeking (GstFormat format) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_seeking (GstQuery *query, GstFormat format,
|
||||
gboolean seekable,
|
||||
gint64 segment_start,
|
||||
gint64 segment_end);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_seeking (GstQuery *query, GstFormat *format,
|
||||
gboolean *seekable,
|
||||
gint64 *segment_start,
|
||||
gint64 *segment_end);
|
||||
/* formats query */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstQuery* gst_query_new_formats (void) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_formats (GstQuery *query, gint n_formats, ...);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_formatsv (GstQuery *query, gint n_formats, const GstFormat *formats);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_n_formats (GstQuery *query, guint *n_formats);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_nth_format (GstQuery *query, guint nth, GstFormat *format);
|
||||
|
||||
/* buffering query */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstQuery* gst_query_new_buffering (GstFormat format) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_buffering_percent (GstQuery *query, gboolean busy, gint percent);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_buffering_percent (GstQuery *query, gboolean *busy, gint *percent);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_buffering_stats (GstQuery *query, GstBufferingMode mode,
|
||||
gint avg_in, gint avg_out,
|
||||
gint64 buffering_left);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_buffering_stats (GstQuery *query, GstBufferingMode *mode,
|
||||
gint *avg_in, gint *avg_out,
|
||||
gint64 *buffering_left);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_buffering_range (GstQuery *query, GstFormat format,
|
||||
gint64 start, gint64 stop,
|
||||
gint64 estimated_total);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_buffering_range (GstQuery *query, GstFormat *format,
|
||||
gint64 *start, gint64 *stop,
|
||||
gint64 *estimated_total);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_query_add_buffering_range (GstQuery *query,
|
||||
gint64 start, gint64 stop);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_query_get_n_buffering_ranges (GstQuery *query);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_query_parse_nth_buffering_range (GstQuery *query,
|
||||
guint index, gint64 *start,
|
||||
gint64 *stop);
|
||||
|
||||
/* URI query */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstQuery * gst_query_new_uri (void) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_uri (GstQuery *query, gchar **uri);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_uri (GstQuery *query, const gchar *uri);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_uri_redirection (GstQuery *query, gchar **uri);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_uri_redirection (GstQuery *query, const gchar *uri);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_uri_redirection_permanent (GstQuery *query, gboolean * permanent);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_uri_redirection_permanent (GstQuery *query, gboolean permanent);
|
||||
|
||||
/* allocation query */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstQuery * gst_query_new_allocation (GstCaps *caps, gboolean need_pool) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_allocation (GstQuery *query, GstCaps **caps, gboolean *need_pool);
|
||||
|
||||
/* pools */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_add_allocation_pool (GstQuery *query, GstBufferPool *pool,
|
||||
guint size, guint min_buffers,
|
||||
guint max_buffers);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_query_get_n_allocation_pools (GstQuery *query);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_nth_allocation_pool (GstQuery *query, guint index,
|
||||
GstBufferPool **pool,
|
||||
guint *size, guint *min_buffers,
|
||||
guint *max_buffers);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_nth_allocation_pool (GstQuery *query, guint index,
|
||||
GstBufferPool *pool,
|
||||
guint size, guint min_buffers,
|
||||
guint max_buffers);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_remove_nth_allocation_pool (GstQuery *query, guint index);
|
||||
|
||||
/* allocators */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_add_allocation_param (GstQuery *query, GstAllocator *allocator,
|
||||
const GstAllocationParams *params);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_query_get_n_allocation_params (GstQuery *query);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_nth_allocation_param (GstQuery *query, guint index,
|
||||
GstAllocator **allocator,
|
||||
GstAllocationParams *params);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_nth_allocation_param (GstQuery *query, guint index,
|
||||
GstAllocator *allocator,
|
||||
const GstAllocationParams *params);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_remove_nth_allocation_param (GstQuery *query, guint index);
|
||||
|
||||
/* metadata */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_add_allocation_meta (GstQuery *query, GType api, const GstStructure *params);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_query_get_n_allocation_metas (GstQuery *query);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_query_parse_nth_allocation_meta (GstQuery *query, guint index,
|
||||
const GstStructure **params);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_remove_nth_allocation_meta (GstQuery *query, guint index);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_query_find_allocation_meta (GstQuery *query, GType api, guint *index);
|
||||
|
||||
|
||||
|
@ -569,78 +569,78 @@ typedef enum {
|
|||
GST_SCHEDULING_FLAG_BANDWIDTH_LIMITED = (1 << 2)
|
||||
} GstSchedulingFlags;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstQuery * gst_query_new_scheduling (void) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_scheduling (GstQuery *query, GstSchedulingFlags flags,
|
||||
gint minsize, gint maxsize, gint align);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_scheduling (GstQuery *query, GstSchedulingFlags *flags,
|
||||
gint *minsize, gint *maxsize, gint *align);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_add_scheduling_mode (GstQuery *query, GstPadMode mode);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_query_get_n_scheduling_modes (GstQuery *query);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPadMode gst_query_parse_nth_scheduling_mode (GstQuery *query, guint index);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_query_has_scheduling_mode (GstQuery *query, GstPadMode mode);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_query_has_scheduling_mode_with_flags (GstQuery * query, GstPadMode mode,
|
||||
GstSchedulingFlags flags);
|
||||
|
||||
/* accept-caps query */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstQuery * gst_query_new_accept_caps (GstCaps *caps) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_accept_caps (GstQuery *query, GstCaps **caps);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_accept_caps_result (GstQuery *query, gboolean result);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_accept_caps_result (GstQuery *query, gboolean *result);
|
||||
|
||||
/* caps query */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstQuery * gst_query_new_caps (GstCaps *filter) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_caps (GstQuery *query, GstCaps **filter);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_caps_result (GstQuery *query, GstCaps *caps);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_caps_result (GstQuery *query, GstCaps **caps);
|
||||
|
||||
/* drain query */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstQuery * gst_query_new_drain (void) G_GNUC_MALLOC;
|
||||
|
||||
/* context query */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstQuery * gst_query_new_context (const gchar * context_type) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_query_parse_context_type (GstQuery * query, const gchar ** context_type);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_set_context (GstQuery *query, GstContext *context);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_query_parse_context (GstQuery *query, GstContext **context);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
|
@ -57,13 +57,13 @@ struct _GstRegistryClass {
|
|||
GstObjectClass parent_class;
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_registry_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstRegistry * gst_registry_get (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_registry_scan_path (GstRegistry *registry, const gchar *path);
|
||||
|
||||
#if 0
|
||||
|
@ -71,53 +71,53 @@ void gst_registry_add_path (GstRegistry * registry,
|
|||
GList* gst_registry_get_path_list (GstRegistry *registry);
|
||||
#endif
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_registry_add_plugin (GstRegistry *registry, GstPlugin *plugin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_registry_remove_plugin (GstRegistry *registry, GstPlugin *plugin);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_registry_add_feature (GstRegistry * registry, GstPluginFeature * feature);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_registry_remove_feature (GstRegistry * registry, GstPluginFeature * feature);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList* gst_registry_get_plugin_list (GstRegistry *registry);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList* gst_registry_plugin_filter (GstRegistry *registry,
|
||||
GstPluginFilter filter,
|
||||
gboolean first,
|
||||
gpointer user_data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList* gst_registry_feature_filter (GstRegistry *registry,
|
||||
GstPluginFeatureFilter filter,
|
||||
gboolean first,
|
||||
gpointer user_data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList * gst_registry_get_feature_list (GstRegistry *registry,
|
||||
GType type);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList * gst_registry_get_feature_list_by_plugin (GstRegistry *registry, const gchar *name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint32 gst_registry_get_feature_list_cookie (GstRegistry *registry);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPlugin* gst_registry_find_plugin (GstRegistry *registry, const gchar *name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPluginFeature* gst_registry_find_feature (GstRegistry *registry, const gchar *name, GType type);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPlugin * gst_registry_lookup (GstRegistry *registry, const char *filename);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPluginFeature * gst_registry_lookup_feature (GstRegistry *registry, const char *name);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_registry_check_feature_version (GstRegistry *registry,
|
||||
const gchar *feature_name,
|
||||
guint min_major,
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
GST_EXPORT GType _gst_sample_type;
|
||||
GST_API GType _gst_sample_type;
|
||||
|
||||
#define GST_TYPE_SAMPLE (_gst_sample_type)
|
||||
#define GST_IS_SAMPLE(obj) (GST_IS_MINI_OBJECT_TYPE(obj, GST_TYPE_SAMPLE))
|
||||
|
@ -47,32 +47,32 @@ GST_EXPORT GType _gst_sample_type;
|
|||
*/
|
||||
typedef struct _GstSample GstSample;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_sample_get_type (void);
|
||||
|
||||
/* allocation */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstSample * gst_sample_new (GstBuffer *buffer,
|
||||
GstCaps *caps,
|
||||
const GstSegment *segment,
|
||||
GstStructure *info);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBuffer * gst_sample_get_buffer (GstSample *sample);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_sample_get_caps (GstSample *sample);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstSegment * gst_sample_get_segment (GstSample *sample);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GstStructure * gst_sample_get_info (GstSample *sample);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstBufferList * gst_sample_get_buffer_list (GstSample *sample);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_sample_set_buffer_list (GstSample *sample, GstBufferList *buffer_list);
|
||||
|
||||
/* refcounting */
|
||||
|
|
|
@ -209,67 +209,67 @@ struct _GstSegment {
|
|||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_segment_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstSegment * gst_segment_new (void) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstSegment * gst_segment_copy (const GstSegment *segment) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_segment_copy_into (const GstSegment *src, GstSegment *dest);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_segment_free (GstSegment *segment);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_segment_init (GstSegment *segment, GstFormat format);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_segment_to_stream_time_full (const GstSegment *segment, GstFormat format, guint64 position, guint64 * stream_time);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint64 gst_segment_to_stream_time (const GstSegment *segment, GstFormat format, guint64 position);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_segment_position_from_stream_time_full (const GstSegment * segment, GstFormat format, guint64 stream_time, guint64 * position);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint64 gst_segment_position_from_stream_time (const GstSegment * segment, GstFormat format, guint64 stream_time);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint64 gst_segment_to_running_time (const GstSegment *segment, GstFormat format, guint64 position);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_segment_to_running_time_full (const GstSegment *segment, GstFormat format, guint64 position,
|
||||
guint64 * running_time);
|
||||
|
||||
GST_DEPRECATED_FOR(gst_segment_position_from_running_time)
|
||||
guint64 gst_segment_to_position (const GstSegment *segment, GstFormat format, guint64 running_time);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_segment_position_from_running_time_full (const GstSegment *segment, GstFormat format, guint64 running_time, guint64 * position);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint64 gst_segment_position_from_running_time (const GstSegment *segment, GstFormat format, guint64 running_time);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_segment_set_running_time (GstSegment *segment, GstFormat format, guint64 running_time);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_segment_offset_running_time (GstSegment *segment, GstFormat format, gint64 offset);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_segment_clip (const GstSegment *segment, GstFormat format, guint64 start,
|
||||
guint64 stop, guint64 *clip_start, guint64 *clip_stop);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_segment_do_seek (GstSegment * segment, gdouble rate,
|
||||
GstFormat format, GstSeekFlags flags,
|
||||
GstSeekType start_type, guint64 start,
|
||||
GstSeekType stop_type, guint64 stop, gboolean * update);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_segment_is_equal (const GstSegment * s0, const GstSegment * s1);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
|
@ -93,22 +93,22 @@ struct _GstStreamCollectionClass {
|
|||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_stream_collection_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStreamCollection *gst_stream_collection_new (const gchar *upstream_id);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar *gst_stream_collection_get_upstream_id (GstStreamCollection *collection);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_stream_collection_get_size (GstStreamCollection *collection);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStream *gst_stream_collection_get_stream (GstStreamCollection *collection, guint index);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_stream_collection_add_stream (GstStreamCollection *collection,
|
||||
GstStream *stream);
|
||||
|
||||
|
|
|
@ -112,44 +112,44 @@ struct _GstStreamClass {
|
|||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_stream_get_type (void);
|
||||
|
||||
#include <gst/gstevent.h>
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStream *gst_stream_new (const gchar *stream_id,
|
||||
GstCaps *caps,
|
||||
GstStreamType type,
|
||||
GstStreamFlags flags);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_stream_get_stream_id (GstStream *stream);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_stream_set_stream_flags (GstStream *stream, GstStreamFlags flags);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStreamFlags gst_stream_get_stream_flags (GstStream *stream);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_stream_set_stream_type (GstStream *stream, GstStreamType stream_type);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStreamType gst_stream_get_stream_type (GstStream *stream);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_stream_set_tags (GstStream *stream, GstTagList *tags);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTagList * gst_stream_get_tags (GstStream *stream);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_stream_set_caps (GstStream *stream, GstCaps *caps);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_stream_get_caps (GstStream *stream);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_stream_type_get_name (GstStreamType stype);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
GST_EXPORT GType _gst_structure_type;
|
||||
GST_API GType _gst_structure_type;
|
||||
|
||||
typedef struct _GstStructure GstStructure;
|
||||
|
||||
|
@ -100,270 +100,270 @@ struct _GstStructure {
|
|||
GQuark name;
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_structure_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStructure * gst_structure_new_empty (const gchar * name) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStructure * gst_structure_new_id_empty (GQuark quark) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStructure * gst_structure_new (const gchar * name,
|
||||
const gchar * firstfield,
|
||||
...) G_GNUC_NULL_TERMINATED G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStructure * gst_structure_new_valist (const gchar * name,
|
||||
const gchar * firstfield,
|
||||
va_list varargs) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStructure * gst_structure_new_id (GQuark name_quark,
|
||||
GQuark field_quark,
|
||||
...) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStructure * gst_structure_new_from_string (const gchar * string);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStructure * gst_structure_copy (const GstStructure * structure) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_set_parent_refcount (GstStructure * structure,
|
||||
gint * refcount);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_structure_free (GstStructure * structure);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_structure_get_name (const GstStructure * structure);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GQuark gst_structure_get_name_id (const GstStructure * structure);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_has_name (const GstStructure * structure,
|
||||
const gchar * name);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_structure_set_name (GstStructure * structure,
|
||||
const gchar * name);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_structure_id_set_value (GstStructure * structure,
|
||||
GQuark field,
|
||||
const GValue * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_structure_set_value (GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
const GValue * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_structure_set_array (GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
const GValueArray * array);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_structure_set_list (GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
const GValueArray * array);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_structure_id_take_value (GstStructure * structure,
|
||||
GQuark field,
|
||||
GValue * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_structure_take_value (GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
GValue * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_structure_set (GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
...) G_GNUC_NULL_TERMINATED;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_structure_set_valist (GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
va_list varargs);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_structure_id_set (GstStructure * structure,
|
||||
GQuark fieldname,
|
||||
...) G_GNUC_NULL_TERMINATED;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_structure_id_set_valist (GstStructure * structure,
|
||||
GQuark fieldname,
|
||||
va_list varargs);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_get_valist (const GstStructure * structure,
|
||||
const char * first_fieldname,
|
||||
va_list args);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_get (const GstStructure * structure,
|
||||
const char * first_fieldname,
|
||||
...) G_GNUC_NULL_TERMINATED;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_id_get_valist (const GstStructure * structure,
|
||||
GQuark first_field_id,
|
||||
va_list args);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_id_get (const GstStructure * structure,
|
||||
GQuark first_field_id,
|
||||
...) G_GNUC_NULL_TERMINATED;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GValue * gst_structure_id_get_value (const GstStructure * structure,
|
||||
GQuark field);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GValue * gst_structure_get_value (const GstStructure * structure,
|
||||
const gchar * fieldname);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_structure_remove_field (GstStructure * structure,
|
||||
const gchar * fieldname);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_structure_remove_fields (GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
...) G_GNUC_NULL_TERMINATED;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_structure_remove_fields_valist (GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
va_list varargs);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_structure_remove_all_fields (GstStructure * structure);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_structure_get_field_type (const GstStructure * structure,
|
||||
const gchar * fieldname);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_foreach (const GstStructure * structure,
|
||||
GstStructureForeachFunc func,
|
||||
gpointer user_data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_map_in_place (GstStructure * structure,
|
||||
GstStructureMapFunc func,
|
||||
gpointer user_data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_structure_filter_and_map_in_place (GstStructure * structure,
|
||||
GstStructureFilterMapFunc func,
|
||||
gpointer user_data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_structure_n_fields (const GstStructure * structure);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_structure_nth_field_name (const GstStructure * structure,
|
||||
guint index);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_id_has_field (const GstStructure * structure,
|
||||
GQuark field);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_id_has_field_typed (const GstStructure * structure,
|
||||
GQuark field,
|
||||
GType type);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_has_field (const GstStructure * structure,
|
||||
const gchar * fieldname);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_has_field_typed (const GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
GType type);
|
||||
|
||||
/* utility functions */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_get_boolean (const GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
gboolean * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_get_int (const GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
gint * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_get_uint (const GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
guint * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_get_int64 (const GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
gint64 * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_get_uint64 (const GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
guint64 * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_get_double (const GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
gdouble * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_get_date (const GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
GDate ** value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_get_date_time (const GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
GstDateTime ** value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_get_clock_time (const GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
GstClockTime * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_structure_get_string (const GstStructure * structure,
|
||||
const gchar * fieldname);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_get_enum (const GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
GType enumtype,
|
||||
gint * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_get_fraction (const GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
gint * value_numerator,
|
||||
gint * value_denominator);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_get_flagset (const GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
guint * value_flags,
|
||||
guint * value_mask);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_get_array (GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
GValueArray ** array);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_get_list (GstStructure * structure,
|
||||
const gchar * fieldname,
|
||||
GValueArray ** array);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_structure_to_string (const GstStructure * structure) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStructure * gst_structure_from_string (const gchar * string,
|
||||
gchar ** end) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_fixate_field_nearest_int (GstStructure * structure,
|
||||
const char * field_name,
|
||||
int target);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_fixate_field_nearest_double (GstStructure * structure,
|
||||
const char * field_name,
|
||||
double target);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_fixate_field_boolean (GstStructure * structure,
|
||||
const char * field_name,
|
||||
gboolean target);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_fixate_field_string (GstStructure * structure,
|
||||
const char * field_name,
|
||||
const gchar * target);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_fixate_field_nearest_fraction (GstStructure * structure,
|
||||
const char * field_name,
|
||||
const gint target_numerator,
|
||||
const gint target_denominator);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_fixate_field (GstStructure * structure,
|
||||
const char * field_name);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_structure_fixate (GstStructure * structure);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_is_equal (const GstStructure * structure1,
|
||||
const GstStructure * structure2);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_is_subset (const GstStructure * subset,
|
||||
const GstStructure * superset);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_structure_can_intersect (const GstStructure * struct1,
|
||||
const GstStructure * struct2);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStructure * gst_structure_intersect (const GstStructure * struct1,
|
||||
const GstStructure * struct2) G_GNUC_MALLOC;
|
||||
|
||||
|
|
|
@ -78,13 +78,13 @@ struct _GstSystemClockClass {
|
|||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_system_clock_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClock* gst_system_clock_obtain (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_system_clock_set_default (GstClock *new_clock);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
120
gst/gsttaglist.h
120
gst/gsttaglist.h
|
@ -154,7 +154,7 @@ struct _GstTagList {
|
|||
GstMiniObject mini_object;
|
||||
};
|
||||
|
||||
GST_EXPORT GType _gst_tag_list_type;
|
||||
GST_API GType _gst_tag_list_type;
|
||||
|
||||
#define GST_TAG_LIST(x) ((GstTagList *) (x))
|
||||
#define GST_TYPE_TAG_LIST (_gst_tag_list_type)
|
||||
|
@ -183,19 +183,19 @@ typedef void (*GstTagForeachFunc) (const GstTagList * list,
|
|||
*/
|
||||
typedef void (* GstTagMergeFunc) (GValue *dest, const GValue *src);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_tag_list_get_type (void);
|
||||
|
||||
/* tag registration */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_register (const gchar * name,
|
||||
GstTagFlag flag,
|
||||
GType type,
|
||||
const gchar * nick,
|
||||
const gchar * blurb,
|
||||
GstTagMergeFunc func);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_register_static (const gchar * name,
|
||||
GstTagFlag flag,
|
||||
GType type,
|
||||
|
@ -205,30 +205,30 @@ void gst_tag_register_static (const gchar * name,
|
|||
|
||||
/* some default merging functions */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_merge_use_first (GValue * dest, const GValue * src);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_merge_strings_with_comma (GValue * dest, const GValue * src);
|
||||
|
||||
/* basic tag support */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_exists (const gchar * tag);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_tag_get_type (const gchar * tag);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_tag_get_nick (const gchar * tag);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_tag_get_description (const gchar * tag);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTagFlag gst_tag_get_flag (const gchar * tag);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_is_fixed (const gchar * tag);
|
||||
|
||||
/* tag lists */
|
||||
|
@ -246,203 +246,203 @@ typedef enum {
|
|||
GST_TAG_SCOPE_GLOBAL
|
||||
} GstTagScope;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTagList * gst_tag_list_new_empty (void) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTagList * gst_tag_list_new (const gchar * tag, ...) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTagList * gst_tag_list_new_valist (va_list var_args) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_list_set_scope (GstTagList * list, GstTagScope scope);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTagScope gst_tag_list_get_scope (const GstTagList * list);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_tag_list_to_string (const GstTagList * list) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTagList * gst_tag_list_new_from_string (const gchar * str) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_tag_list_n_tags (const GstTagList * list);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar* gst_tag_list_nth_tag_name (const GstTagList * list, guint index);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_is_empty (const GstTagList * list);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_is_equal (const GstTagList * list1,
|
||||
const GstTagList * list2);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_list_insert (GstTagList * into,
|
||||
const GstTagList * from,
|
||||
GstTagMergeMode mode);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTagList * gst_tag_list_merge (const GstTagList * list1,
|
||||
const GstTagList * list2,
|
||||
GstTagMergeMode mode) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_tag_list_get_tag_size (const GstTagList * list,
|
||||
const gchar * tag);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_list_add (GstTagList * list,
|
||||
GstTagMergeMode mode,
|
||||
const gchar * tag,
|
||||
...) G_GNUC_NULL_TERMINATED;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_list_add_values (GstTagList * list,
|
||||
GstTagMergeMode mode,
|
||||
const gchar * tag,
|
||||
...) G_GNUC_NULL_TERMINATED;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_list_add_valist (GstTagList * list,
|
||||
GstTagMergeMode mode,
|
||||
const gchar * tag,
|
||||
va_list var_args);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_list_add_valist_values (GstTagList * list,
|
||||
GstTagMergeMode mode,
|
||||
const gchar * tag,
|
||||
va_list var_args);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_list_add_value (GstTagList * list,
|
||||
GstTagMergeMode mode,
|
||||
const gchar * tag,
|
||||
const GValue * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_list_remove_tag (GstTagList * list,
|
||||
const gchar * tag);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_list_foreach (const GstTagList * list,
|
||||
GstTagForeachFunc func,
|
||||
gpointer user_data);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GValue *
|
||||
gst_tag_list_get_value_index (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
guint index);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_copy_value (GValue * dest,
|
||||
const GstTagList * list,
|
||||
const gchar * tag);
|
||||
|
||||
/* simplifications (FIXME: do we want them?) */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_boolean (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
gboolean * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_boolean_index (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
guint index,
|
||||
gboolean * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_int (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
gint * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_int_index (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
guint index,
|
||||
gint * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_uint (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
guint * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_uint_index (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
guint index,
|
||||
guint * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_int64 (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
gint64 * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_int64_index (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
guint index,
|
||||
gint64 * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_uint64 (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
guint64 * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_uint64_index (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
guint index,
|
||||
guint64 * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_float (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
gfloat * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_float_index (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
guint index,
|
||||
gfloat * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_double (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
gdouble * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_double_index (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
guint index,
|
||||
gdouble * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_string (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
gchar ** value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_string_index (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
guint index,
|
||||
gchar ** value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_peek_string_index (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
guint index,
|
||||
const gchar ** value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_pointer (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
gpointer * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_pointer_index (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
guint index,
|
||||
gpointer * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_date (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
GDate ** value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_date_index (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
guint index,
|
||||
GDate ** value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_date_time (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
GstDateTime ** value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_date_time_index (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
guint index,
|
||||
GstDateTime ** value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_sample (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
GstSample ** sample);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tag_list_get_sample_index (const GstTagList * list,
|
||||
const gchar * tag,
|
||||
guint index,
|
||||
|
|
|
@ -56,49 +56,49 @@ struct _GstTagSetterInterface
|
|||
/* virtual table */
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_tag_setter_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_setter_reset_tags (GstTagSetter * setter);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_setter_merge_tags (GstTagSetter * setter,
|
||||
const GstTagList * list,
|
||||
GstTagMergeMode mode);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_setter_add_tags (GstTagSetter * setter,
|
||||
GstTagMergeMode mode,
|
||||
const gchar * tag,
|
||||
...) G_GNUC_NULL_TERMINATED;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_setter_add_tag_values (GstTagSetter * setter,
|
||||
GstTagMergeMode mode,
|
||||
const gchar * tag,
|
||||
...) G_GNUC_NULL_TERMINATED;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_setter_add_tag_valist (GstTagSetter * setter,
|
||||
GstTagMergeMode mode,
|
||||
const gchar * tag,
|
||||
va_list var_args);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_setter_add_tag_valist_values(GstTagSetter * setter,
|
||||
GstTagMergeMode mode,
|
||||
const gchar * tag,
|
||||
va_list var_args);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_setter_add_tag_value (GstTagSetter * setter,
|
||||
GstTagMergeMode mode,
|
||||
const gchar * tag,
|
||||
const GValue * value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GstTagList *
|
||||
gst_tag_setter_get_tag_list (GstTagSetter * setter);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tag_setter_set_tag_merge_mode (GstTagSetter * setter,
|
||||
GstTagMergeMode mode);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTagMergeMode gst_tag_setter_get_tag_merge_mode (GstTagSetter * setter);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -164,50 +164,50 @@ struct _GstTaskClass {
|
|||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_task_cleanup_all (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_task_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTask* gst_task_new (GstTaskFunction func,
|
||||
gpointer user_data, GDestroyNotify notify);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_task_set_lock (GstTask *task, GRecMutex *mutex);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTaskPool * gst_task_get_pool (GstTask *task);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_task_set_pool (GstTask *task, GstTaskPool *pool);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_task_set_enter_callback (GstTask *task,
|
||||
GstTaskThreadFunc enter_func,
|
||||
gpointer user_data,
|
||||
GDestroyNotify notify);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_task_set_leave_callback (GstTask *task,
|
||||
GstTaskThreadFunc leave_func,
|
||||
gpointer user_data,
|
||||
GDestroyNotify notify);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTaskState gst_task_get_state (GstTask *task);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_task_set_state (GstTask *task, GstTaskState state);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_task_start (GstTask *task);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_task_stop (GstTask *task);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_task_pause (GstTask *task);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_task_join (GstTask *task);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
|
@ -85,22 +85,22 @@ struct _GstTaskPoolClass {
|
|||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_task_pool_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTaskPool * gst_task_pool_new (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_task_pool_prepare (GstTaskPool *pool, GError **error);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gpointer gst_task_pool_push (GstTaskPool *pool, GstTaskPoolFunction func,
|
||||
gpointer user_data, GError **error);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_task_pool_join (GstTaskPool *pool, gpointer id);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_task_pool_cleanup (GstTaskPool *pool);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
60
gst/gsttoc.h
60
gst/gsttoc.h
|
@ -30,9 +30,9 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
GST_EXPORT GType _gst_toc_type;
|
||||
GST_API GType _gst_toc_type;
|
||||
|
||||
GST_EXPORT GType _gst_toc_entry_type;
|
||||
GST_API GType _gst_toc_entry_type;
|
||||
|
||||
#define GST_TYPE_TOC (_gst_toc_type)
|
||||
#define GST_TYPE_TOC_ENTRY (_gst_toc_entry_type)
|
||||
|
@ -129,36 +129,36 @@ typedef enum {
|
|||
|
||||
/* functions to return type structures */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_toc_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_toc_entry_get_type (void);
|
||||
|
||||
/* functions to create, ref and unref/free TOCs */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstToc * gst_toc_new (GstTocScope scope);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTocScope gst_toc_get_scope (const GstToc *toc);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_toc_set_tags (GstToc *toc, GstTagList * tags);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_toc_merge_tags (GstToc *toc, GstTagList *tags, GstTagMergeMode mode);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTagList * gst_toc_get_tags (const GstToc *toc);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_toc_append_entry (GstToc *toc, GstTocEntry *entry);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList * gst_toc_get_entries (const GstToc *toc);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_toc_dump (GstToc *toc);
|
||||
|
||||
#define gst_toc_ref(toc) (GstToc*)gst_mini_object_ref(GST_MINI_OBJECT_CAST(toc))
|
||||
|
@ -168,7 +168,7 @@ void gst_toc_dump (GstToc *toc);
|
|||
|
||||
/* functions to create, ref and unref/free TOC entries */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTocEntry * gst_toc_entry_new (GstTocEntryType type, const gchar *uid);
|
||||
|
||||
#define gst_toc_entry_ref(entry) (GstTocEntry*)gst_mini_object_ref(GST_MINI_OBJECT_CAST(entry))
|
||||
|
@ -176,56 +176,56 @@ GstTocEntry * gst_toc_entry_new (GstTocEntryType type, const gch
|
|||
#define gst_toc_entry_copy(entry) (GstTocEntry*)gst_mini_object_copy(GST_MINI_OBJECT_CAST(entry))
|
||||
#define gst_toc_entry_make_writable(entry) (GstTocEntry*)gst_mini_object_make_writable(GST_MINI_OBJECT_CAST(entry))
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTocEntry * gst_toc_find_entry (const GstToc *toc, const gchar *uid);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTocEntryType gst_toc_entry_get_entry_type (const GstTocEntry *entry);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_toc_entry_get_uid (const GstTocEntry *entry);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_toc_entry_append_sub_entry (GstTocEntry *entry, GstTocEntry *subentry);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList * gst_toc_entry_get_sub_entries (const GstTocEntry *entry);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_toc_entry_set_tags (GstTocEntry *entry, GstTagList *tags);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_toc_entry_merge_tags (GstTocEntry *entry, GstTagList *tags, GstTagMergeMode mode);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTagList * gst_toc_entry_get_tags (const GstTocEntry *entry);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_toc_entry_is_alternative (const GstTocEntry *entry);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_toc_entry_is_sequence (const GstTocEntry *entry);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_toc_entry_set_start_stop_times (GstTocEntry *entry, gint64 start, gint64 stop);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_toc_entry_get_start_stop_times (const GstTocEntry *entry, gint64 *start, gint64 *stop);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_toc_entry_set_loop (GstTocEntry *entry, GstTocLoopType loop_type, gint repeat_count);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_toc_entry_get_loop (const GstTocEntry *entry, GstTocLoopType *loop_type, gint *repeat_count);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstToc * gst_toc_entry_get_toc (GstTocEntry *entry);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTocEntry * gst_toc_entry_get_parent (GstTocEntry *entry);
|
||||
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_toc_entry_type_get_nick (GstTocEntryType type);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
|
@ -54,16 +54,16 @@ struct _GstTocSetterInterface
|
|||
/* virtual table */
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_toc_setter_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_toc_setter_reset (GstTocSetter *setter);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstToc * gst_toc_setter_get_toc (GstTocSetter *setter);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_toc_setter_set_toc (GstTocSetter *setter, GstToc *toc);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
|
@ -55,18 +55,18 @@ struct _GstTracerClass {
|
|||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_tracer_get_type (void);
|
||||
|
||||
#ifdef GST_USE_UNSTABLE_API
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tracing_register_hook (GstTracer *tracer, const gchar *detail,
|
||||
GCallback func);
|
||||
|
||||
/* tracing modules */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_tracer_register (GstPlugin * plugin, const gchar * name, GType type);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -48,13 +48,13 @@ typedef struct _GstTracerFactoryClass GstTracerFactoryClass;
|
|||
|
||||
/* tracering interface */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_tracer_factory_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList * gst_tracer_factory_get_list (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_tracer_factory_get_tracer_type (GstTracerFactory * factory);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
|
|
@ -37,7 +37,7 @@ typedef struct _GstTracerRecordClass GstTracerRecordClass;
|
|||
#define GST_TRACER_RECORD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),GST_TYPE_TRACER_RECORD,GstTracerRecordClass))
|
||||
#define GST_TRACER_RECORD_CAST(obj) ((GstTracerRecord *)(obj))
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_tracer_record_get_type (void);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
|
@ -88,11 +88,11 @@ typedef enum
|
|||
|
||||
#ifdef GST_USE_UNSTABLE_API
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstTracerRecord * gst_tracer_record_new (const gchar * name, const gchar * firstfield, ...);
|
||||
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_tracer_record_log (GstTracerRecord *self, ...);
|
||||
#else
|
||||
#define gst_tracer_record_log(...) G_STMT_START {} G_STMT_END
|
||||
|
|
|
@ -91,30 +91,30 @@ struct _GstTypeFind {
|
|||
gpointer _gst_reserved[GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_type_find_get_type (void);
|
||||
|
||||
/* typefind function interface */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const guint8 * gst_type_find_peek (GstTypeFind * find,
|
||||
gint64 offset,
|
||||
guint size);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_type_find_suggest (GstTypeFind * find,
|
||||
guint probability,
|
||||
GstCaps * caps);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_type_find_suggest_simple (GstTypeFind * find,
|
||||
guint probability,
|
||||
const char * media_type,
|
||||
const char * fieldname, ...);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint64 gst_type_find_get_length (GstTypeFind * find);
|
||||
|
||||
/* registration interface */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_type_find_register (GstPlugin * plugin,
|
||||
const gchar * name,
|
||||
guint rank,
|
||||
|
|
|
@ -46,22 +46,22 @@ typedef struct _GstTypeFindFactoryClass GstTypeFindFactoryClass;
|
|||
|
||||
/* typefinding interface */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_type_find_factory_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList * gst_type_find_factory_get_list (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * const * gst_type_find_factory_get_extensions (GstTypeFindFactory *factory);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_type_find_factory_get_caps (GstTypeFindFactory *factory);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_type_find_factory_has_function (GstTypeFindFactory *factory);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_type_find_factory_call_function (GstTypeFindFactory *factory,
|
||||
GstTypeFind *find);
|
||||
|
||||
|
|
110
gst/gsturi.h
110
gst/gsturi.h
|
@ -31,7 +31,7 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GQuark gst_uri_error_quark (void);
|
||||
|
||||
/**
|
||||
|
@ -129,31 +129,31 @@ struct _GstURIHandlerInterface {
|
|||
|
||||
/* general URI functions */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_protocol_is_valid (const gchar * protocol);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_protocol_is_supported (const GstURIType type,
|
||||
const gchar *protocol);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_is_valid (const gchar * uri);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_uri_get_protocol (const gchar * uri) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_has_protocol (const gchar * uri,
|
||||
const gchar * protocol);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_uri_get_location (const gchar * uri) G_GNUC_MALLOC;
|
||||
|
||||
GST_DEPRECATED_FOR(gst_uri_new)
|
||||
gchar * gst_uri_construct (const gchar * protocol,
|
||||
const gchar * location) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_filename_to_uri (const gchar * filename,
|
||||
GError ** error) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstElement * gst_element_make_from_uri (const GstURIType type,
|
||||
const gchar * uri,
|
||||
const gchar * elementname,
|
||||
|
@ -161,19 +161,19 @@ GstElement * gst_element_make_from_uri (const GstURIType type,
|
|||
|
||||
/* accessing the interface */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_uri_handler_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstURIType gst_uri_handler_get_uri_type (GstURIHandler * handler);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * const * gst_uri_handler_get_protocols (GstURIHandler * handler);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_uri_handler_get_uri (GstURIHandler * handler) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_handler_set_uri (GstURIHandler * handler,
|
||||
const gchar * uri,
|
||||
GError ** error);
|
||||
|
@ -204,14 +204,14 @@ typedef struct _GstUri GstUri;
|
|||
|
||||
/* used by GST_TYPE_URI */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_uri_get_type (void);
|
||||
|
||||
/*
|
||||
* Method definitions.
|
||||
*/
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstUri * gst_uri_new (const gchar * scheme,
|
||||
const gchar * userinfo,
|
||||
const gchar * host,
|
||||
|
@ -219,7 +219,7 @@ GstUri * gst_uri_new (const gchar * scheme,
|
|||
const gchar * path,
|
||||
const gchar * query,
|
||||
const gchar * fragment) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstUri * gst_uri_new_with_base (GstUri * base,
|
||||
const gchar * scheme,
|
||||
const gchar * userinfo,
|
||||
|
@ -228,120 +228,120 @@ GstUri * gst_uri_new_with_base (GstUri * base,
|
|||
const gchar * path,
|
||||
const gchar * query,
|
||||
const gchar * fragment) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstUri * gst_uri_from_string (const gchar * uri) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstUri * gst_uri_from_string_with_base (GstUri * base,
|
||||
const gchar * uri) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_equal (const GstUri * first,
|
||||
const GstUri * second);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstUri * gst_uri_join (GstUri * base_uri,
|
||||
GstUri * ref_uri) G_GNUC_WARN_UNUSED_RESULT;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_uri_join_strings (const gchar * base_uri,
|
||||
const gchar * ref_uri) G_GNUC_MALLOC;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_is_writable (const GstUri * uri);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstUri * gst_uri_make_writable (GstUri * uri) G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_uri_to_string (const GstUri * uri) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_is_normalized (const GstUri * uri);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_normalize (GstUri * uri);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_uri_get_scheme (const GstUri * uri);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_set_scheme (GstUri * uri, const gchar * scheme);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_uri_get_userinfo (const GstUri * uri);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_set_userinfo (GstUri * uri, const gchar * userinfo);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_uri_get_host (const GstUri * uri);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_set_host (GstUri * uri, const gchar * host);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_uri_get_port (const GstUri * uri);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_set_port (GstUri * uri, guint port);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_uri_get_path (const GstUri * uri);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_set_path (GstUri * uri, const gchar * path);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_uri_get_path_string (const GstUri * uri);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_set_path_string (GstUri * uri, const gchar * path);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList * gst_uri_get_path_segments (const GstUri * uri);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_set_path_segments (GstUri * uri, GList * path_segments);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_append_path (GstUri * uri,
|
||||
const gchar * relative_path);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_append_path_segment (GstUri * uri,
|
||||
const gchar * path_segment);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_uri_get_query_string (const GstUri * uri);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_set_query_string (GstUri * uri, const gchar * query);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GHashTable * gst_uri_get_query_table (const GstUri * uri);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_set_query_table (GstUri * uri,
|
||||
GHashTable * query_table);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_set_query_value (GstUri * uri, const gchar * query_key,
|
||||
const gchar * query_value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_remove_query_key (GstUri * uri, const gchar * query_key);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_query_has_key (const GstUri * uri,
|
||||
const gchar * query_key);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_uri_get_query_value (const GstUri * uri,
|
||||
const gchar * query_key);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GList * gst_uri_get_query_keys (const GstUri * uri);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_uri_get_fragment (const GstUri * uri);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_uri_set_fragment (GstUri * uri, const gchar * fragment);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GHashTable * gst_uri_get_media_fragment_table (const GstUri * uri);
|
||||
|
||||
/**
|
||||
|
|
156
gst/gstutils.h
156
gst/gstutils.h
|
@ -32,28 +32,28 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_util_set_value_from_string (GValue *value, const gchar *value_str);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_util_set_object_arg (GObject *object, const gchar *name, const gchar *value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_util_set_object_array (GObject * object, const gchar * name,
|
||||
const GValueArray * array);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_util_get_object_array (GObject * object, const gchar * name,
|
||||
GValueArray ** array);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_util_dump_mem (const guchar *mem, guint size);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_util_dump_buffer (GstBuffer * buf);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint64 gst_util_gdouble_to_guint64 (gdouble value) G_GNUC_CONST;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gdouble gst_util_guint64_to_gdouble (guint64 value) G_GNUC_CONST;
|
||||
|
||||
/**
|
||||
|
@ -81,22 +81,22 @@ gdouble gst_util_guint64_to_gdouble (guint64 value) G_GNUC_CONST;
|
|||
#define gst_guint64_to_gdouble(value) ((gdouble) (value))
|
||||
#endif
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint64 gst_util_uint64_scale (guint64 val, guint64 num, guint64 denom);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint64 gst_util_uint64_scale_round (guint64 val, guint64 num, guint64 denom);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint64 gst_util_uint64_scale_ceil (guint64 val, guint64 num, guint64 denom);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint64 gst_util_uint64_scale_int (guint64 val, gint num, gint denom);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint64 gst_util_uint64_scale_int_round (guint64 val, gint num, gint denom);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint64 gst_util_uint64_scale_int_ceil (guint64 val, gint num, gint denom);
|
||||
|
||||
/**
|
||||
|
@ -111,10 +111,10 @@ guint64 gst_util_uint64_scale_int_ceil (guint64 val, gint num, gint den
|
|||
*/
|
||||
#define GST_SEQNUM_INVALID (0)
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint32 gst_util_seqnum_next (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint32 gst_util_seqnum_compare (guint32 s1, guint32 s2);
|
||||
|
||||
/**
|
||||
|
@ -129,7 +129,7 @@ gint32 gst_util_seqnum_compare (guint32 s1, guint32 s2);
|
|||
*/
|
||||
#define GST_GROUP_ID_INVALID (0)
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_util_group_id_next (void);
|
||||
|
||||
/**
|
||||
|
@ -970,62 +970,62 @@ GST_WRITE_DOUBLE_BE(guint8 *data, gdouble num)
|
|||
#define GST_ROUND_DOWN_N(num,align) (((num) & ~((align) - 1)))
|
||||
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_object_default_error (GstObject * source,
|
||||
const GError * error,
|
||||
const gchar * debug);
|
||||
|
||||
/* element functions */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_create_all_pads (GstElement *element);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPad* gst_element_get_compatible_pad (GstElement *element, GstPad *pad,
|
||||
GstCaps *caps);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPadTemplate* gst_element_get_compatible_pad_template (GstElement *element, GstPadTemplate *compattempl);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar* gst_element_state_get_name (GstState state);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_element_state_change_return_get_name (GstStateChangeReturn state_ret);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const gchar * gst_state_change_get_name (GstStateChange transition);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_link (GstElement *src, GstElement *dest);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_link_many (GstElement *element_1,
|
||||
GstElement *element_2, ...) G_GNUC_NULL_TERMINATED;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_link_filtered (GstElement * src,
|
||||
GstElement * dest,
|
||||
GstCaps *filter);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_unlink (GstElement *src, GstElement *dest);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_unlink_many (GstElement *element_1,
|
||||
GstElement *element_2, ...) G_GNUC_NULL_TERMINATED;
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_link_pads (GstElement *src, const gchar *srcpadname,
|
||||
GstElement *dest, const gchar *destpadname);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_link_pads_full (GstElement *src, const gchar *srcpadname,
|
||||
GstElement *dest, const gchar *destpadname,
|
||||
GstPadLinkCheck flags);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_element_unlink_pads (GstElement *src, const gchar *srcpadname,
|
||||
GstElement *dest, const gchar *destpadname);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_link_pads_filtered (GstElement * src, const gchar * srcpadname,
|
||||
GstElement * dest, const gchar * destpadname,
|
||||
GstCaps *filter);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_seek_simple (GstElement *element,
|
||||
GstFormat format,
|
||||
GstSeekFlags seek_flags,
|
||||
|
@ -1033,125 +1033,125 @@ gboolean gst_element_seek_simple (GstElement *element,
|
|||
|
||||
/* util elementfactory functions */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_factory_can_sink_all_caps (GstElementFactory *factory, const GstCaps *caps);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_factory_can_src_all_caps (GstElementFactory *factory, const GstCaps *caps);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_factory_can_sink_any_caps (GstElementFactory *factory, const GstCaps *caps);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_factory_can_src_any_caps (GstElementFactory *factory, const GstCaps *caps);
|
||||
|
||||
/* util query functions */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_query_position (GstElement *element, GstFormat format, gint64 *cur);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_query_duration (GstElement *element, GstFormat format, gint64 *duration);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_element_query_convert (GstElement *element, GstFormat src_format, gint64 src_val,
|
||||
GstFormat dest_format, gint64 *dest_val);
|
||||
|
||||
/* pad functions */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_pad_use_fixed_caps (GstPad *pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstElement* gst_pad_get_parent_element (GstPad *pad);
|
||||
|
||||
/* util query functions */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_proxy_query_accept_caps (GstPad *pad, GstQuery *query);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_proxy_query_caps (GstPad *pad, GstQuery *query);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_query_position (GstPad *pad, GstFormat format, gint64 *cur);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_query_duration (GstPad *pad, GstFormat format, gint64 *duration);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_query_convert (GstPad *pad, GstFormat src_format, gint64 src_val,
|
||||
GstFormat dest_format, gint64 *dest_val);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_pad_query_caps (GstPad *pad, GstCaps *filter);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_query_accept_caps (GstPad *pad, GstCaps *caps);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_link_maybe_ghosting (GstPad *src,
|
||||
GstPad *sink);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_link_maybe_ghosting_full (GstPad *src,
|
||||
GstPad *sink,
|
||||
GstPadLinkCheck flags);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_peer_query_position (GstPad *pad, GstFormat format, gint64 *cur);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_peer_query_duration (GstPad *pad, GstFormat format, gint64 *duration);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_peer_query_convert (GstPad *pad, GstFormat src_format, gint64 src_val,
|
||||
GstFormat dest_format, gint64 *dest_val);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstCaps * gst_pad_peer_query_caps (GstPad * pad, GstCaps *filter);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_pad_peer_query_accept_caps (GstPad * pad, GstCaps *caps);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_pad_create_stream_id (GstPad * pad, GstElement * parent, const gchar *stream_id) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_pad_create_stream_id_printf (GstPad * pad, GstElement * parent, const gchar *stream_id, ...) G_GNUC_PRINTF (3, 4) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_pad_create_stream_id_printf_valist (GstPad * pad, GstElement * parent, const gchar *stream_id, va_list var_args) G_GNUC_PRINTF (3, 0) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_pad_get_stream_id (GstPad * pad);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstStream * gst_pad_get_stream (GstPad * pad);
|
||||
|
||||
/* bin functions */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_bin_add_many (GstBin *bin, GstElement *element_1, ...) G_GNUC_NULL_TERMINATED;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_bin_remove_many (GstBin *bin, GstElement *element_1, ...) G_GNUC_NULL_TERMINATED;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstPad * gst_bin_find_unlinked_pad (GstBin *bin, GstPadDirection direction);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_bin_sync_children_states (GstBin *bin);
|
||||
|
||||
/* parse utility functions */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstElement * gst_parse_bin_from_description (const gchar * bin_description,
|
||||
gboolean ghost_unlinked_pads,
|
||||
GError ** err);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstElement * gst_parse_bin_from_description_full (const gchar * bin_description,
|
||||
gboolean ghost_unlinked_pads,
|
||||
GstParseContext * context,
|
||||
GstParseFlags flags,
|
||||
GError ** err);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GstClockTime gst_util_get_timestamp (void);
|
||||
|
||||
/**
|
||||
|
@ -1168,7 +1168,7 @@ typedef enum {
|
|||
GST_SEARCH_MODE_AFTER
|
||||
} GstSearchMode;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gpointer gst_util_array_binary_search (gpointer array, guint num_elements,
|
||||
gsize element_size, GCompareDataFunc search_func,
|
||||
GstSearchMode mode, gconstpointer search_data,
|
||||
|
@ -1176,28 +1176,28 @@ gpointer gst_util_array_binary_search (gpointer array, guint num_eleme
|
|||
|
||||
/* fraction operations */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_util_greatest_common_divisor (gint a, gint b);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint64 gst_util_greatest_common_divisor_int64 (gint64 a, gint64 b);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_util_fraction_to_double (gint src_n, gint src_d, gdouble *dest);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_util_double_to_fraction (gdouble src, gint *dest_n, gint *dest_d);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_util_fraction_multiply (gint a_n, gint a_d, gint b_n, gint b_d,
|
||||
gint *res_n, gint *res_d);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_util_fraction_add (gint a_n, gint a_d, gint b_n, gint b_d,
|
||||
gint *res_n, gint *res_d);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_util_fraction_compare (gint a_n, gint a_d, gint b_n, gint b_d);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_calculate_linear_regression (const GstClockTime * xy,
|
||||
GstClockTime * temp, guint n,
|
||||
GstClockTime * m_num, GstClockTime * m_denom,
|
||||
|
|
160
gst/gstvalue.h
160
gst/gstvalue.h
|
@ -222,7 +222,7 @@ G_BEGIN_DECLS
|
|||
*/
|
||||
#define GST_FLAG_SET_MASK_EXACT ((guint)(-1))
|
||||
|
||||
GST_EXPORT GType _gst_int_range_type;
|
||||
GST_API GType _gst_int_range_type;
|
||||
|
||||
/**
|
||||
* GST_TYPE_INT_RANGE:
|
||||
|
@ -233,7 +233,7 @@ GST_EXPORT GType _gst_int_range_type;
|
|||
*/
|
||||
#define GST_TYPE_INT_RANGE (_gst_int_range_type)
|
||||
|
||||
GST_EXPORT GType _gst_int64_range_type;
|
||||
GST_API GType _gst_int64_range_type;
|
||||
|
||||
/**
|
||||
* GST_TYPE_INT64_RANGE:
|
||||
|
@ -244,7 +244,7 @@ GST_EXPORT GType _gst_int64_range_type;
|
|||
*/
|
||||
#define GST_TYPE_INT64_RANGE (_gst_int64_range_type)
|
||||
|
||||
GST_EXPORT GType _gst_double_range_type;
|
||||
GST_API GType _gst_double_range_type;
|
||||
|
||||
/**
|
||||
* GST_TYPE_DOUBLE_RANGE:
|
||||
|
@ -255,7 +255,7 @@ GST_EXPORT GType _gst_double_range_type;
|
|||
*/
|
||||
#define GST_TYPE_DOUBLE_RANGE (_gst_double_range_type)
|
||||
|
||||
GST_EXPORT GType _gst_fraction_range_type;
|
||||
GST_API GType _gst_fraction_range_type;
|
||||
|
||||
/**
|
||||
* GST_TYPE_FRACTION_RANGE:
|
||||
|
@ -266,7 +266,7 @@ GST_EXPORT GType _gst_fraction_range_type;
|
|||
*/
|
||||
#define GST_TYPE_FRACTION_RANGE (_gst_fraction_range_type)
|
||||
|
||||
GST_EXPORT GType _gst_value_list_type;
|
||||
GST_API GType _gst_value_list_type;
|
||||
|
||||
/**
|
||||
* GST_TYPE_LIST:
|
||||
|
@ -281,7 +281,7 @@ GST_EXPORT GType _gst_value_list_type;
|
|||
*/
|
||||
#define GST_TYPE_LIST (_gst_value_list_type)
|
||||
|
||||
GST_EXPORT GType _gst_value_array_type;
|
||||
GST_API GType _gst_value_array_type;
|
||||
|
||||
/**
|
||||
* GST_TYPE_ARRAY:
|
||||
|
@ -297,7 +297,7 @@ GST_EXPORT GType _gst_value_array_type;
|
|||
*/
|
||||
#define GST_TYPE_ARRAY (_gst_value_array_type)
|
||||
|
||||
GST_EXPORT GType _gst_fraction_type;
|
||||
GST_API GType _gst_fraction_type;
|
||||
|
||||
/**
|
||||
* GST_TYPE_FRACTION:
|
||||
|
@ -310,7 +310,7 @@ GST_EXPORT GType _gst_fraction_type;
|
|||
|
||||
#define GST_TYPE_FRACTION (_gst_fraction_type)
|
||||
|
||||
GST_EXPORT GType _gst_bitmask_type;
|
||||
GST_API GType _gst_bitmask_type;
|
||||
|
||||
/**
|
||||
* GST_TYPE_BITMASK:
|
||||
|
@ -322,7 +322,7 @@ GST_EXPORT GType _gst_bitmask_type;
|
|||
|
||||
#define GST_TYPE_BITMASK (_gst_bitmask_type)
|
||||
|
||||
GST_EXPORT GType _gst_flagset_type;
|
||||
GST_API GType _gst_flagset_type;
|
||||
|
||||
/**
|
||||
* GST_TYPE_FLAG_SET:
|
||||
|
@ -436,289 +436,289 @@ struct _GstValueTable {
|
|||
gpointer _gst_reserved [GST_PADDING];
|
||||
};
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_int_range_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_int64_range_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_double_range_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_fraction_range_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_fraction_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_value_list_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_value_array_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_bitmask_get_type (void);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_flagset_get_type (void);
|
||||
|
||||
/* Hide this compatibility type from introspection */
|
||||
#ifndef __GI_SCANNER__
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_g_thread_get_type (void);
|
||||
#endif
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_register (const GstValueTable *table);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_init_and_copy (GValue *dest,
|
||||
const GValue *src);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gchar * gst_value_serialize (const GValue *value) G_GNUC_MALLOC;
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_value_deserialize (GValue *dest,
|
||||
const gchar *src);
|
||||
|
||||
/* list */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_list_append_value (GValue *value,
|
||||
const GValue *append_value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_list_append_and_take_value (GValue *value,
|
||||
GValue *append_value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_list_prepend_value (GValue *value,
|
||||
const GValue *prepend_value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_list_concat (GValue *dest,
|
||||
const GValue *value1,
|
||||
const GValue *value2);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_list_merge (GValue *dest,
|
||||
const GValue *value1,
|
||||
const GValue *value2);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_value_list_get_size (const GValue *value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GValue * gst_value_list_get_value (const GValue *value,
|
||||
guint index);
|
||||
|
||||
/* array */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_array_append_value (GValue *value,
|
||||
const GValue *append_value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_array_append_and_take_value (GValue *value,
|
||||
GValue *append_value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_array_prepend_value (GValue *value,
|
||||
const GValue *prepend_value);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_value_array_get_size (const GValue *value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GValue * gst_value_array_get_value (const GValue *value,
|
||||
guint index);
|
||||
|
||||
/* int range */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_set_int_range (GValue *value,
|
||||
gint start,
|
||||
gint end);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_set_int_range_step (GValue *value,
|
||||
gint start,
|
||||
gint end,
|
||||
gint step);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_value_get_int_range_min (const GValue *value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_value_get_int_range_max (const GValue *value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_value_get_int_range_step (const GValue *value);
|
||||
|
||||
/* int64 range */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_set_int64_range (GValue *value,
|
||||
gint64 start,
|
||||
gint64 end);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_set_int64_range_step (GValue *value,
|
||||
gint64 start,
|
||||
gint64 end,
|
||||
gint64 step);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint64 gst_value_get_int64_range_min (const GValue *value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint64 gst_value_get_int64_range_max (const GValue *value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint64 gst_value_get_int64_range_step (const GValue *value);
|
||||
|
||||
/* double range */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_set_double_range (GValue *value,
|
||||
gdouble start,
|
||||
gdouble end);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gdouble gst_value_get_double_range_min (const GValue *value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gdouble gst_value_get_double_range_max (const GValue *value);
|
||||
|
||||
/* caps */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GstCaps * gst_value_get_caps (const GValue *value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_set_caps (GValue *value,
|
||||
const GstCaps *caps);
|
||||
|
||||
/* structure */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GstStructure *
|
||||
gst_value_get_structure (const GValue *value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_set_structure (GValue *value,
|
||||
const GstStructure *structure);
|
||||
|
||||
/* caps features */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GstCapsFeatures *
|
||||
gst_value_get_caps_features (const GValue *value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_set_caps_features (GValue *value,
|
||||
const GstCapsFeatures *features);
|
||||
|
||||
/* fraction */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_set_fraction (GValue *value,
|
||||
gint numerator,
|
||||
gint denominator);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_value_get_fraction_numerator (const GValue *value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_value_get_fraction_denominator (const GValue *value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_value_fraction_multiply (GValue *product,
|
||||
const GValue *factor1,
|
||||
const GValue *factor2);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_value_fraction_subtract (GValue * dest,
|
||||
const GValue * minuend,
|
||||
const GValue * subtrahend);
|
||||
|
||||
/* fraction range */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_set_fraction_range (GValue *value,
|
||||
const GValue *start,
|
||||
const GValue *end);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_set_fraction_range_full (GValue *value,
|
||||
gint numerator_start,
|
||||
gint denominator_start,
|
||||
gint numerator_end,
|
||||
gint denominator_end);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GValue *gst_value_get_fraction_range_min (const GValue *value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
const GValue *gst_value_get_fraction_range_max (const GValue *value);
|
||||
|
||||
/* bitmask */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint64 gst_value_get_bitmask (const GValue *value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_set_bitmask (GValue *value,
|
||||
guint64 bitmask);
|
||||
/* flagset */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
void gst_value_set_flagset (GValue * value, guint flags, guint mask);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_value_get_flagset_flags (const GValue * value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
guint gst_value_get_flagset_mask (const GValue * value);
|
||||
|
||||
/* compare */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gint gst_value_compare (const GValue *value1,
|
||||
const GValue *value2);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_value_can_compare (const GValue *value1,
|
||||
const GValue *value2);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_value_is_subset (const GValue *value1,
|
||||
const GValue *value2);
|
||||
|
||||
/* union */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_value_union (GValue *dest,
|
||||
const GValue *value1,
|
||||
const GValue *value2);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_value_can_union (const GValue *value1,
|
||||
const GValue *value2);
|
||||
|
||||
/* intersection */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_value_intersect (GValue *dest,
|
||||
const GValue *value1,
|
||||
const GValue *value2);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_value_can_intersect (const GValue *value1,
|
||||
const GValue *value2);
|
||||
|
||||
/* subtraction */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_value_subtract (GValue *dest,
|
||||
const GValue *minuend,
|
||||
const GValue *subtrahend);
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_value_can_subtract (const GValue *minuend,
|
||||
const GValue *subtrahend);
|
||||
|
||||
/* fixation */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_value_is_fixed (const GValue *value);
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
gboolean gst_value_fixate (GValue *dest,
|
||||
const GValue *src);
|
||||
|
||||
/* Flagset registration wrapper */
|
||||
|
||||
GST_EXPORT
|
||||
GST_API
|
||||
GType gst_flagset_register (GType flags_type);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
Loading…
Reference in a new issue