SHA256
Reduce Memory Copy When Frame Capture Success
This commit is contained in:
1 parent
036216c006
commit
6bd4a8975e
3 files changed
+32
-11
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