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>
This commit is contained in:
Javier Jardón 2012-06-29 15:19:51 +09:00 committed by Gwenole Beauchesne
parent 30024b3f8e
commit dba174906a
32 changed files with 37 additions and 37 deletions

View file

@ -110,7 +110,7 @@ struct _GstVaapiCodecObjectClass {
}; };
GType GType
gst_vaapi_codec_object_get_type(void) gst_vaapi_codec_object_get_type(void) G_GNUC_CONST
attribute_hidden; attribute_hidden;
GstVaapiCodecObject * GstVaapiCodecObject *
@ -185,7 +185,7 @@ struct _GstVaapiIqMatrixClass {
}; };
GType GType
gst_vaapi_iq_matrix_get_type(void) gst_vaapi_iq_matrix_get_type(void) G_GNUC_CONST
attribute_hidden; attribute_hidden;
GstVaapiIqMatrix * GstVaapiIqMatrix *
@ -251,7 +251,7 @@ struct _GstVaapiBitPlaneClass {
}; };
GType GType
gst_vaapi_bitplane_get_type(void) gst_vaapi_bitplane_get_type(void) G_GNUC_CONST
attribute_hidden; attribute_hidden;
GstVaapiBitPlane * GstVaapiBitPlane *
@ -314,7 +314,7 @@ struct _GstVaapiHuffmanTableClass {
}; };
GType GType
gst_vaapi_huffman_table_get_type(void) gst_vaapi_huffman_table_get_type(void) G_GNUC_CONST
attribute_hidden; attribute_hidden;
GstVaapiHuffmanTable * GstVaapiHuffmanTable *

View file

@ -82,7 +82,7 @@ struct _GstVaapiContextClass {
}; };
GType GType
gst_vaapi_context_get_type(void); gst_vaapi_context_get_type(void) G_GNUC_CONST;
GstVaapiContext * GstVaapiContext *
gst_vaapi_context_new( gst_vaapi_context_new(

View file

@ -115,7 +115,7 @@ struct _GstVaapiDecoderClass {
}; };
GType GType
gst_vaapi_decoder_get_type(void); gst_vaapi_decoder_get_type(void) G_GNUC_CONST;
GstCaps * GstCaps *
gst_vaapi_decoder_get_caps(GstVaapiDecoder *decoder); gst_vaapi_decoder_get_caps(GstVaapiDecoder *decoder);

View file

@ -92,7 +92,7 @@ struct _GstVaapiDpbClass {
}; };
GType GType
gst_vaapi_dpb_get_type(void) gst_vaapi_dpb_get_type(void) G_GNUC_CONST
attribute_hidden; attribute_hidden;
void void
@ -171,7 +171,7 @@ struct _GstVaapiDpbMpeg2Class {
}; };
GType GType
gst_vaapi_dpb_mpeg2_get_type(void) gst_vaapi_dpb_mpeg2_get_type(void) G_GNUC_CONST
attribute_hidden; attribute_hidden;
GstVaapiDpb * GstVaapiDpb *

View file

@ -77,7 +77,7 @@ struct _GstVaapiDecoderFfmpegClass {
}; };
GType GType
gst_vaapi_decoder_ffmpeg_get_type(void); gst_vaapi_decoder_ffmpeg_get_type(void) G_GNUC_CONST;
GstVaapiDecoder * GstVaapiDecoder *
gst_vaapi_decoder_ffmpeg_new(GstVaapiDisplay *display, GstCaps *caps); gst_vaapi_decoder_ffmpeg_new(GstVaapiDisplay *display, GstCaps *caps);

View file

@ -77,7 +77,7 @@ struct _GstVaapiDecoderH264Class {
}; };
GType GType
gst_vaapi_decoder_h264_get_type(void); gst_vaapi_decoder_h264_get_type(void) G_GNUC_CONST;
GstVaapiDecoder * GstVaapiDecoder *
gst_vaapi_decoder_h264_new(GstVaapiDisplay *display, GstCaps *caps); gst_vaapi_decoder_h264_new(GstVaapiDisplay *display, GstCaps *caps);

View file

@ -77,7 +77,7 @@ struct _GstVaapiDecoderJpegClass {
}; };
GType GType
gst_vaapi_decoder_jpeg_get_type(void); gst_vaapi_decoder_jpeg_get_type(void) G_GNUC_CONST;
GstVaapiDecoder * GstVaapiDecoder *
gst_vaapi_decoder_jpeg_new(GstVaapiDisplay *display, GstCaps *caps); gst_vaapi_decoder_jpeg_new(GstVaapiDisplay *display, GstCaps *caps);

View file

@ -78,7 +78,7 @@ struct _GstVaapiDecoderMpeg2Class {
}; };
GType GType
gst_vaapi_decoder_mpeg2_get_type(void); gst_vaapi_decoder_mpeg2_get_type(void) G_GNUC_CONST;
GstVaapiDecoder * GstVaapiDecoder *
gst_vaapi_decoder_mpeg2_new(GstVaapiDisplay *display, GstCaps *caps); gst_vaapi_decoder_mpeg2_new(GstVaapiDisplay *display, GstCaps *caps);

View file

@ -78,7 +78,7 @@ struct _GstVaapiDecoderMpeg4Class {
}; };
GType GType
gst_vaapi_decoder_mpeg4_get_type(void); gst_vaapi_decoder_mpeg4_get_type(void) G_GNUC_CONST;
GstVaapiDecoder * GstVaapiDecoder *
gst_vaapi_decoder_mpeg4_new(GstVaapiDisplay *display, GstCaps *caps); gst_vaapi_decoder_mpeg4_new(GstVaapiDisplay *display, GstCaps *caps);

View file

@ -164,7 +164,7 @@ struct _GstVaapiPictureClass {
}; };
GType GType
gst_vaapi_picture_get_type(void) gst_vaapi_picture_get_type(void) G_GNUC_CONST
attribute_hidden; attribute_hidden;
GstVaapiPicture * GstVaapiPicture *
@ -263,7 +263,7 @@ struct _GstVaapiSliceClass {
}; };
GType GType
gst_vaapi_slice_get_type(void) gst_vaapi_slice_get_type(void) G_GNUC_CONST
attribute_hidden; attribute_hidden;
GstVaapiSlice * GstVaapiSlice *

View file

@ -78,7 +78,7 @@ struct _GstVaapiDecoderVC1Class {
}; };
GType GType
gst_vaapi_decoder_vc1_get_type(void); gst_vaapi_decoder_vc1_get_type(void) G_GNUC_CONST;
GstVaapiDecoder * GstVaapiDecoder *
gst_vaapi_decoder_vc1_new(GstVaapiDisplay *display, GstCaps *caps); gst_vaapi_decoder_vc1_new(GstVaapiDisplay *display, GstCaps *caps);

View file

@ -122,7 +122,7 @@ struct _GstVaapiDisplayClass {
}; };
GType GType
gst_vaapi_display_get_type(void); gst_vaapi_display_get_type(void) G_GNUC_CONST;
GstVaapiDisplay * GstVaapiDisplay *
gst_vaapi_display_new_with_display(VADisplay va_display); gst_vaapi_display_new_with_display(VADisplay va_display);

View file

@ -77,7 +77,7 @@ struct _GstVaapiDisplayGLXClass {
}; };
GType GType
gst_vaapi_display_glx_get_type(void); gst_vaapi_display_glx_get_type(void) G_GNUC_CONST;
GstVaapiDisplay * GstVaapiDisplay *
gst_vaapi_display_glx_new(const gchar *display_name); gst_vaapi_display_glx_new(const gchar *display_name);

View file

@ -84,7 +84,7 @@ struct _GstVaapiDisplayX11Class {
}; };
GType GType
gst_vaapi_display_x11_get_type(void); gst_vaapi_display_x11_get_type(void) G_GNUC_CONST;
GstVaapiDisplay * GstVaapiDisplay *
gst_vaapi_display_x11_new(const gchar *display_name); gst_vaapi_display_x11_new(const gchar *display_name);

View file

@ -121,7 +121,7 @@ struct _GstVaapiImageRaw {
}; };
GType GType
gst_vaapi_image_get_type(void); gst_vaapi_image_get_type(void) G_GNUC_CONST;
GstVaapiImage * GstVaapiImage *
gst_vaapi_image_new( gst_vaapi_image_new(

View file

@ -78,7 +78,7 @@ struct _GstVaapiImagePoolClass {
}; };
GType GType
gst_vaapi_image_pool_get_type(void); gst_vaapi_image_pool_get_type(void) G_GNUC_CONST;
GstVaapiVideoPool * GstVaapiVideoPool *
gst_vaapi_image_pool_new(GstVaapiDisplay *display, GstCaps *caps); gst_vaapi_image_pool_new(GstVaapiDisplay *display, GstCaps *caps);

View file

@ -82,7 +82,7 @@ struct _GstVaapiObjectClass {
}; };
GType GType
gst_vaapi_object_get_type(void); gst_vaapi_object_get_type(void) G_GNUC_CONST;
GstVaapiDisplay * GstVaapiDisplay *
gst_vaapi_object_get_display(GstVaapiObject *object); gst_vaapi_object_get_display(GstVaapiObject *object);

View file

@ -55,7 +55,7 @@ struct _GstVaapiParamSpecID {
GstVaapiParamSpecID)) GstVaapiParamSpecID))
GType GType
gst_vaapi_param_spec_id_get_type(void); gst_vaapi_param_spec_id_get_type(void) G_GNUC_CONST;
GParamSpec * GParamSpec *
gst_vaapi_param_spec_id( gst_vaapi_param_spec_id(

View file

@ -81,7 +81,7 @@ struct _GstVaapiSubpictureClass {
}; };
GType GType
gst_vaapi_subpicture_get_type(void); gst_vaapi_subpicture_get_type(void) G_GNUC_CONST;
GstVaapiSubpicture * GstVaapiSubpicture *
gst_vaapi_subpicture_new(GstVaapiImage *image); gst_vaapi_subpicture_new(GstVaapiImage *image);

View file

@ -168,7 +168,7 @@ struct _GstVaapiSurfaceClass {
}; };
GType GType
gst_vaapi_surface_get_type(void); gst_vaapi_surface_get_type(void) G_GNUC_CONST;
GstVaapiSurface * GstVaapiSurface *
gst_vaapi_surface_new( gst_vaapi_surface_new(

View file

@ -78,7 +78,7 @@ struct _GstVaapiSurfacePoolClass {
}; };
GType GType
gst_vaapi_surface_pool_get_type(void); gst_vaapi_surface_pool_get_type(void) G_GNUC_CONST;
GstVaapiVideoPool * GstVaapiVideoPool *
gst_vaapi_surface_pool_new(GstVaapiDisplay *display, GstCaps *caps); gst_vaapi_surface_pool_new(GstVaapiDisplay *display, GstCaps *caps);

View file

@ -117,7 +117,7 @@ struct _GstVaapiSurfaceProxyClass {
}; };
GType GType
gst_vaapi_surface_proxy_get_type(void); gst_vaapi_surface_proxy_get_type(void) G_GNUC_CONST;
GstVaapiSurfaceProxy * GstVaapiSurfaceProxy *
gst_vaapi_surface_proxy_new(GstVaapiContext *context, GstVaapiSurface *surface); gst_vaapi_surface_proxy_new(GstVaapiContext *context, GstVaapiSurface *surface);

View file

@ -81,7 +81,7 @@ struct _GstVaapiTextureClass {
}; };
GType GType
gst_vaapi_texture_get_type(void); gst_vaapi_texture_get_type(void) G_GNUC_CONST;
GstVaapiTexture * GstVaapiTexture *
gst_vaapi_texture_new( gst_vaapi_texture_new(

View file

@ -45,7 +45,7 @@ G_BEGIN_DECLS
#define GST_VAAPI_VALUE_HOLDS_ID(x) (G_VALUE_HOLDS((x), GST_VAAPI_TYPE_ID)) #define GST_VAAPI_VALUE_HOLDS_ID(x) (G_VALUE_HOLDS((x), GST_VAAPI_TYPE_ID))
GType GType
gst_vaapi_id_get_type(void); gst_vaapi_id_get_type(void) G_GNUC_CONST;
GstVaapiID GstVaapiID
gst_vaapi_value_get_id(const GValue *value); gst_vaapi_value_get_id(const GValue *value);

View file

@ -83,7 +83,7 @@ struct _GstVaapiVideoBufferClass {
}; };
GType GType
gst_vaapi_video_buffer_get_type(void); gst_vaapi_video_buffer_get_type(void) G_GNUC_CONST;
GstBuffer * GstBuffer *
gst_vaapi_video_buffer_new(GstVaapiDisplay *display); gst_vaapi_video_buffer_new(GstVaapiDisplay *display);

View file

@ -78,7 +78,7 @@ struct _GstVaapiVideoBufferGLXClass {
GstVaapiVideoBufferClass parent_class; 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 (GstVaapiDisplayGLX * display);
GstBuffer *gst_vaapi_video_buffer_glx_new_from_pool (GstVaapiVideoPool * pool); GstBuffer *gst_vaapi_video_buffer_glx_new_from_pool (GstVaapiVideoPool * pool);
GstBuffer *gst_vaapi_video_buffer_glx_new_from_buffer (GstBuffer * buffer); GstBuffer *gst_vaapi_video_buffer_glx_new_from_buffer (GstBuffer * buffer);

View file

@ -61,7 +61,7 @@ struct _GstVaapiVideoConverterGLXClass {
GObjectClass parent_class; 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, GstSurfaceConverter *gst_vaapi_video_converter_glx_new (GstSurfaceBuffer *buffer,
const gchar *type, const gchar *type,

View file

@ -86,7 +86,7 @@ struct _GstVaapiVideoPoolClass {
}; };
GType GType
gst_vaapi_video_pool_get_type(void); gst_vaapi_video_pool_get_type(void) G_GNUC_CONST;
GstVaapiDisplay * GstVaapiDisplay *
gst_vaapi_video_pool_get_display(GstVaapiVideoPool *pool); gst_vaapi_video_pool_get_display(GstVaapiVideoPool *pool);

View file

@ -61,7 +61,7 @@ struct _GstVaapiVideoSinkInterface {
}; };
GType GType
gst_vaapi_video_sink_get_type(void); gst_vaapi_video_sink_get_type(void) G_GNUC_CONST;
GstVaapiDisplay * GstVaapiDisplay *
gst_vaapi_video_sink_get_display(GstVaapiVideoSink *sink); gst_vaapi_video_sink_get_display(GstVaapiVideoSink *sink);

View file

@ -104,7 +104,7 @@ struct _GstVaapiWindowClass {
}; };
GType GType
gst_vaapi_window_get_type(void); gst_vaapi_window_get_type(void) G_GNUC_CONST;
GstVaapiDisplay * GstVaapiDisplay *
gst_vaapi_window_get_display(GstVaapiWindow *window); gst_vaapi_window_get_display(GstVaapiWindow *window);

View file

@ -80,7 +80,7 @@ struct _GstVaapiWindowGLXClass {
}; };
GType GType
gst_vaapi_window_glx_get_type(void); gst_vaapi_window_glx_get_type(void) G_GNUC_CONST;
GstVaapiWindow * GstVaapiWindow *
gst_vaapi_window_glx_new(GstVaapiDisplay *display, guint width, guint height); gst_vaapi_window_glx_new(GstVaapiDisplay *display, guint width, guint height);

View file

@ -95,7 +95,7 @@ struct _GstVaapiWindowX11Class {
}; };
GType GType
gst_vaapi_window_x11_get_type(void); gst_vaapi_window_x11_get_type(void) G_GNUC_CONST;
GstVaapiWindow * GstVaapiWindow *
gst_vaapi_window_x11_new(GstVaapiDisplay *display, guint width, guint height); gst_vaapi_window_x11_new(GstVaapiDisplay *display, guint width, guint height);