mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
Add gst_vaapi_surface_get_size() helper.
This commit is contained in:
parent
8e72746f35
commit
5fa32d3cf4
2 changed files with 24 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue