added files from limelight from android

This commit is contained in:
Diego Waxemberg
2013-12-03 23:53:12 -05:00
parent e4894b71f4
commit 2eb1035286
41 changed files with 5799 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
package com.limelight.nvstream.av;
public class AvByteBufferDescriptor {
public byte[] data;
public int offset;
public int length;
public AvByteBufferDescriptor(byte[] data, int offset, int length)
{
this.data = data;
this.offset = offset;
this.length = length;
}
public AvByteBufferDescriptor(AvByteBufferDescriptor desc)
{
this.data = desc.data;
this.offset = desc.offset;
this.length = desc.length;
}
public void reinitialize(byte[] data, int offset, int length)
{
this.data = data;
this.offset = offset;
this.length = length;
}
public void print()
{
print(offset, length);
}
public void print(int length)
{
print(this.offset, length);
}
public void print(int offset, int length)
{
for (int i = offset; i < offset+length; i++) {
System.out.printf("%d: %02x \n", i, data[i]);
}
System.out.println();
}
}