Separate Color processing from Main.

This commit is contained in:
2019-03-13 19:26:14 +00:00
parent 6f48e62c70
commit 16a88413c2
5 changed files with 418 additions and 394 deletions

View File

@@ -0,0 +1,18 @@
namespace DiscImageChef.VideoNow
{
public static class Swapping
{
public static byte[] SwapBuffer(byte[] buffer)
{
byte[] tmp = new byte[buffer.Length];
for(int i = 0; i < buffer.Length; i += 2)
{
tmp[i] = buffer[i + 1];
tmp[i + 1] = buffer[i];
}
return tmp;
}
}
}