diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-09-11 10:59:10 +0200 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-09-11 17:08:47 +0200 |
commit | e4d27fba6b9f6accadb7a428bf8423a41c5392f7 (patch) | |
tree | ce22bc8b020da36500ea03c4e4873ed6613af4fc /gst-libs/gst/vaapi/gstvaapisurfaceproxy.h | |
parent | a10b3d30326bb1a8141c8a9c604d4e4c41c73f25 (diff) |
surfaceproxy: add "duration" property.
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapisurfaceproxy.h')
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapisurfaceproxy.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapisurfaceproxy.h b/gst-libs/gst/vaapi/gstvaapisurfaceproxy.h index 35e38f7c..ef333ba3 100644 --- a/gst-libs/gst/vaapi/gstvaapisurfaceproxy.h +++ b/gst-libs/gst/vaapi/gstvaapisurfaceproxy.h @@ -73,6 +73,16 @@ G_BEGIN_DECLS gst_vaapi_surface_proxy_get_timestamp(surface) /** + * GST_VAAPI_SURFACE_PROXY_DURATION: + * @surface: a #GstVaapiSurfaceProxy + * + * Macro that evaluates to the amount of time the @surface should be + * displayed, or %GST_CLOCK_TIME_NONE if none was set. + */ +#define GST_VAAPI_SURFACE_PROXY_DURATION(surface) \ + gst_vaapi_surface_proxy_get_duration(surface) + +/** * GST_VAAPI_SURFACE_PROXY_INTERLACED: * @surface: a #GstVaapiSurfaceProxy * @@ -152,6 +162,15 @@ gst_vaapi_surface_proxy_set_timestamp( GstClockTime timestamp ); +GstClockTime +gst_vaapi_surface_proxy_get_duration(GstVaapiSurfaceProxy *proxy); + +void +gst_vaapi_surface_proxy_set_duration( + GstVaapiSurfaceProxy *proxy, + GstClockTime duration +); + gboolean gst_vaapi_surface_proxy_get_interlaced(GstVaapiSurfaceProxy *proxy); |