From: Gwenole Beauchesne Date: Fri, 26 Jul 2013 11:57:35 +0000 (+0200) Subject: libs: drop some public APIs. X-Git-Tag: 0.5.6~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=d8ffc2c150fd52731a2a6ec9061e91300779c467;p=platform%2Fupstream%2Fgstreamer-vaapi.git libs: drop some public APIs. Don't expose GstVaapiContext APIs and make them totally private to libgstvaapi core library. That API would also tend to disappear in a future revision. Likewise, don't expose GstVaapiDisplayCache API but keep symbols visible so that the various render backends could share a common display cache implementation in libgstvaapi. Try to clean-up the documentation from any stale entry too. --- diff --git a/docs/reference/libs/libs-docs.xml.in b/docs/reference/libs/libs-docs.xml.in index f8940f8..1f7f840 100644 --- a/docs/reference/libs/libs-docs.xml.in +++ b/docs/reference/libs/libs-docs.xml.in @@ -27,9 +27,6 @@ - - - diff --git a/docs/reference/libs/libs-sections.txt b/docs/reference/libs/libs-sections.txt index 3c1b03a..91796d9 100644 --- a/docs/reference/libs/libs-sections.txt +++ b/docs/reference/libs/libs-sections.txt @@ -305,24 +305,6 @@ gst_vaapi_texture_put_surface
-gstvaapicontext -GstVaapiContext -GstVaapiContext -gst_vaapi_context_new -gst_vaapi_context_reset -gst_vaapi_context_get_id -gst_vaapi_context_get_profile -gst_vaapi_context_set_profile -gst_vaapi_context_get_entrypoint -gst_vaapi_context_get_size -gst_vaapi_context_get_surface_proxy -gst_vaapi_context_get_surface_count -gst_vaapi_context_apply_composition - -GST_VAAPI_CONTEXT -
- -
gstvaapidecoder GstVaapiDecoderStatus GstVaapiDecoder diff --git a/gst-libs/gst/vaapi/Makefile.am b/gst-libs/gst/vaapi/Makefile.am index a8ccd6f..3e0a02a 100644 --- a/gst-libs/gst/vaapi/Makefile.am +++ b/gst-libs/gst/vaapi/Makefile.am @@ -74,14 +74,13 @@ libgstvaapi_source_c = \ $(NULL) libgstvaapi_source_h = \ - gstvaapicontext.h \ gstvaapidecoder.h \ gstvaapidecoder_h264.h \ gstvaapidecoder_mpeg2.h \ gstvaapidecoder_mpeg4.h \ gstvaapidecoder_vc1.h \ gstvaapidisplay.h \ - gstvaapidisplaycache.h \ + gstvaapifilter.h \ gstvaapiimage.h \ gstvaapiimagepool.h \ gstvaapiobject.h \ @@ -103,12 +102,14 @@ libgstvaapi_source_priv_h = \ gstcompat.h \ gstvaapicodec_objects.h \ gstvaapicompat.h \ + gstvaapicontext.h \ gstvaapidebug.h \ gstvaapidecoder_dpb.h \ gstvaapidecoder_objects.h \ gstvaapidecoder_priv.h \ gstvaapidecoder_unit.h \ gstvaapidisplay_priv.h \ + gstvaapidisplaycache.h \ gstvaapiimage_priv.h \ gstvaapiminiobject.h \ gstvaapiobject_priv.h \ diff --git a/gst-libs/gst/vaapi/gstvaapicontext.h b/gst-libs/gst/vaapi/gstvaapicontext.h index 2414e9d..3803314 100644 --- a/gst-libs/gst/vaapi/gstvaapicontext.h +++ b/gst-libs/gst/vaapi/gstvaapicontext.h @@ -52,6 +52,7 @@ struct _GstVaapiContextInfo { guint ref_frames; }; +G_GNUC_INTERNAL GstVaapiContext * gst_vaapi_context_new( GstVaapiDisplay *display, @@ -61,10 +62,12 @@ gst_vaapi_context_new( guint height ); +G_GNUC_INTERNAL GstVaapiContext * gst_vaapi_context_new_full(GstVaapiDisplay *display, const GstVaapiContextInfo *cip); +G_GNUC_INTERNAL gboolean gst_vaapi_context_reset( GstVaapiContext *context, @@ -74,22 +77,28 @@ gst_vaapi_context_reset( guint height ); +G_GNUC_INTERNAL gboolean gst_vaapi_context_reset_full(GstVaapiContext *context, const GstVaapiContextInfo *new_cip); +G_GNUC_INTERNAL GstVaapiID gst_vaapi_context_get_id(GstVaapiContext *context); +G_GNUC_INTERNAL GstVaapiProfile gst_vaapi_context_get_profile(GstVaapiContext *context); +G_GNUC_INTERNAL gboolean gst_vaapi_context_set_profile(GstVaapiContext *context, GstVaapiProfile profile); +G_GNUC_INTERNAL GstVaapiEntrypoint gst_vaapi_context_get_entrypoint(GstVaapiContext *context); +G_GNUC_INTERNAL void gst_vaapi_context_get_size( GstVaapiContext *context, @@ -97,12 +106,15 @@ gst_vaapi_context_get_size( guint *pheight ); +G_GNUC_INTERNAL GstVaapiSurfaceProxy * gst_vaapi_context_get_surface_proxy(GstVaapiContext *context); +G_GNUC_INTERNAL guint gst_vaapi_context_get_surface_count(GstVaapiContext *context); +G_GNUC_INTERNAL gboolean gst_vaapi_context_apply_composition( GstVaapiContext *context, diff --git a/gst-libs/gst/vaapi/gstvaapidisplaycache.h b/gst-libs/gst/vaapi/gstvaapidisplaycache.h index 72b6fac..4b0bb5e 100644 --- a/gst-libs/gst/vaapi/gstvaapidisplaycache.h +++ b/gst-libs/gst/vaapi/gstvaapidisplaycache.h @@ -26,21 +26,26 @@ typedef struct _GstVaapiDisplayCache GstVaapiDisplayCache; +G_GNUC_INTERNAL GstVaapiDisplayCache * gst_vaapi_display_cache_new(void); +G_GNUC_INTERNAL void gst_vaapi_display_cache_free(GstVaapiDisplayCache *cache); +G_GNUC_INTERNAL guint gst_vaapi_display_cache_get_size(GstVaapiDisplayCache *cache); +G_GNUC_INTERNAL gboolean gst_vaapi_display_cache_add( GstVaapiDisplayCache *cache, GstVaapiDisplayInfo *info ); +G_GNUC_INTERNAL void gst_vaapi_display_cache_remove( GstVaapiDisplayCache *cache,