Reduce Memory Copy When Frame Capture Success

This commit is contained in:
copecone committed 2026-06-01 11:59:39 +09:00
1 parent 036216c006
commit 6bd4a8975e
3 files changed
+32 -11

No files matched your search

+7
View File
@@ -44,6 +44,13 @@ namespace ADOFAIRenderer.Util.FFmpeg
_inputStream.Flush();
}
public void SendDataFromNativeBuffer(IntPtr nativePtr, int length)
{
if (_inputStream == null) return;
StreamUtil.WriteNativePtrToStream(nativePtr, length, _inputStream);
_inputStream.Flush();
}
public void Close()
{
if (_ffmpegProcess == null || _ffmpegProcess.HasExited || _inputStream == null) return;