Add new gst_vaapi_video_buffer_new() helper function that allocates a video
buffer from a GstVaapiVideoMeta. Also remove obsolete and useless function
gst_vaapi_video_buffer_get_meta().
}
GstBuffer *
+gst_vaapi_video_buffer_new(GstVaapiVideoMeta *meta)
+{
+ g_return_val_if_fail(meta != NULL, NULL);
+
+ return new_vbuffer(gst_vaapi_video_meta_ref(meta));
+}
+
+GstBuffer *
gst_vaapi_video_buffer_new_from_pool(GstVaapiVideoPool *pool)
{
return new_vbuffer(gst_vaapi_video_meta_new_from_pool(pool));
{
return new_vbuffer(gst_vaapi_video_meta_new_with_surface_proxy(proxy));
}
-
-GstVaapiVideoMeta *
-gst_vaapi_video_buffer_get_meta(GstVaapiVideoBuffer *buffer)
-{
- g_return_val_if_fail(GST_VAAPI_IS_VIDEO_BUFFER(buffer), NULL);
-
- return buffer->meta;
-}
G_GNUC_INTERNAL
GstBuffer *
+gst_vaapi_video_buffer_new(GstVaapiVideoMeta *meta);
+
+G_GNUC_INTERNAL
+GstBuffer *
gst_vaapi_video_buffer_new_from_pool(GstVaapiVideoPool *pool);
G_GNUC_INTERNAL
GstBuffer *
gst_vaapi_video_buffer_new_with_surface_proxy(GstVaapiSurfaceProxy *proxy);
-G_GNUC_INTERNAL
-GstVaapiVideoMeta *
-gst_vaapi_video_buffer_get_meta(GstVaapiVideoBuffer *buffer);
-
G_END_DECLS
#endif /* GST_VAAPI_VIDEO_BUFFER_H */