Commit ecbf070f authored by Víctor Manuel Jáquez Leal's avatar Víctor Manuel Jáquez Leal Committed by GStreamer Merge Bot

libs: extend g_autoptr support

parent b1f85911
Pipeline #125232 waiting for manual action with stages
in 47 seconds
...@@ -142,9 +142,7 @@ gst_vaapi_decoder_check_status (GstVaapiDecoder * decoder); ...@@ -142,9 +142,7 @@ gst_vaapi_decoder_check_status (GstVaapiDecoder * decoder);
gboolean gboolean
gst_vaapi_decoder_update_caps (GstVaapiDecoder * decoder, GstCaps * caps); gst_vaapi_decoder_update_caps (GstVaapiDecoder * decoder, GstCaps * caps);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDecoder, gst_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDecoder, gst_object_unref)
#endif
G_END_DECLS G_END_DECLS
......
...@@ -77,6 +77,8 @@ void ...@@ -77,6 +77,8 @@ void
gst_vaapi_decoder_h264_set_baseline_as_constrained(GstVaapiDecoderH264 * decoder, gst_vaapi_decoder_h264_set_baseline_as_constrained(GstVaapiDecoderH264 * decoder,
gboolean baseline_as_constrained); gboolean baseline_as_constrained);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDecoderH264, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /* GST_VAAPI_DECODER_H264_H */ #endif /* GST_VAAPI_DECODER_H264_H */
...@@ -63,6 +63,8 @@ void ...@@ -63,6 +63,8 @@ void
gst_vaapi_decoder_h265_set_alignment (GstVaapiDecoderH265 *decoder, gst_vaapi_decoder_h265_set_alignment (GstVaapiDecoderH265 *decoder,
GstVaapiStreamAlignH265 alignment); GstVaapiStreamAlignH265 alignment);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDecoderH265, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /* GST_VAAPI_DECODER_H265_H */ #endif /* GST_VAAPI_DECODER_H265_H */
...@@ -43,6 +43,8 @@ gst_vaapi_decoder_jpeg_get_type (void) G_GNUC_CONST; ...@@ -43,6 +43,8 @@ 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);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDecoderJpeg, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /* GST_VAAPI_DECODER_JPEG_H */ #endif /* GST_VAAPI_DECODER_JPEG_H */
......
...@@ -43,6 +43,8 @@ gst_vaapi_decoder_mpeg2_get_type (void) G_GNUC_CONST; ...@@ -43,6 +43,8 @@ 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);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDecoderMpeg2, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /* GST_VAAPI_DECODER_MPEG2_H */ #endif /* GST_VAAPI_DECODER_MPEG2_H */
...@@ -42,6 +42,8 @@ gst_vaapi_decoder_mpeg4_get_type (void) G_GNUC_CONST; ...@@ -42,6 +42,8 @@ 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);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDecoderMpeg4, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /* GST_VAAPI_DECODER_MPEG4_H */ #endif /* GST_VAAPI_DECODER_MPEG4_H */
...@@ -42,6 +42,8 @@ gst_vaapi_decoder_vc1_get_type (void) G_GNUC_CONST; ...@@ -42,6 +42,8 @@ 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);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDecoderVC1, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /* GST_VAAPI_DECODER_VC1_H */ #endif /* GST_VAAPI_DECODER_VC1_H */
...@@ -43,6 +43,8 @@ gst_vaapi_decoder_vp8_get_type (void) G_GNUC_CONST; ...@@ -43,6 +43,8 @@ gst_vaapi_decoder_vp8_get_type (void) G_GNUC_CONST;
GstVaapiDecoder * GstVaapiDecoder *
gst_vaapi_decoder_vp8_new (GstVaapiDisplay * display, GstCaps * caps); gst_vaapi_decoder_vp8_new (GstVaapiDisplay * display, GstCaps * caps);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDecoderVp8, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /* GST_VAAPI_DECODER_VP8_H */ #endif /* GST_VAAPI_DECODER_VP8_H */
...@@ -42,6 +42,8 @@ gst_vaapi_decoder_vp9_get_type (void) G_GNUC_CONST; ...@@ -42,6 +42,8 @@ gst_vaapi_decoder_vp9_get_type (void) G_GNUC_CONST;
GstVaapiDecoder * GstVaapiDecoder *
gst_vaapi_decoder_vp9_new (GstVaapiDisplay * display, GstCaps * caps); gst_vaapi_decoder_vp9_new (GstVaapiDisplay * display, GstCaps * caps);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDecoderVp9, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /* GST_VAAPI_DECODER_VP9_H */ #endif /* GST_VAAPI_DECODER_VP9_H */
...@@ -284,9 +284,7 @@ gst_vaapi_display_reset_texture_map (GstVaapiDisplay * display); ...@@ -284,9 +284,7 @@ gst_vaapi_display_reset_texture_map (GstVaapiDisplay * display);
gboolean gboolean
gst_vaapi_display_has_driver_quirks (GstVaapiDisplay * display, guint quirks); gst_vaapi_display_has_driver_quirks (GstVaapiDisplay * display, guint quirks);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDisplay, gst_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDisplay, gst_object_unref)
#endif
G_END_DECLS G_END_DECLS
......
...@@ -49,6 +49,8 @@ gst_vaapi_display_drm_get_device_path (GstVaapiDisplayDRM * ...@@ -49,6 +49,8 @@ gst_vaapi_display_drm_get_device_path (GstVaapiDisplayDRM *
GType GType
gst_vaapi_display_drm_get_type (void) G_GNUC_CONST; gst_vaapi_display_drm_get_type (void) G_GNUC_CONST;
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDisplayDRM, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /* GST_VAAPI_DISPLAY_DRM_H */ #endif /* GST_VAAPI_DISPLAY_DRM_H */
...@@ -57,6 +57,8 @@ gst_vaapi_display_egl_set_current_display (GstVaapiDisplayEGL * display); ...@@ -57,6 +57,8 @@ gst_vaapi_display_egl_set_current_display (GstVaapiDisplayEGL * display);
GType GType
gst_vaapi_display_egl_get_type (void) G_GNUC_CONST; gst_vaapi_display_egl_get_type (void) G_GNUC_CONST;
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDisplayEGL, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /* GST_VAAPI_DISPLAY_EGL_H */ #endif /* GST_VAAPI_DISPLAY_EGL_H */
...@@ -44,6 +44,8 @@ gst_vaapi_display_glx_new_with_display (Display * x11_display); ...@@ -44,6 +44,8 @@ gst_vaapi_display_glx_new_with_display (Display * x11_display);
GType GType
gst_vaapi_display_glx_get_type (void) G_GNUC_CONST; gst_vaapi_display_glx_get_type (void) G_GNUC_CONST;
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDisplayGLX, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /* GST_VAAPI_DISPLAY_GLX_H */ #endif /* GST_VAAPI_DISPLAY_GLX_H */
...@@ -51,6 +51,8 @@ gst_vaapi_display_wayland_get_display (GstVaapiDisplayWayland * display); ...@@ -51,6 +51,8 @@ gst_vaapi_display_wayland_get_display (GstVaapiDisplayWayland * display);
GType GType
gst_vaapi_display_wayland_get_type (void) G_GNUC_CONST; gst_vaapi_display_wayland_get_type (void) G_GNUC_CONST;
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDisplayWayland, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /* GST_VAAPI_DISPLAY_WAYLAND_H */ #endif /* GST_VAAPI_DISPLAY_WAYLAND_H */
...@@ -58,6 +58,8 @@ gst_vaapi_display_x11_set_synchronous (GstVaapiDisplayX11 * display, ...@@ -58,6 +58,8 @@ gst_vaapi_display_x11_set_synchronous (GstVaapiDisplayX11 * display,
GType GType
gst_vaapi_display_x11_get_type (void) G_GNUC_CONST; gst_vaapi_display_x11_get_type (void) G_GNUC_CONST;
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiDisplayX11, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /* GST_VAAPI_DISPLAY_X11_H */ #endif /* GST_VAAPI_DISPLAY_X11_H */
...@@ -195,6 +195,8 @@ gst_vaapi_encoder_get_entrypoint (GstVaapiEncoder * encoder, ...@@ -195,6 +195,8 @@ gst_vaapi_encoder_get_entrypoint (GstVaapiEncoder * encoder,
GArray * GArray *
gst_vaapi_encoder_get_available_profiles (GstVaapiEncoder * encoder); gst_vaapi_encoder_get_available_profiles (GstVaapiEncoder * encoder);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiEncoder, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /* GST_VAAPI_ENCODER_H */ #endif /* GST_VAAPI_ENCODER_H */
...@@ -56,6 +56,8 @@ gst_vaapi_encoder_h264_get_profile_and_level (GstVaapiEncoderH264 * encoder, ...@@ -56,6 +56,8 @@ gst_vaapi_encoder_h264_get_profile_and_level (GstVaapiEncoderH264 * encoder,
gboolean gboolean
gst_vaapi_encoder_h264_supports_avc (GstVaapiEncoderH264 * encoder); gst_vaapi_encoder_h264_supports_avc (GstVaapiEncoderH264 * encoder);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiEncoderH264, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /*GST_VAAPI_ENCODER_H264_H */ #endif /*GST_VAAPI_ENCODER_H264_H */
...@@ -52,6 +52,8 @@ gboolean ...@@ -52,6 +52,8 @@ gboolean
gst_vaapi_encoder_h265_get_profile_tier_level (GstVaapiEncoderH265 * encoder, gst_vaapi_encoder_h265_get_profile_tier_level (GstVaapiEncoderH265 * encoder,
GstVaapiProfile * out_profile_ptr, GstVaapiTierH265 *out_tier_ptr, GstVaapiLevelH265 * out_level_ptr); GstVaapiProfile * out_profile_ptr, GstVaapiTierH265 *out_tier_ptr, GstVaapiLevelH265 * out_level_ptr);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiEncoderH265, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /*GST_VAAPI_ENCODER_H265_H */ #endif /*GST_VAAPI_ENCODER_H265_H */
...@@ -43,5 +43,8 @@ gst_vaapi_encoder_jpeg_get_type (void) G_GNUC_CONST; ...@@ -43,5 +43,8 @@ gst_vaapi_encoder_jpeg_get_type (void) G_GNUC_CONST;
GstVaapiEncoder * GstVaapiEncoder *
gst_vaapi_encoder_jpeg_new (GstVaapiDisplay * display); gst_vaapi_encoder_jpeg_new (GstVaapiDisplay * display);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiEncoderJpeg, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /*GST_VAAPI_ENCODER_JPEG_H */ #endif /*GST_VAAPI_ENCODER_JPEG_H */
...@@ -44,6 +44,8 @@ gst_vaapi_encoder_mpeg2_get_type (void) G_GNUC_CONST; ...@@ -44,6 +44,8 @@ gst_vaapi_encoder_mpeg2_get_type (void) G_GNUC_CONST;
GstVaapiEncoder * GstVaapiEncoder *
gst_vaapi_encoder_mpeg2_new (GstVaapiDisplay * display); gst_vaapi_encoder_mpeg2_new (GstVaapiDisplay * display);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiEncoderMpeg2, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /* GST_VAAPI_ENCODER_MPEG2_H */ #endif /* GST_VAAPI_ENCODER_MPEG2_H */
...@@ -43,5 +43,7 @@ gst_vaapi_encoder_vp8_get_type (void) G_GNUC_CONST; ...@@ -43,5 +43,7 @@ gst_vaapi_encoder_vp8_get_type (void) G_GNUC_CONST;
GstVaapiEncoder * GstVaapiEncoder *
gst_vaapi_encoder_vp8_new (GstVaapiDisplay * display); gst_vaapi_encoder_vp8_new (GstVaapiDisplay * display);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiEncoderVP8, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /*GST_VAAPI_ENCODER_VP8_H */ #endif /*GST_VAAPI_ENCODER_VP8_H */
...@@ -43,5 +43,7 @@ gst_vaapi_encoder_vp9_get_type (void) G_GNUC_CONST; ...@@ -43,5 +43,7 @@ gst_vaapi_encoder_vp9_get_type (void) G_GNUC_CONST;
GstVaapiEncoder * GstVaapiEncoder *
gst_vaapi_encoder_vp9_new (GstVaapiDisplay * display); gst_vaapi_encoder_vp9_new (GstVaapiDisplay * display);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiEncoderVP9, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /*GST_VAAPI_ENCODER_VP9_H */ #endif /*GST_VAAPI_ENCODER_VP9_H */
...@@ -308,8 +308,6 @@ gboolean ...@@ -308,8 +308,6 @@ gboolean
gst_vaapi_filter_set_colorimetry (GstVaapiFilter * filter, gst_vaapi_filter_set_colorimetry (GstVaapiFilter * filter,
GstVideoColorimetry * input, GstVideoColorimetry * output); GstVideoColorimetry * input, GstVideoColorimetry * output);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiFilter, gst_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiFilter, gst_object_unref)
#endif
#endif /* GST_VAAPI_FILTER_H */ #endif /* GST_VAAPI_FILTER_H */
...@@ -53,6 +53,8 @@ gst_vaapi_texture_map_reset (GstVaapiTextureMap * map); ...@@ -53,6 +53,8 @@ gst_vaapi_texture_map_reset (GstVaapiTextureMap * map);
GType GType
gst_vaapi_texture_map_get_type (void) G_GNUC_CONST; gst_vaapi_texture_map_get_type (void) G_GNUC_CONST;
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiTextureMap, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /* GST_VAAPI_TEXTURE_MAP_H */ #endif /* GST_VAAPI_TEXTURE_MAP_H */
...@@ -99,9 +99,7 @@ gst_vaapi_window_unblock (GstVaapiWindow * window); ...@@ -99,9 +99,7 @@ gst_vaapi_window_unblock (GstVaapiWindow * window);
gboolean gboolean
gst_vaapi_window_unblock_cancel (GstVaapiWindow * window); gst_vaapi_window_unblock_cancel (GstVaapiWindow * window);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiWindow, gst_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiWindow, gst_object_unref)
#endif
G_END_DECLS G_END_DECLS
......
...@@ -43,9 +43,7 @@ gst_vaapi_window_drm_get_type (void) G_GNUC_CONST; ...@@ -43,9 +43,7 @@ gst_vaapi_window_drm_get_type (void) G_GNUC_CONST;
GstVaapiWindow * GstVaapiWindow *
gst_vaapi_window_drm_new (GstVaapiDisplay * display, guint width, guint height); gst_vaapi_window_drm_new (GstVaapiDisplay * display, guint width, guint height);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiWindowDRM, gst_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiWindowDRM, gst_object_unref)
#endif
G_END_DECLS G_END_DECLS
......
...@@ -43,9 +43,7 @@ gst_vaapi_window_egl_get_type (void) G_GNUC_CONST; ...@@ -43,9 +43,7 @@ gst_vaapi_window_egl_get_type (void) G_GNUC_CONST;
GstVaapiWindow * GstVaapiWindow *
gst_vaapi_window_egl_new (GstVaapiDisplay * display, guint width, guint height); gst_vaapi_window_egl_new (GstVaapiDisplay * display, guint width, guint height);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiWindowEGL, gst_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiWindowEGL, gst_object_unref)
#endif
G_END_DECLS G_END_DECLS
......
...@@ -68,9 +68,7 @@ gst_vaapi_window_glx_put_texture (GstVaapiWindowGLX * window, ...@@ -68,9 +68,7 @@ gst_vaapi_window_glx_put_texture (GstVaapiWindowGLX * window,
GstVaapiTexture * texture, const GstVaapiRectangle * src_rect, GstVaapiTexture * texture, const GstVaapiRectangle * src_rect,
const GstVaapiRectangle * dst_rect); const GstVaapiRectangle * dst_rect);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiWindowGLX, gst_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiWindowGLX, gst_object_unref)
#endif
G_END_DECLS G_END_DECLS
......
...@@ -45,9 +45,7 @@ GstVaapiWindow * ...@@ -45,9 +45,7 @@ GstVaapiWindow *
gst_vaapi_window_wayland_new (GstVaapiDisplay * display, guint width, gst_vaapi_window_wayland_new (GstVaapiDisplay * display, guint width,
guint height); guint height);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiWindowWayland, gst_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiWindowWayland, gst_object_unref)
#endif
G_END_DECLS G_END_DECLS
......
...@@ -64,6 +64,8 @@ gst_vaapi_window_x11_get_xid (GstVaapiWindowX11 * window); ...@@ -64,6 +64,8 @@ gst_vaapi_window_x11_get_xid (GstVaapiWindowX11 * window);
gboolean gboolean
gst_vaapi_window_x11_is_foreign_xid (GstVaapiWindowX11 * window); gst_vaapi_window_x11_is_foreign_xid (GstVaapiWindowX11 * window);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVaapiWindowX11, gst_object_unref)
G_END_DECLS G_END_DECLS
#endif /* GST_VAAPI_WINDOW_X11_H */ #endif /* GST_VAAPI_WINDOW_X11_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment