mirror of
https://github.com/aaru-dps/Aaru.VideoNow.git
synced 2025-12-16 19:24:36 +00:00
Separate Color processing from Main.
This commit is contained in:
18
DiscImageChef.VideoNow/Swapping.cs
Normal file
18
DiscImageChef.VideoNow/Swapping.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user