SHA256
Remove Dead Codes
This commit is contained in:
1 parent
ec06f99603
commit
2ea5deaba1
6 files changed
-34
No files matched your search
@@ -58,14 +58,6 @@ namespace ADOFAIRenderer.Util.FFmpeg
|
||||
return array;
|
||||
}
|
||||
|
||||
/*public static byte[] RentRawBytes<T>(NativeArray<T> arr) where T : struct
|
||||
{
|
||||
var val = new NativeSlice<T>(arr).SliceConvert<byte>();
|
||||
var array = ArrayPool<byte>.Shared.Rent(val.Length);
|
||||
val.CopyTo(array);
|
||||
return array;
|
||||
}*/
|
||||
|
||||
protected static byte[] ToRawBytes<T>(NativeArray<T> arr) where T : struct
|
||||
{
|
||||
var val = new NativeSlice<T>(arr).SliceConvert<byte>();
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.IO;
|
||||
using Unity.Collections;
|
||||
|
||||
namespace ADOFAIRenderer.Util.FFmpeg
|
||||
{
|
||||
@@ -56,12 +55,6 @@ namespace ADOFAIRenderer.Util.FFmpeg
|
||||
VideoCodec = codec;
|
||||
}
|
||||
|
||||
public void SendData(NativeArray<byte> source)
|
||||
{
|
||||
var buffer = ToRawBytes(source);
|
||||
SendDataFromBuffer(buffer);
|
||||
}
|
||||
|
||||
public void Start(string path, float bitrate)
|
||||
{
|
||||
if (File.Exists(path))
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace ADOFAIRenderer.Util
|
||||
{
|
||||
public class WaitForFrames : CustomYieldInstruction
|
||||
{
|
||||
private readonly int _targetFrameCount;
|
||||
|
||||
public WaitForFrames(int numberOfFrames)
|
||||
{
|
||||
_targetFrameCount = Time.frameCount + numberOfFrames;
|
||||
}
|
||||
|
||||
public override bool keepWaiting => Time.frameCount < _targetFrameCount;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user