Add gst_vaapi_surface_get_size() helper.

This commit is contained in:
gb 2010-03-12 17:39:11 +00:00
parent 8e72746f35
commit 5fa32d3cf4
2 changed files with 24 additions and 0 deletions

View file

@ -319,3 +319,20 @@ gst_vaapi_surface_get_height(GstVaapiSurface *surface)
return surface->priv->height;
}
void
gst_vaapi_surface_get_size(
GstVaapiSurface *surface,
guint *pwidth,
guint *pheight
)
{
g_return_if_fail(GST_VAAPI_IS_SURFACE(surface));
if (pwidth)
*pwidth = gst_vaapi_surface_get_width(surface);
if (pheight)
*pheight = gst_vaapi_surface_get_height(surface);
}

View file

@ -99,6 +99,13 @@ gst_vaapi_surface_get_width(GstVaapiSurface *surface);
guint
gst_vaapi_surface_get_height(GstVaapiSurface *surface);
void
gst_vaapi_surface_get_size(
GstVaapiSurface *surface,
guint *pwidth,
guint *pheight
);
G_END_DECLS
#endif /* GST_VAAPI_SURFACE_H */