summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vaapi/gstvaapisurfacepool.h
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-05-03 11:01:12 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-05-07 17:51:27 +0200
commit2e6ff64a34801a3aaf1e0596e93a1f0b91f6367e (patch)
tree894674c8d4ffdace331ed0ca7254c0be2b4a2dac /gst-libs/gst/vaapi/gstvaapisurfacepool.h
parent98c70689370a1cdfd5dfe9fd52a5c51367babb3a (diff)
libs: use GstVaapiMiniObject for video object pools.
Port GstVaapiVideoPool, GstVaapiSurfacePool and GstVaapiImagePool to GstVaapiMiniObject. Drop gst_vaapi_video_pool_get_caps() since it was no longer used for a long time. Make object allocators static, i.e. local to the shared library.
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapisurfacepool.h')
-rw-r--r--gst-libs/gst/vaapi/gstvaapisurfacepool.h51
1 files changed, 3 insertions, 48 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapisurfacepool.h b/gst-libs/gst/vaapi/gstvaapisurfacepool.h
index aff88ca8..635af47d 100644
--- a/gst-libs/gst/vaapi/gstvaapisurfacepool.h
+++ b/gst-libs/gst/vaapi/gstvaapisurfacepool.h
@@ -28,58 +28,13 @@
G_BEGIN_DECLS
-#define GST_VAAPI_TYPE_SURFACE_POOL \
- (gst_vaapi_surface_pool_get_type())
-
-#define GST_VAAPI_SURFACE_POOL(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST((obj), \
- GST_VAAPI_TYPE_SURFACE_POOL, \
- GstVaapiSurfacePool))
-
-#define GST_VAAPI_SURFACE_POOL_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_CAST((klass), \
- GST_VAAPI_TYPE_SURFACE_POOL, \
- GstVaapiSurfacePoolClass))
+#define GST_VAAPI_SURFACE_POOL(obj) \
+ ((GstVaapiSurfacePool *)(obj))
#define GST_VAAPI_IS_SURFACE_POOL(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_VAAPI_TYPE_SURFACE_POOL))
-
-#define GST_VAAPI_IS_SURFACE_POOL_CLASS(klass) \
- (G_TYPE_CHECK_CLASS_TYPE((klass), GST_VAAPI_TYPE_SURFACE_POOL))
-
-#define GST_VAAPI_SURFACE_POOL_GET_CLASS(obj) \
- (G_TYPE_INSTANCE_GET_CLASS((obj), \
- GST_VAAPI_TYPE_SURFACE_POOL, \
- GstVaapiSurfacePoolClass))
+ ((obj) != NULL)
typedef struct _GstVaapiSurfacePool GstVaapiSurfacePool;
-typedef struct _GstVaapiSurfacePoolPrivate GstVaapiSurfacePoolPrivate;
-typedef struct _GstVaapiSurfacePoolClass GstVaapiSurfacePoolClass;
-
-/**
- * GstVaapiSurfacePool:
- *
- * A pool of lazily allocated #GstVaapiSurface objects.
- */
-struct _GstVaapiSurfacePool {
- /*< private >*/
- GstVaapiVideoPool parent_instance;
-
- GstVaapiSurfacePoolPrivate *priv;
-};
-
-/**
- * GstVaapiSurfacePoolClass:
- *
- * A pool of lazily allocated #GstVaapiSurface objects.
- */
-struct _GstVaapiSurfacePoolClass {
- /*< private >*/
- GstVaapiVideoPoolClass parent_class;
-};
-
-GType
-gst_vaapi_surface_pool_get_type(void) G_GNUC_CONST;
GstVaapiVideoPool *
gst_vaapi_surface_pool_new(GstVaapiDisplay *display, GstCaps *caps);