コード例 #1
0
        public unsafe void UnlockFrame(IntPtr memid, mfxFrameData *ptr = null)
        {
            if (ptr == null)
            {
                ptr = &(((mfxFrameSurface1 *)memid)->Data);
            }

            mfxStatus sts;

            // fixed (mfxFrameData* p = &ptr)
            sts = VideoAccelerationSupportPInvoke.VideoAccelerationSupport_UnlockFrame(acceleratorHandle, memid, ptr);
            QuickSyncStatic.ThrowOnBadStatus(sts, "VideoAccelerationSupport_UnlockFrame");
        }
コード例 #2
0
 public static unsafe extern mfxStatus VideoAccelerationSupport_UnlockFrame(IntPtr handle, IntPtr memid, mfxFrameData *ptr);