Merge branch 'reduce_memcopy'

This commit is contained in:
copecone committed 2026-06-01 12:42:47 +09:00
commit 54a4d2e7bb
4 files changed
+132 -32

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;