Commit 820c3474 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

video: mark symbols explicitly for export with GST_EXPORT

parent af78896a
......@@ -8,6 +8,7 @@ glib_enum_headers = video.h video-format.h video-color.h video-info.h video-dith
glib_enum_define = GST_VIDEO
glib_gen_prefix = gst_video
glib_gen_basename = video
glib_gen_decl_banner=GST_EXPORT
built_sources = video-enumtypes.c
built_headers = video-enumtypes.h
......
......@@ -90,14 +90,21 @@ struct _GstColorBalanceInterface {
gpointer _gst_reserved[GST_PADDING];
};
GST_EXPORT
GType gst_color_balance_get_type (void);
/* virtual class function wrappers */
GST_EXPORT
const GList *
gst_color_balance_list_channels (GstColorBalance *balance);
GST_EXPORT
void gst_color_balance_set_value (GstColorBalance *balance,
GstColorBalanceChannel *channel,
gint value);
GST_EXPORT
gint gst_color_balance_get_value (GstColorBalance *balance,
GstColorBalanceChannel *channel);
......@@ -105,6 +112,8 @@ GstColorBalanceType
gst_color_balance_get_balance_type (GstColorBalance *balance);
/* trigger signal */
GST_EXPORT
void gst_color_balance_value_changed (GstColorBalance *balance,
GstColorBalanceChannel *channel,
gint value);
......
......@@ -78,6 +78,7 @@ struct _GstColorBalanceChannelClass {
gpointer _gst_reserved[GST_PADDING];
};
GST_EXPORT
GType gst_color_balance_channel_get_type (void);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
......
......@@ -62,13 +62,18 @@ struct _GstVideoAffineTransformationMeta
gfloat matrix[16];
};
GST_EXPORT
GType gst_video_affine_transformation_meta_api_get_type (void);
GST_EXPORT
const GstMetaInfo *gst_video_affine_transformation_meta_get_info (void);
#define gst_buffer_get_video_affine_transformation_meta(b) \
((GstVideoAffineTransformationMeta *)gst_buffer_get_meta((b),GST_VIDEO_AFFINE_TRANSFORMATION_META_API_TYPE))
GST_EXPORT
GstVideoAffineTransformationMeta *gst_buffer_add_video_affine_transformation_meta (GstBuffer * buffer);
GST_EXPORT
void gst_video_affine_transformation_meta_apply_matrix (GstVideoAffineTransformationMeta * meta,
const gfloat matrix[16]);
......
......@@ -117,6 +117,8 @@ typedef struct _GstVideoDecoderPrivate GstVideoDecoderPrivate;
/* do not use this one, use macro below */
GST_EXPORT
GstFlowReturn _gst_video_decoder_error (GstVideoDecoder *dec, gint weight,
GQuark domain, gint code,
gchar *txt, gchar *debug,
......@@ -339,94 +341,134 @@ struct _GstVideoDecoderClass
void *padding[GST_PADDING_LARGE-6];
};
GST_EXPORT
GType gst_video_decoder_get_type (void);
/* Context parameters */
GST_EXPORT
void gst_video_decoder_set_packetized (GstVideoDecoder * decoder,
gboolean packetized);
GST_EXPORT
gboolean gst_video_decoder_get_packetized (GstVideoDecoder * decoder);
GST_EXPORT
void gst_video_decoder_set_estimate_rate (GstVideoDecoder * dec,
gboolean enabled);
GST_EXPORT
gint gst_video_decoder_get_estimate_rate (GstVideoDecoder * dec);
GST_EXPORT
void gst_video_decoder_set_max_errors (GstVideoDecoder * dec,
gint num);
GST_EXPORT
gint gst_video_decoder_get_max_errors (GstVideoDecoder * dec);
GST_EXPORT
void gst_video_decoder_set_needs_format (GstVideoDecoder * dec,
gboolean enabled);
GST_EXPORT
gboolean gst_video_decoder_get_needs_format (GstVideoDecoder * dec);
GST_EXPORT
void gst_video_decoder_set_latency (GstVideoDecoder *decoder,
GstClockTime min_latency,
GstClockTime max_latency);
GST_EXPORT
void gst_video_decoder_get_latency (GstVideoDecoder *decoder,
GstClockTime *min_latency,
GstClockTime *max_latency);
GST_EXPORT
void gst_video_decoder_get_allocator (GstVideoDecoder *decoder,
GstAllocator **allocator,
GstAllocationParams *params);
GST_EXPORT
GstBufferPool *gst_video_decoder_get_buffer_pool (GstVideoDecoder *decoder);
/* Object methods */
GST_EXPORT
GstVideoCodecFrame *gst_video_decoder_get_frame (GstVideoDecoder *decoder,
int frame_number);
GST_EXPORT
GstVideoCodecFrame *gst_video_decoder_get_oldest_frame (GstVideoDecoder *decoder);
GST_EXPORT
GList * gst_video_decoder_get_frames (GstVideoDecoder *decoder);
/* Parsing related methods */
GST_EXPORT
void gst_video_decoder_add_to_frame (GstVideoDecoder *decoder,
int n_bytes);
GST_EXPORT
GstFlowReturn gst_video_decoder_have_frame (GstVideoDecoder *decoder);
GST_EXPORT
gsize gst_video_decoder_get_pending_frame_size (GstVideoDecoder *decoder);
GST_EXPORT
GstBuffer *gst_video_decoder_allocate_output_buffer (GstVideoDecoder * decoder);
GST_EXPORT
GstFlowReturn gst_video_decoder_allocate_output_frame_with_params (GstVideoDecoder *decoder,
GstVideoCodecFrame * frame,
GstBufferPoolAcquireParams *params);
GST_EXPORT
GstFlowReturn gst_video_decoder_allocate_output_frame (GstVideoDecoder *decoder,
GstVideoCodecFrame *frame);
GST_EXPORT
GstVideoCodecState *gst_video_decoder_set_output_state (GstVideoDecoder *decoder,
GstVideoFormat fmt, guint width, guint height,
GstVideoCodecState *reference);
GST_EXPORT
GstVideoCodecState *gst_video_decoder_get_output_state (GstVideoDecoder *decoder);
GST_EXPORT
gboolean gst_video_decoder_negotiate (GstVideoDecoder * decoder);
GST_EXPORT
GstClockTimeDiff gst_video_decoder_get_max_decode_time (GstVideoDecoder *decoder,
GstVideoCodecFrame *frame);
GST_EXPORT
gdouble gst_video_decoder_get_qos_proportion (GstVideoDecoder * decoder);
GST_EXPORT
GstFlowReturn gst_video_decoder_finish_frame (GstVideoDecoder *decoder,
GstVideoCodecFrame *frame);
GST_EXPORT
GstFlowReturn gst_video_decoder_drop_frame (GstVideoDecoder *dec,
GstVideoCodecFrame *frame);
GST_EXPORT
void gst_video_decoder_release_frame (GstVideoDecoder * dec,
GstVideoCodecFrame * frame);
GST_EXPORT
void gst_video_decoder_merge_tags (GstVideoDecoder *decoder,
const GstTagList *tags,
GstTagMergeMode mode);
GST_EXPORT
GstCaps * gst_video_decoder_proxy_getcaps (GstVideoDecoder * decoder,
GstCaps * caps,
GstCaps * filter);
GST_EXPORT
void gst_video_decoder_set_use_default_pad_acceptcaps (GstVideoDecoder * decoder,
gboolean use);
......
......@@ -299,54 +299,73 @@ struct _GstVideoEncoderClass
gpointer _gst_reserved[GST_PADDING_LARGE-4];
};
GST_EXPORT
GType gst_video_encoder_get_type (void);
GST_EXPORT
GstVideoCodecState* gst_video_encoder_get_output_state (GstVideoEncoder *encoder);
GST_EXPORT
GstVideoCodecState* gst_video_encoder_set_output_state (GstVideoEncoder * encoder,
GstCaps * caps,
GstVideoCodecState * reference);
GST_EXPORT
gboolean gst_video_encoder_negotiate (GstVideoEncoder * encoder);
GST_EXPORT
GstVideoCodecFrame* gst_video_encoder_get_frame (GstVideoEncoder *encoder,
int frame_number);
GST_EXPORT
GstVideoCodecFrame* gst_video_encoder_get_oldest_frame (GstVideoEncoder *encoder);
GST_EXPORT
GList * gst_video_encoder_get_frames (GstVideoEncoder *encoder);
GST_EXPORT
GstBuffer * gst_video_encoder_allocate_output_buffer (GstVideoEncoder * encoder,
gsize size);
GST_EXPORT
GstFlowReturn gst_video_encoder_allocate_output_frame (GstVideoEncoder *encoder,
GstVideoCodecFrame *frame,
gsize size);
GST_EXPORT
GstFlowReturn gst_video_encoder_finish_frame (GstVideoEncoder *encoder,
GstVideoCodecFrame *frame);
GST_EXPORT
GstCaps * gst_video_encoder_proxy_getcaps (GstVideoEncoder * enc,
GstCaps * caps,
GstCaps * filter);
GST_EXPORT
void gst_video_encoder_set_latency (GstVideoEncoder *encoder,
GstClockTime min_latency,
GstClockTime max_latency);
GST_EXPORT
void gst_video_encoder_get_latency (GstVideoEncoder *encoder,
GstClockTime *min_latency,
GstClockTime *max_latency);
GST_EXPORT
void gst_video_encoder_set_headers (GstVideoEncoder *encoder,
GList *headers);
GST_EXPORT
void gst_video_encoder_merge_tags (GstVideoEncoder *encoder,
const GstTagList *tags,
GstTagMergeMode mode);
GST_EXPORT
void gst_video_encoder_get_allocator (GstVideoEncoder *encoder,
GstAllocator **allocator,
GstAllocationParams *params);
GST_EXPORT
void gst_video_encoder_set_min_pts(GstVideoEncoder *encoder, GstClockTime min_pts);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
......
......@@ -79,6 +79,7 @@ struct _GstVideoFilterClass {
gpointer _gst_reserved[GST_PADDING];
};
GST_EXPORT
GType gst_video_filter_get_type (void);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
......
......@@ -76,21 +76,33 @@ struct _GstVideoMeta {
gboolean (*unmap) (GstVideoMeta *meta, guint plane, GstMapInfo *info);
};
GST_EXPORT
GType gst_video_meta_api_get_type (void);
GST_EXPORT
const GstMetaInfo * gst_video_meta_get_info (void);
GST_EXPORT
GstVideoMeta * gst_buffer_get_video_meta (GstBuffer *buffer);
GST_EXPORT
GstVideoMeta * gst_buffer_get_video_meta_id (GstBuffer *buffer, gint id);
GST_EXPORT
GstVideoMeta * gst_buffer_add_video_meta (GstBuffer *buffer, GstVideoFrameFlags flags,
GstVideoFormat format, guint width, guint height);
GST_EXPORT
GstVideoMeta * gst_buffer_add_video_meta_full (GstBuffer *buffer, GstVideoFrameFlags flags,
GstVideoFormat format, guint width, guint height,
guint n_planes, gsize offset[GST_VIDEO_MAX_PLANES],
gint stride[GST_VIDEO_MAX_PLANES]);
GST_EXPORT
gboolean gst_video_meta_map (GstVideoMeta *meta, guint plane, GstMapInfo *info,
gpointer *data, gint *stride, GstMapFlags flags);
GST_EXPORT
gboolean gst_video_meta_unmap (GstVideoMeta *meta, guint plane, GstMapInfo *info);
/**
......@@ -112,7 +124,10 @@ struct _GstVideoCropMeta {
guint height;
};
GST_EXPORT
GType gst_video_crop_meta_api_get_type (void);
GST_EXPORT
const GstMetaInfo * gst_video_crop_meta_get_info (void);
#define gst_buffer_get_video_crop_meta(b) ((GstVideoCropMeta*)gst_buffer_get_meta((b),GST_VIDEO_CROP_META_API_TYPE))
......@@ -120,6 +135,7 @@ const GstMetaInfo * gst_video_crop_meta_get_info (void);
/* video metadata transforms */
GST_EXPORT
GQuark gst_video_meta_transform_scale_get_quark (void);
/**
* gst_video_meta_transform_scale:
......@@ -231,10 +247,15 @@ struct _GstVideoGLTextureUploadMeta {
GBoxedFreeFunc user_data_free;
};
GST_EXPORT
GType gst_video_gl_texture_upload_meta_api_get_type (void);
GST_EXPORT
const GstMetaInfo * gst_video_gl_texture_upload_meta_get_info (void);
#define gst_buffer_get_video_gl_texture_upload_meta(b) ((GstVideoGLTextureUploadMeta*)gst_buffer_get_meta((b),GST_VIDEO_GL_TEXTURE_UPLOAD_META_API_TYPE))
GST_EXPORT
GstVideoGLTextureUploadMeta *
gst_buffer_add_video_gl_texture_upload_meta (GstBuffer *buffer,
GstVideoGLTextureOrientation texture_orientation,
......@@ -244,6 +265,8 @@ GstVideoGLTextureUploadMeta *
gpointer user_data,
GBoxedCopyFunc user_data_copy,
GBoxedFreeFunc user_data_free);
GST_EXPORT
gboolean gst_video_gl_texture_upload_meta_upload (GstVideoGLTextureUploadMeta *meta,
guint texture_id[4]);
......@@ -274,21 +297,28 @@ typedef struct {
guint h;
} GstVideoRegionOfInterestMeta;
GST_EXPORT
GType gst_video_region_of_interest_meta_api_get_type (void);
#define GST_VIDEO_REGION_OF_INTEREST_META_API_TYPE (gst_video_region_of_interest_meta_api_get_type())
GST_EXPORT
const GstMetaInfo *gst_video_region_of_interest_meta_get_info (void);
#define GST_VIDEO_REGION_OF_INTEREST_META_INFO (gst_video_region_of_interest_meta_get_info())
#define gst_buffer_get_video_region_of_interest_meta(b) \
((GstVideoRegionOfInterestMeta*)gst_buffer_get_meta((b),GST_VIDEO_REGION_OF_INTEREST_META_API_TYPE))
GST_EXPORT
GstVideoRegionOfInterestMeta *gst_buffer_get_video_region_of_interest_meta_id (GstBuffer * buffer,
gint id);
GST_EXPORT
GstVideoRegionOfInterestMeta *gst_buffer_add_video_region_of_interest_meta (GstBuffer * buffer,
const gchar * roi_type,
guint x,
guint y,
guint w,
guint h);
GST_EXPORT
GstVideoRegionOfInterestMeta *gst_buffer_add_video_region_of_interest_meta_id (GstBuffer * buffer,
GQuark roi_type,
guint x,
......@@ -314,16 +344,22 @@ typedef struct {
GstVideoTimeCode tc;
} GstVideoTimeCodeMeta;
GST_EXPORT
GType gst_video_time_code_meta_api_get_type (void);
#define GST_VIDEO_TIME_CODE_META_API_TYPE (gst_video_time_code_meta_api_get_type())
GST_EXPORT
const GstMetaInfo *gst_video_time_code_meta_get_info (void);
#define GST_VIDEO_TIME_CODE_META_INFO (gst_video_time_code_meta_get_info())
#define gst_buffer_get_video_time_code_meta(b) \
((GstVideoTimeCodeMeta*)gst_buffer_get_meta((b),GST_VIDEO_TIME_CODE_META_API_TYPE))
GST_EXPORT
GstVideoTimeCodeMeta *gst_buffer_add_video_time_code_meta (GstBuffer * buffer,
GstVideoTimeCode * tc);
GST_EXPORT
GstVideoTimeCodeMeta *
gst_buffer_add_video_time_code_meta_full (GstBuffer * buffer,
guint fps_n,
......
......@@ -46,7 +46,11 @@ G_BEGIN_DECLS
#define GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT "GstBufferPoolOptionVideoAlignment"
/* setting a bufferpool config */
GST_EXPORT
void gst_buffer_pool_config_set_video_alignment (GstStructure *config, GstVideoAlignment *align);
GST_EXPORT
gboolean gst_buffer_pool_config_get_video_alignment (GstStructure *config, GstVideoAlignment *align);
/* video bufferpool */
......@@ -71,8 +75,10 @@ struct _GstVideoBufferPoolClass
GstBufferPoolClass parent_class;
};
GST_EXPORT
GType gst_video_buffer_pool_get_type (void);
GST_EXPORT
GstBufferPool * gst_video_buffer_pool_new (void);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
......
......@@ -120,8 +120,10 @@ struct _GstVideoSinkClass {
gpointer _gst_reserved[GST_PADDING];
};
GST_EXPORT
GType gst_video_sink_get_type (void);
GST_EXPORT
void gst_video_sink_center_rect (GstVideoRectangle src, GstVideoRectangle dst,
GstVideoRectangle *result, gboolean scaling);
......
......@@ -122,8 +122,10 @@ struct _GstVideoTimeCodeInterval {
#define GST_TYPE_VIDEO_TIME_CODE (gst_video_time_code_get_type())
GST_EXPORT
GType gst_video_time_code_get_type (void);
GST_EXPORT
GstVideoTimeCode * gst_video_time_code_new (guint fps_n,
guint fps_d,
GDateTime * latest_daily_jam,
......@@ -133,17 +135,27 @@ GstVideoTimeCode * gst_video_time_code_new (guint fp
guint seconds,
guint frames,
guint field_count);
GST_EXPORT
GstVideoTimeCode * gst_video_time_code_new_empty (void);
GST_EXPORT
GstVideoTimeCode * gst_video_time_code_new_from_string (const gchar * tc_str);
GST_EXPORT
GstVideoTimeCode * gst_video_time_code_new_from_date_time (guint fps_n,
guint fps_d,
GDateTime * dt,
GstVideoTimeCodeFlags flags,
guint field_count);
GST_EXPORT
void gst_video_time_code_free (GstVideoTimeCode * tc);
GST_EXPORT
GstVideoTimeCode * gst_video_time_code_copy (const GstVideoTimeCode * tc);
GST_EXPORT
void gst_video_time_code_init (GstVideoTimeCode * tc,
guint fps_n,
guint fps_d,
......@@ -154,50 +166,74 @@ void gst_video_time_code_init (GstVideoTimeCode * tc
guint seconds,
guint frames,
guint field_count);
GST_EXPORT
void gst_video_time_code_init_from_date_time (GstVideoTimeCode * tc,
guint fps_n,
guint fps_d,
GDateTime * dt,
GstVideoTimeCodeFlags flags,
guint field_count);
GST_EXPORT
void gst_video_time_code_clear (GstVideoTimeCode * tc);
GST_EXPORT
gboolean gst_video_time_code_is_valid (const GstVideoTimeCode * tc);
GST_EXPORT
gint gst_video_time_code_compare (const GstVideoTimeCode * tc1,
const GstVideoTimeCode * tc2);
GST_EXPORT
void gst_video_time_code_increment_frame (GstVideoTimeCode * tc);
GST_EXPORT
void gst_video_time_code_add_frames (GstVideoTimeCode * tc,
gint64 frames);
GST_EXPORT
gchar *gst_video_time_code_to_string (const GstVideoTimeCode * tc);
GST_EXPORT
GDateTime *gst_video_time_code_to_date_time (const GstVideoTimeCode * tc);
GST_EXPORT
guint64 gst_video_time_code_nsec_since_daily_jam (const GstVideoTimeCode * tc);
GST_EXPORT
guint64 gst_video_time_code_frames_since_daily_jam (const GstVideoTimeCode * tc);
GST_EXPORT
GstVideoTimeCode * gst_video_time_code_add_interval (const GstVideoTimeCode * tc, const GstVideoTimeCodeInterval * tc_inter);
#define GST_TYPE_VIDEO_TIME_CODE_INTERVAL (gst_video_time_code_interval_get_type())
GST_EXPORT
GType gst_video_time_code_interval_get_type (void);
GST_EXPORT
GstVideoTimeCodeInterval * gst_video_time_code_interval_new (guint hours,
guint minutes,
guint seconds,
guint frames);
GST_EXPORT
GstVideoTimeCodeInterval * gst_video_time_code_interval_new_from_string (const gchar * tc_inter_str);
GST_EXPORT
void gst_video_time_code_interval_free (GstVideoTimeCodeInterval * tc);
GST_EXPORT
GstVideoTimeCodeInterval * gst_video_time_code_interval_copy (const GstVideoTimeCodeInterval * tc);
GST_EXPORT
void gst_video_time_code_interval_init (GstVideoTimeCodeInterval * tc,
guint hours,
guint minutes,
guint seconds,
guint frames);
GST_EXPORT
void gst_video_time_code_interval_clear (GstVideoTimeCodeInterval * tc);
G_END_DECLS
......
......@@ -264,21 +264,34 @@ struct _GstVideoCodecFrame
};
/* GstVideoCodecState */
GST_EXPORT
GType gst_video_codec_state_get_type (void);
GST_EXPORT
GstVideoCodecState *gst_video_codec_state_ref (GstVideoCodecState * state);
GST_EXPORT
void gst_video_codec_state_unref (GstVideoCodecState * state);
/* GstVideoCodecFrame */
GST_EXPORT
GType gst_video_codec_frame_get_type (void);
GST_EXPORT
GstVideoCodecFrame *gst_video_codec_frame_ref (GstVideoCodecFrame * frame);
GST_EXPORT
void gst_video_codec_frame_unref (GstVideoCodecFrame * frame);
GST_EXPORT
void gst_video_codec_frame_set_user_data (GstVideoCodecFrame *frame,
gpointer user_data,
GDestroyNotify notify);
GST_EXPORT
gpointer gst_video_codec_frame_get_user_data (GstVideoCodecFrame *frame);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
......
......@@ -53,6 +53,7 @@ struct _GstNavigationInterface {
void (*send_event) (GstNavigation *navigation, GstStructure *structure);
};
GST_EXPORT
GType gst_navigation_get_type (void);
/* Navigation commands */
......@@ -148,20 +149,35 @@ typedef enum
GST_NAVIGATION_QUERY_ANGLES = 2
} GstNavigationQueryType;
GST_EXPORT
GstNavigationQueryType gst_navigation_query_get_type (GstQuery *query);
GST_EXPORT