diff options
author | Javier Jardón <jjardon@gnome.org> | 2012-06-29 15:19:51 +0900 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-07-19 16:24:22 +0200 |
commit | c416f8cf7daa137da81aaac5f23b7f10e7192b8a (patch) | |
tree | a4775d1d2a24baa3321fb31e6e697de295fbe1c0 | |
parent | b9122b43770bb2b93958b30642d33c94dbfb6de0 (diff) | |
download | gstreamer-vaapi-c416f8cf7daa137da81aaac5f23b7f10e7192b8a.tar.gz |
libs: declare _get_type() functions as const.
Declaring a function as const enables better optimization of calls
to the function.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
31 files changed, 35 insertions, 35 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapicodec_objects.h b/gst-libs/gst/vaapi/gstvaapicodec_objects.h index f379f026..236088f1 100644 --- a/gst-libs/gst/vaapi/gstvaapicodec_objects.h +++ b/gst-libs/gst/vaapi/gstvaapicodec_objects.h @@ -108,7 +108,7 @@ struct _GstVaapiCodecObjectClass { }; GType -gst_vaapi_codec_object_get_type(void) +gst_vaapi_codec_object_get_type(void) G_GNUC_CONST attribute_hidden; GstVaapiCodecObject * @@ -183,7 +183,7 @@ struct _GstVaapiIqMatrixClass { }; GType -gst_vaapi_iq_matrix_get_type(void) +gst_vaapi_iq_matrix_get_type(void) G_GNUC_CONST attribute_hidden; GstVaapiIqMatrix * @@ -249,7 +249,7 @@ struct _GstVaapiBitPlaneClass { }; GType -gst_vaapi_bitplane_get_type(void) +gst_vaapi_bitplane_get_type(void) G_GNUC_CONST attribute_hidden; GstVaapiBitPlane * diff --git a/gst-libs/gst/vaapi/gstvaapicontext.h b/gst-libs/gst/vaapi/gstvaapicontext.h index 78f9b282..1187c400 100644 --- a/gst-libs/gst/vaapi/gstvaapicontext.h +++ b/gst-libs/gst/vaapi/gstvaapicontext.h @@ -82,7 +82,7 @@ struct _GstVaapiContextClass { }; GType -gst_vaapi_context_get_type(void); +gst_vaapi_context_get_type(void) G_GNUC_CONST; GstVaapiContext * gst_vaapi_context_new( diff --git a/gst-libs/gst/vaapi/gstvaapidecoder.h b/gst-libs/gst/vaapi/gstvaapidecoder.h index 910dfc5f..f365b931 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder.h +++ b/gst-libs/gst/vaapi/gstvaapidecoder.h @@ -115,7 +115,7 @@ struct _GstVaapiDecoderClass { }; GType -gst_vaapi_decoder_get_type(void); +gst_vaapi_decoder_get_type(void) G_GNUC_CONST; GstCaps * gst_vaapi_decoder_get_caps(GstVaapiDecoder *decoder); diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_dpb.h b/gst-libs/gst/vaapi/gstvaapidecoder_dpb.h index 1a199b89..db43811e 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_dpb.h +++ b/gst-libs/gst/vaapi/gstvaapidecoder_dpb.h @@ -92,7 +92,7 @@ struct _GstVaapiDpbClass { }; GType -gst_vaapi_dpb_get_type(void) +gst_vaapi_dpb_get_type(void) G_GNUC_CONST attribute_hidden; void @@ -171,7 +171,7 @@ struct _GstVaapiDpbMpeg2Class { }; GType -gst_vaapi_dpb_mpeg2_get_type(void) +gst_vaapi_dpb_mpeg2_get_type(void) G_GNUC_CONST attribute_hidden; GstVaapiDpb * diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_ffmpeg.h b/gst-libs/gst/vaapi/gstvaapidecoder_ffmpeg.h index 746d16d1..01e667f3 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_ffmpeg.h +++ b/gst-libs/gst/vaapi/gstvaapidecoder_ffmpeg.h @@ -77,7 +77,7 @@ struct _GstVaapiDecoderFfmpegClass { }; GType -gst_vaapi_decoder_ffmpeg_get_type(void); +gst_vaapi_decoder_ffmpeg_get_type(void) G_GNUC_CONST; GstVaapiDecoder * gst_vaapi_decoder_ffmpeg_new(GstVaapiDisplay *display, GstCaps *caps); diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_h264.h b/gst-libs/gst/vaapi/gstvaapidecoder_h264.h index 5ba47763..79a08f17 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_h264.h +++ b/gst-libs/gst/vaapi/gstvaapidecoder_h264.h @@ -77,7 +77,7 @@ struct _GstVaapiDecoderH264Class { }; GType -gst_vaapi_decoder_h264_get_type(void); +gst_vaapi_decoder_h264_get_type(void) G_GNUC_CONST; GstVaapiDecoder * gst_vaapi_decoder_h264_new(GstVaapiDisplay *display, GstCaps *caps); diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.h b/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.h index 98368331..e438c396 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.h +++ b/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.h @@ -78,7 +78,7 @@ struct _GstVaapiDecoderMpeg2Class { }; GType -gst_vaapi_decoder_mpeg2_get_type(void); +gst_vaapi_decoder_mpeg2_get_type(void) G_GNUC_CONST; GstVaapiDecoder * gst_vaapi_decoder_mpeg2_new(GstVaapiDisplay *display, GstCaps *caps); diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_mpeg4.h b/gst-libs/gst/vaapi/gstvaapidecoder_mpeg4.h index 753c60d3..4c877bba 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_mpeg4.h +++ b/gst-libs/gst/vaapi/gstvaapidecoder_mpeg4.h @@ -78,7 +78,7 @@ struct _GstVaapiDecoderMpeg4Class { }; GType -gst_vaapi_decoder_mpeg4_get_type(void); +gst_vaapi_decoder_mpeg4_get_type(void) G_GNUC_CONST; GstVaapiDecoder * gst_vaapi_decoder_mpeg4_new(GstVaapiDisplay *display, GstCaps *caps); diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_objects.h b/gst-libs/gst/vaapi/gstvaapidecoder_objects.h index 93d8ce27..ebc80df9 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_objects.h +++ b/gst-libs/gst/vaapi/gstvaapidecoder_objects.h @@ -163,7 +163,7 @@ struct _GstVaapiPictureClass { }; GType -gst_vaapi_picture_get_type(void) +gst_vaapi_picture_get_type(void) G_GNUC_CONST attribute_hidden; GstVaapiPicture * @@ -262,7 +262,7 @@ struct _GstVaapiSliceClass { }; GType -gst_vaapi_slice_get_type(void) +gst_vaapi_slice_get_type(void) G_GNUC_CONST attribute_hidden; GstVaapiSlice * diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_vc1.h b/gst-libs/gst/vaapi/gstvaapidecoder_vc1.h index f443a499..1bed6067 100644 --- a/gst-libs/gst/vaapi/gstvaapidecoder_vc1.h +++ b/gst-libs/gst/vaapi/gstvaapidecoder_vc1.h @@ -78,7 +78,7 @@ struct _GstVaapiDecoderVC1Class { }; GType -gst_vaapi_decoder_vc1_get_type(void); +gst_vaapi_decoder_vc1_get_type(void) G_GNUC_CONST; GstVaapiDecoder * gst_vaapi_decoder_vc1_new(GstVaapiDisplay *display, GstCaps *caps); diff --git a/gst-libs/gst/vaapi/gstvaapidisplay.h b/gst-libs/gst/vaapi/gstvaapidisplay.h index 33d7a234..7be56cae 100644 --- a/gst-libs/gst/vaapi/gstvaapidisplay.h +++ b/gst-libs/gst/vaapi/gstvaapidisplay.h @@ -122,7 +122,7 @@ struct _GstVaapiDisplayClass { }; GType -gst_vaapi_display_get_type(void); +gst_vaapi_display_get_type(void) G_GNUC_CONST; GstVaapiDisplay * gst_vaapi_display_new_with_display(VADisplay va_display); diff --git a/gst-libs/gst/vaapi/gstvaapidisplay_glx.h b/gst-libs/gst/vaapi/gstvaapidisplay_glx.h index b7135a68..6f115e50 100644 --- a/gst-libs/gst/vaapi/gstvaapidisplay_glx.h +++ b/gst-libs/gst/vaapi/gstvaapidisplay_glx.h @@ -77,7 +77,7 @@ struct _GstVaapiDisplayGLXClass { }; GType -gst_vaapi_display_glx_get_type(void); +gst_vaapi_display_glx_get_type(void) G_GNUC_CONST; GstVaapiDisplay * gst_vaapi_display_glx_new(const gchar *display_name); diff --git a/gst-libs/gst/vaapi/gstvaapidisplay_x11.h b/gst-libs/gst/vaapi/gstvaapidisplay_x11.h index ab6d0ec4..a651dd67 100644 --- a/gst-libs/gst/vaapi/gstvaapidisplay_x11.h +++ b/gst-libs/gst/vaapi/gstvaapidisplay_x11.h @@ -84,7 +84,7 @@ struct _GstVaapiDisplayX11Class { }; GType -gst_vaapi_display_x11_get_type(void); +gst_vaapi_display_x11_get_type(void) G_GNUC_CONST; GstVaapiDisplay * gst_vaapi_display_x11_new(const gchar *display_name); diff --git a/gst-libs/gst/vaapi/gstvaapiimage.h b/gst-libs/gst/vaapi/gstvaapiimage.h index 3178b68b..d0c3cf30 100644 --- a/gst-libs/gst/vaapi/gstvaapiimage.h +++ b/gst-libs/gst/vaapi/gstvaapiimage.h @@ -121,7 +121,7 @@ struct _GstVaapiImageRaw { }; GType -gst_vaapi_image_get_type(void); +gst_vaapi_image_get_type(void) G_GNUC_CONST; GstVaapiImage * gst_vaapi_image_new( diff --git a/gst-libs/gst/vaapi/gstvaapiimagepool.h b/gst-libs/gst/vaapi/gstvaapiimagepool.h index 139a8505..2478c470 100644 --- a/gst-libs/gst/vaapi/gstvaapiimagepool.h +++ b/gst-libs/gst/vaapi/gstvaapiimagepool.h @@ -78,7 +78,7 @@ struct _GstVaapiImagePoolClass { }; GType -gst_vaapi_image_pool_get_type(void); +gst_vaapi_image_pool_get_type(void) G_GNUC_CONST; GstVaapiVideoPool * gst_vaapi_image_pool_new(GstVaapiDisplay *display, GstCaps *caps); diff --git a/gst-libs/gst/vaapi/gstvaapiobject.h b/gst-libs/gst/vaapi/gstvaapiobject.h index fbb4aef7..913cac86 100644 --- a/gst-libs/gst/vaapi/gstvaapiobject.h +++ b/gst-libs/gst/vaapi/gstvaapiobject.h @@ -82,7 +82,7 @@ struct _GstVaapiObjectClass { }; GType -gst_vaapi_object_get_type(void); +gst_vaapi_object_get_type(void) G_GNUC_CONST; GstVaapiDisplay * gst_vaapi_object_get_display(GstVaapiObject *object); diff --git a/gst-libs/gst/vaapi/gstvaapiparamspecs.h b/gst-libs/gst/vaapi/gstvaapiparamspecs.h index b22416e9..5b201496 100644 --- a/gst-libs/gst/vaapi/gstvaapiparamspecs.h +++ b/gst-libs/gst/vaapi/gstvaapiparamspecs.h @@ -55,7 +55,7 @@ struct _GstVaapiParamSpecID { GstVaapiParamSpecID)) GType -gst_vaapi_param_spec_id_get_type(void); +gst_vaapi_param_spec_id_get_type(void) G_GNUC_CONST; GParamSpec * gst_vaapi_param_spec_id( diff --git a/gst-libs/gst/vaapi/gstvaapisubpicture.h b/gst-libs/gst/vaapi/gstvaapisubpicture.h index 7a0dd96a..e7a6dbfd 100644 --- a/gst-libs/gst/vaapi/gstvaapisubpicture.h +++ b/gst-libs/gst/vaapi/gstvaapisubpicture.h @@ -81,7 +81,7 @@ struct _GstVaapiSubpictureClass { }; GType -gst_vaapi_subpicture_get_type(void); +gst_vaapi_subpicture_get_type(void) G_GNUC_CONST; GstVaapiSubpicture * gst_vaapi_subpicture_new(GstVaapiImage *image); diff --git a/gst-libs/gst/vaapi/gstvaapisurface.h b/gst-libs/gst/vaapi/gstvaapisurface.h index 9057290b..9f51caa3 100644 --- a/gst-libs/gst/vaapi/gstvaapisurface.h +++ b/gst-libs/gst/vaapi/gstvaapisurface.h @@ -168,7 +168,7 @@ struct _GstVaapiSurfaceClass { }; GType -gst_vaapi_surface_get_type(void); +gst_vaapi_surface_get_type(void) G_GNUC_CONST; GstVaapiSurface * gst_vaapi_surface_new( diff --git a/gst-libs/gst/vaapi/gstvaapisurfacepool.h b/gst-libs/gst/vaapi/gstvaapisurfacepool.h index 1a7c30a5..2bb661c8 100644 --- a/gst-libs/gst/vaapi/gstvaapisurfacepool.h +++ b/gst-libs/gst/vaapi/gstvaapisurfacepool.h @@ -78,7 +78,7 @@ struct _GstVaapiSurfacePoolClass { }; GType -gst_vaapi_surface_pool_get_type(void); +gst_vaapi_surface_pool_get_type(void) G_GNUC_CONST; GstVaapiVideoPool * gst_vaapi_surface_pool_new(GstVaapiDisplay *display, GstCaps *caps); diff --git a/gst-libs/gst/vaapi/gstvaapisurfaceproxy.h b/gst-libs/gst/vaapi/gstvaapisurfaceproxy.h index b32458c7..35e38f7c 100644 --- a/gst-libs/gst/vaapi/gstvaapisurfaceproxy.h +++ b/gst-libs/gst/vaapi/gstvaapisurfaceproxy.h @@ -117,7 +117,7 @@ struct _GstVaapiSurfaceProxyClass { }; GType -gst_vaapi_surface_proxy_get_type(void); +gst_vaapi_surface_proxy_get_type(void) G_GNUC_CONST; GstVaapiSurfaceProxy * gst_vaapi_surface_proxy_new(GstVaapiContext *context, GstVaapiSurface *surface); diff --git a/gst-libs/gst/vaapi/gstvaapitexture.h b/gst-libs/gst/vaapi/gstvaapitexture.h index 1b67a5b1..4f8f3ce3 100644 --- a/gst-libs/gst/vaapi/gstvaapitexture.h +++ b/gst-libs/gst/vaapi/gstvaapitexture.h @@ -81,7 +81,7 @@ struct _GstVaapiTextureClass { }; GType -gst_vaapi_texture_get_type(void); +gst_vaapi_texture_get_type(void) G_GNUC_CONST; GstVaapiTexture * gst_vaapi_texture_new( diff --git a/gst-libs/gst/vaapi/gstvaapivalue.h b/gst-libs/gst/vaapi/gstvaapivalue.h index a3834d2d..a5a52bec 100644 --- a/gst-libs/gst/vaapi/gstvaapivalue.h +++ b/gst-libs/gst/vaapi/gstvaapivalue.h @@ -45,7 +45,7 @@ G_BEGIN_DECLS #define GST_VAAPI_VALUE_HOLDS_ID(x) (G_VALUE_HOLDS((x), GST_VAAPI_TYPE_ID)) GType -gst_vaapi_id_get_type(void); +gst_vaapi_id_get_type(void) G_GNUC_CONST; GstVaapiID gst_vaapi_value_get_id(const GValue *value); diff --git a/gst-libs/gst/vaapi/gstvaapivideobuffer.h b/gst-libs/gst/vaapi/gstvaapivideobuffer.h index 520191c4..04c5ba4f 100644 --- a/gst-libs/gst/vaapi/gstvaapivideobuffer.h +++ b/gst-libs/gst/vaapi/gstvaapivideobuffer.h @@ -83,7 +83,7 @@ struct _GstVaapiVideoBufferClass { }; GType -gst_vaapi_video_buffer_get_type(void); +gst_vaapi_video_buffer_get_type(void) G_GNUC_CONST; GstBuffer * gst_vaapi_video_buffer_new(GstVaapiDisplay *display); diff --git a/gst-libs/gst/vaapi/gstvaapivideobuffer_glx.h b/gst-libs/gst/vaapi/gstvaapivideobuffer_glx.h index 48bf0841..af0a05c0 100644 --- a/gst-libs/gst/vaapi/gstvaapivideobuffer_glx.h +++ b/gst-libs/gst/vaapi/gstvaapivideobuffer_glx.h @@ -78,7 +78,7 @@ struct _GstVaapiVideoBufferGLXClass { GstVaapiVideoBufferClass parent_class; }; -GType gst_vaapi_video_buffer_glx_get_type (void); +GType gst_vaapi_video_buffer_glx_get_type (void) G_GNUC_CONST; GstBuffer *gst_vaapi_video_buffer_glx_new (GstVaapiDisplayGLX * display); GstBuffer *gst_vaapi_video_buffer_glx_new_from_pool (GstVaapiVideoPool * pool); GstBuffer *gst_vaapi_video_buffer_glx_new_from_buffer (GstBuffer * buffer); diff --git a/gst-libs/gst/vaapi/gstvaapivideoconverter_glx.h b/gst-libs/gst/vaapi/gstvaapivideoconverter_glx.h index 012bb137..0215444d 100644 --- a/gst-libs/gst/vaapi/gstvaapivideoconverter_glx.h +++ b/gst-libs/gst/vaapi/gstvaapivideoconverter_glx.h @@ -61,7 +61,7 @@ struct _GstVaapiVideoConverterGLXClass { GObjectClass parent_class; }; -GType gst_vaapi_video_converter_glx_get_type (void); +GType gst_vaapi_video_converter_glx_get_type (void) G_GNUC_CONST; GstSurfaceConverter *gst_vaapi_video_converter_glx_new (GstSurfaceBuffer *buffer, const gchar *type, diff --git a/gst-libs/gst/vaapi/gstvaapivideopool.h b/gst-libs/gst/vaapi/gstvaapivideopool.h index 12266178..f2fdb5e5 100644 --- a/gst-libs/gst/vaapi/gstvaapivideopool.h +++ b/gst-libs/gst/vaapi/gstvaapivideopool.h @@ -86,7 +86,7 @@ struct _GstVaapiVideoPoolClass { }; GType -gst_vaapi_video_pool_get_type(void); +gst_vaapi_video_pool_get_type(void) G_GNUC_CONST; GstVaapiDisplay * gst_vaapi_video_pool_get_display(GstVaapiVideoPool *pool); diff --git a/gst-libs/gst/vaapi/gstvaapivideosink.h b/gst-libs/gst/vaapi/gstvaapivideosink.h index e9a17b4e..f33ba497 100644 --- a/gst-libs/gst/vaapi/gstvaapivideosink.h +++ b/gst-libs/gst/vaapi/gstvaapivideosink.h @@ -61,7 +61,7 @@ struct _GstVaapiVideoSinkInterface { }; GType -gst_vaapi_video_sink_get_type(void); +gst_vaapi_video_sink_get_type(void) G_GNUC_CONST; GstVaapiDisplay * gst_vaapi_video_sink_get_display(GstVaapiVideoSink *sink); diff --git a/gst-libs/gst/vaapi/gstvaapiwindow.h b/gst-libs/gst/vaapi/gstvaapiwindow.h index f5b6ee0e..5fdaf812 100644 --- a/gst-libs/gst/vaapi/gstvaapiwindow.h +++ b/gst-libs/gst/vaapi/gstvaapiwindow.h @@ -104,7 +104,7 @@ struct _GstVaapiWindowClass { }; GType -gst_vaapi_window_get_type(void); +gst_vaapi_window_get_type(void) G_GNUC_CONST; GstVaapiDisplay * gst_vaapi_window_get_display(GstVaapiWindow *window); diff --git a/gst-libs/gst/vaapi/gstvaapiwindow_glx.h b/gst-libs/gst/vaapi/gstvaapiwindow_glx.h index 96b7f4e6..55473557 100644 --- a/gst-libs/gst/vaapi/gstvaapiwindow_glx.h +++ b/gst-libs/gst/vaapi/gstvaapiwindow_glx.h @@ -80,7 +80,7 @@ struct _GstVaapiWindowGLXClass { }; GType -gst_vaapi_window_glx_get_type(void); +gst_vaapi_window_glx_get_type(void) G_GNUC_CONST; GstVaapiWindow * gst_vaapi_window_glx_new(GstVaapiDisplay *display, guint width, guint height); diff --git a/gst-libs/gst/vaapi/gstvaapiwindow_x11.h b/gst-libs/gst/vaapi/gstvaapiwindow_x11.h index 9488703e..f1f22d47 100644 --- a/gst-libs/gst/vaapi/gstvaapiwindow_x11.h +++ b/gst-libs/gst/vaapi/gstvaapiwindow_x11.h @@ -95,7 +95,7 @@ struct _GstVaapiWindowX11Class { }; GType -gst_vaapi_window_x11_get_type(void); +gst_vaapi_window_x11_get_type(void) G_GNUC_CONST; GstVaapiWindow * gst_vaapi_window_x11_new(GstVaapiDisplay *display, guint width, guint height); |