diff options
author | gb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969> | 2010-04-29 12:52:27 +0000 |
---|---|---|
committer | Gwenole Beauchesne <gbeauchesne@splitted-desktop.com> | 2010-09-20 12:55:41 +0200 |
commit | a14711b93559c66e65011a089dcd28401e0840e6 (patch) | |
tree | c36ab4a99dce01a9a0dca647e8f3d97c50b33c4b /gst-libs/gst/vaapi/gstvaapisurfaceproxy.h | |
parent | 7a3934d01da8e3223010afa2a8d48fd3b0779edc (diff) |
Add timestamps to GstVaapiSurfaceProxy.
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapisurfaceproxy.h')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapisurfaceproxy.h | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapisurfaceproxy.h b/gst-libs/gst/vaapi/gstvaapisurfaceproxy.h index d19ef687..5e2d833f 100644 --- a/gst-libs/gst/vaapi/gstvaapisurfaceproxy.h +++ b/gst-libs/gst/vaapi/gstvaapisurfaceproxy.h @@ -51,7 +51,27 @@ G_BEGIN_DECLS GST_VAAPI_TYPE_SURFACE_PROXY, \ GstVaapiSurfaceProxyClass)) +/** + * GST_VAAPI_SURFACE_PROXY_SURFACE: + * @surface: a #GstVaapiSurfaceProxy + * + * Macro that evaluates to the #GstVaapiSurface of @surface. + */ +#define GST_VAAPI_SURFACE_PROXY_SURFACE(surface) \ + gst_vaapi_surface_proxy_get_surface(surface) + +/** + * GST_VAAPI_SURFACE_PROXY_TIMESTAMP: + * @surface: a #GstVaapiSurfaceProxy + * + * Macro that evaluates to the @surface timestamp, or + * %GST_CLOCK_TIME_NONE if none was set. + */ +#define GST_VAAPI_SURFACE_PROXY_TIMESTAMP(surface) \ + gst_vaapi_surface_proxy_get_timestamp(surface) + typedef struct _GstVaapiSurfaceProxy GstVaapiSurfaceProxy; +typedef struct _GstVaapiSurfaceProxyPrivate GstVaapiSurfaceProxyPrivate; typedef struct _GstVaapiSurfaceProxyClass GstVaapiSurfaceProxyClass; /** @@ -65,8 +85,7 @@ struct _GstVaapiSurfaceProxy { /*< private >*/ GObject parent_instance; - GstVaapiContext *context; - GstVaapiSurface *surface; + GstVaapiSurfaceProxyPrivate *priv; }; /** @@ -103,6 +122,15 @@ gst_vaapi_surface_proxy_set_surface( GstVaapiSurface *surface ); +GstClockTime +gst_vaapi_surface_proxy_get_timestamp(GstVaapiSurfaceProxy *proxy); + +void +gst_vaapi_surface_proxy_set_timestamp( + GstVaapiSurfaceProxy *proxy, + GstClockTime timestamp +); + G_END_DECLS #endif /* GST_VAAPI_SURFACE_PROXY_H */ |