SHA256
forked from ADOFAIEditorForum/ADOFAIRenderer
Merge branch 'reduce_memcopy'
This commit is contained in:
commit
54a4d2e7bb
4 files changed
+132
-32
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user