diff options
author | Hyunjun Ko <zzoon@igalia.com> | 2018-02-13 13:48:32 -0900 |
---|---|---|
committer | Sreerenj Balachandran <sreerenj.balachandran@intel.com> | 2018-02-13 13:48:32 -0900 |
commit | 580a52ec4971c70f90df088f5c0b3fff9be3c639 (patch) | |
tree | 24bc580679296b4ec97abbd22bda33f22dffb13a /sys/msdk/msdk.h | |
parent | 2542b2d34da53f44b259780acba19907aab3e04d (diff) | |
download | gstreamer-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.h | 6 |
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__ */ |