mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
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:
parent
30024b3f8e
commit
dba174906a
32 changed files with 37 additions and 37 deletions
|
@ -110,7 +110,7 @@ struct _GstVaapiCodecObjectClass {
|
|||
};
|
||||
|
||||
GType
|
||||
gst_vaapi_codec_object_get_type(void)
|
||||
gst_vaapi_codec_object_get_type(void) G_GNUC_CONST
|
||||
attribute_hidden;
|
||||
|
||||
GstVaapiCodecObject *
|
||||
|
@ -185,7 +185,7 @@ struct _GstVaapiIqMatrixClass {
|
|||
};
|
||||
|
||||
GType
|
||||
gst_vaapi_iq_matrix_get_type(void)
|
||||
gst_vaapi_iq_matrix_get_type(void) G_GNUC_CONST
|
||||
attribute_hidden;
|
||||
|
||||
GstVaapiIqMatrix *
|
||||
|
@ -251,7 +251,7 @@ struct _GstVaapiBitPlaneClass {
|
|||
};
|
||||
|
||||
GType
|
||||
gst_vaapi_bitplane_get_type(void)
|
||||
gst_vaapi_bitplane_get_type(void) G_GNUC_CONST
|
||||
attribute_hidden;
|
||||
|
||||
GstVaapiBitPlane *
|
||||
|
@ -314,7 +314,7 @@ struct _GstVaapiHuffmanTableClass {
|
|||
};
|
||||
|
||||
GType
|
||||
gst_vaapi_huffman_table_get_type(void)
|
||||
gst_vaapi_huffman_table_get_type(void) G_GNUC_CONST
|
||||
attribute_hidden;
|
||||
|
||||
GstVaapiHuffmanTable *
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 *
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -77,7 +77,7 @@ struct _GstVaapiDecoderJpegClass {
|
|||
};
|
||||
|
||||
GType
|
||||
gst_vaapi_decoder_jpeg_get_type(void);
|
||||
gst_vaapi_decoder_jpeg_get_type(void) G_GNUC_CONST;
|
||||
|
||||
GstVaapiDecoder *
|
||||
gst_vaapi_decoder_jpeg_new(GstVaapiDisplay *display, GstCaps *caps);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -164,7 +164,7 @@ struct _GstVaapiPictureClass {
|
|||
};
|
||||
|
||||
GType
|
||||
gst_vaapi_picture_get_type(void)
|
||||
gst_vaapi_picture_get_type(void) G_GNUC_CONST
|
||||
attribute_hidden;
|
||||
|
||||
GstVaapiPicture *
|
||||
|
@ -263,7 +263,7 @@ struct _GstVaapiSliceClass {
|
|||
};
|
||||
|
||||
GType
|
||||
gst_vaapi_slice_get_type(void)
|
||||
gst_vaapi_slice_get_type(void) G_GNUC_CONST
|
||||
attribute_hidden;
|
||||
|
||||
GstVaapiSlice *
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue