summaryrefslogtreecommitdiff
path: root/sys/msdk/msdk.h
diff options
context:
space:
mode:
authorHyunjun Ko <zzoon@igalia.com>2018-02-13 13:48:32 -0900
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>2018-02-13 13:48:32 -0900
commit580a52ec4971c70f90df088f5c0b3fff9be3c639 (patch)
tree24bc580679296b4ec97abbd22bda33f22dffb13a /sys/msdk/msdk.h
parent2542b2d34da53f44b259780acba19907aab3e04d (diff)
downloadgstreamer-plugins-bad-580a52ec4971c70f90df088f5c0b3fff9be3c639.tar.gz
msdkenc: use bufferpool
1\ Proposes msdk bufferpool to upstream. - If upstream has accepted the proposed msdk bufferpool, encoder can get msdk surface from the buffer directly. - If not, encoder get msdk surface its own msdk bufferpool and copy from upstream's frame to the surface. 2\ Replace arrays of surfaces with msdk bufferpool. 3\ In case of using VPP, there should be another msdk bufferpool with NV12 info so that it could convert first and encode. Calls gst_msdk_set_frame_allocator and uses video memory only on linux. and uses system memory on Windows until d3d allocator is implemented. https://bugzilla.gnome.org/show_bug.cgi?id=790752
Diffstat (limited to 'sys/msdk/msdk.h')
-rw-r--r--sys/msdk/msdk.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/msdk/msdk.h b/sys/msdk/msdk.h
index 0f574c05b..a764f2cfe 100644
--- a/sys/msdk/msdk.h
+++ b/sys/msdk/msdk.h
@@ -69,6 +69,12 @@ gint gst_msdk_get_mfx_fourcc_from_format (GstVideoFormat format);
void gst_msdk_set_mfx_frame_info_from_video_info (mfxFrameInfo * mfx_info,
GstVideoInfo * info);
+gboolean
+gst_msdk_is_msdk_buffer (GstBuffer * buf);
+
+mfxFrameSurface1 *
+gst_msdk_get_surface_from_buffer (GstBuffer * buf);
+
G_END_DECLS
#endif /* __MSDK_H__ */