diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-07-24 14:09:09 +0200 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-07-24 15:57:57 +0200 |
commit | 809a85433d73fb1fbb0f452c85b7d2ec369c81ab (patch) | |
tree | 6129b3b2ebab34d35b1b978f4ebabbfc6fe7dba7 /gst-libs/gst | |
parent | e12ef8e6a24c75d4c4f70e9afd3457cbde5735b2 (diff) |
videobuffer: mark video buffer creation routines as deprecated.
The vdeo buffer creation routines shall actually be internal to gstreamer-vaapi
plugin elements. So deprecate any explicit creation routines that are not the
new *_typed_new*() variants.
Diffstat (limited to 'gst-libs/gst')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapivideobuffer.h | 11 | ||||
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapivideobuffer_glx.h | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapivideobuffer.h b/gst-libs/gst/vaapi/gstvaapivideobuffer.h index 04c5ba4f..118ea35e 100644 --- a/gst-libs/gst/vaapi/gstvaapivideobuffer.h +++ b/gst-libs/gst/vaapi/gstvaapivideobuffer.h @@ -85,24 +85,35 @@ struct _GstVaapiVideoBufferClass { GType gst_vaapi_video_buffer_get_type(void) G_GNUC_CONST; +/* Deprecated API. Client applications shall not use the following functions */ +#ifndef GST_VAAPI_DISABLE_DEPRECATED + +G_GNUC_DEPRECATED GstBuffer * gst_vaapi_video_buffer_new(GstVaapiDisplay *display); +G_GNUC_DEPRECATED GstBuffer * gst_vaapi_video_buffer_new_from_pool(GstVaapiVideoPool *pool); +G_GNUC_DEPRECATED GstBuffer * gst_vaapi_video_buffer_new_from_buffer(GstBuffer *buffer); +G_GNUC_DEPRECATED GstBuffer * gst_vaapi_video_buffer_new_with_image(GstVaapiImage *image); +G_GNUC_DEPRECATED GstBuffer * gst_vaapi_video_buffer_new_with_surface(GstVaapiSurface *surface); +G_GNUC_DEPRECATED GstBuffer * gst_vaapi_video_buffer_new_with_surface_proxy(GstVaapiSurfaceProxy *proxy); +#endif /* GST_VAAPI_DISABLE_DEPRECATED */ + GstVaapiDisplay * gst_vaapi_video_buffer_get_display(GstVaapiVideoBuffer *buffer); diff --git a/gst-libs/gst/vaapi/gstvaapivideobuffer_glx.h b/gst-libs/gst/vaapi/gstvaapivideobuffer_glx.h index af0a05c0..fe5e0c31 100644 --- a/gst-libs/gst/vaapi/gstvaapivideobuffer_glx.h +++ b/gst-libs/gst/vaapi/gstvaapivideobuffer_glx.h @@ -79,10 +79,21 @@ struct _GstVaapiVideoBufferGLXClass { }; GType gst_vaapi_video_buffer_glx_get_type (void) G_GNUC_CONST; + +/* Deprecated API. Client applications shall not use the following functions */ +#ifndef GST_VAAPI_DISABLE_DEPRECATED + +G_GNUC_DEPRECATED GstBuffer *gst_vaapi_video_buffer_glx_new (GstVaapiDisplayGLX * display); + +G_GNUC_DEPRECATED GstBuffer *gst_vaapi_video_buffer_glx_new_from_pool (GstVaapiVideoPool * pool); + +G_GNUC_DEPRECATED GstBuffer *gst_vaapi_video_buffer_glx_new_from_buffer (GstBuffer * buffer); +#endif /* GST_VAAPI_DISABLE_DEPRECATED */ + G_END_DECLS #endif /* GST_VAAPI_VIDEO_BUFFER_GLX_H */ |