Version: 2017.1

PhotoCaptureFrame.GetUnsafePointerToBuffer

Switch to Manual
public IntPtr GetUnsafePointerToBuffer ();

Returns

IntPtr A native COM pointer to the IMFMediaBuffer which contains the image data.

Description

Provides a COM pointer to the native IMFMediaBuffer that contains the image data.

This method provides very low level access to the native COM IMFMediaBuffer object. Therefore care and caution should be applied when using this method.
Please note that each time this method is invoked, an added reference will be applied to the IMFMediaBuffer COM pointer.
The caller is responsible for releasing each instance of the COM pointer.

For more information about the WinRT IMFMediaBuffer object, please visit https://msdn.microsoft.com/en-us/library/windows/desktop/ms696261(v=vs.85).aspx

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961