Common binary methods. More...
Public Member Functions | |
Binary () | |
Static Public Member Functions | |
static byte[] | bitStringToBytes (String bitString) |
Converts a bit-string to bytes. More... | |
static byte[] | bitStringToBytes (String bitString, fm.liveswitch.IntegerHolder numberOfUnusedBits) |
Converts a bit-string to bytes. More... | |
static byte[] | bitStringToBytes (String bitString, boolean padLeft) |
Converts a bit-string to bytes. More... | |
static byte[] | bitStringToBytes (String bitString, boolean padLeft, fm.liveswitch.IntegerHolder numberOfUnusedBits) |
Converts a bit-string to bytes. More... | |
static String | bytesToBitString (byte[] bytes) |
Converts bytes to a bit-string. More... | |
static String | bytesToBitString (byte[] bytes, int offset, int length) |
Converts bytes to a bit-string. More... | |
static String | bytesToBitString (byte[] bytes, int offset, int length, int numberOfUnusedBits) |
Converts bytes to a bit-string. More... | |
static String | bytesToBitString (byte[] bytes, int offset, int length, int numberOfUnusedBits, boolean trimLeft) |
Converts bytes to a bit-string. More... | |
static void | deinterleave (byte[] inputFrame, byte[] outputFrame) |
Deinterleaves a byte array i.e. More... | |
static void | deinterleave (byte[] inputFrame, byte[] outputFrame, int start, int length) |
Deinterleaves a byte array i.e. More... | |
static void | deinterleave (byte[] inputFrame, byte[] outputFrame, int start, int length, boolean reversePlanes) |
Deinterleaves a byte array. More... | |
static void | deinterleaveTransform (byte[] inputFrame, byte[] outputFrame, int width, int height, int stride, int rotation) |
Deinterleave and transform (rotate) a byte array containing two planes. More... | |
static void | deinterleaveTransform (byte[] inputFrame, byte[] outputFrame, int width, int height, int stride, int rotation, int start) |
Deinterleave and transform (rotate) a byte array containing two planes. More... | |
static void | deinterleaveTransform (byte[] inputFrame, byte[] outputFrame, int width, int height, int stride, int rotation, int start, boolean reversePlanes) |
Deinterleave and transform (rotate) a byte array containing two planes. More... | |
static boolean | fromBytes1 (byte[] input, int inputIndex, int bitOffset) |
Reads a 1-bit value from a byte array. More... | |
static int | fromBytes10 (byte[] input, int inputIndex, int bitOffset) |
Reads a 10-bit value from a byte array. More... | |
static int | fromBytes11 (byte[] input, int inputIndex, int bitOffset) |
Reads a 11-bit value from a byte array. More... | |
static int | fromBytes12 (byte[] input, int inputIndex, int bitOffset) |
Reads a 12-bit value from a byte array. More... | |
static int | fromBytes13 (byte[] input, int inputIndex, int bitOffset) |
Reads a 13-bit value from a byte array. More... | |
static int | fromBytes14 (byte[] input, int inputIndex, int bitOffset) |
Reads a 14-bit value from a byte array. More... | |
static int | fromBytes15 (byte[] input, int inputIndex, int bitOffset) |
Reads a 15-bit value from a byte array. More... | |
static int | fromBytes16 (byte[] input, int inputIndex, boolean littleEndian) |
Reads a 16-bit value from a byte array. More... | |
static int | fromBytes17 (byte[] input, int inputIndex, int bitOffset) |
Reads an 17-bit value from a byte array. More... | |
static int | fromBytes18 (byte[] input, int inputIndex, int bitOffset) |
Reads an 18-bit value from a byte array. More... | |
static int | fromBytes19 (byte[] input, int inputIndex, int bitOffset) |
Reads an 19-bit value from a byte array. More... | |
static int | fromBytes2 (byte[] input, int inputIndex, int bitOffset) |
Reads a 2-bit value from a byte array. More... | |
static int | fromBytes20 (byte[] input, int inputIndex, int bitOffset) |
Reads an 20-bit value from a byte array. More... | |
static int | fromBytes21 (byte[] input, int inputIndex, int bitOffset) |
Reads an 21-bit value from a byte array. More... | |
static int | fromBytes22 (byte[] input, int inputIndex, int bitOffset) |
Reads an 22-bit value from a byte array. More... | |
static int | fromBytes23 (byte[] input, int inputIndex, int bitOffset) |
Reads an 23-bit value from a byte array. More... | |
static int | fromBytes24 (byte[] input, int inputIndex, boolean littleEndian) |
Reads a 24-bit value from a byte array. More... | |
static int | fromBytes3 (byte[] input, int inputIndex, int bitOffset) |
Reads a 3-bit value from a byte array. More... | |
static long | fromBytes32 (byte[] input, int inputIndex, boolean littleEndian) |
Reads a 32-bit value from a byte array. More... | |
static int | fromBytes4 (byte[] input, int inputIndex, int bitOffset) |
Reads a 4-bit value from a byte array. More... | |
static long | fromBytes40 (byte[] input, int inputIndex, boolean littleEndian) |
Reads a 40-bit value from a byte array. More... | |
static long | fromBytes48 (byte[] input, int inputIndex, boolean littleEndian) |
Reads a 48-bit value from a byte array. More... | |
static int | fromBytes5 (byte[] input, int inputIndex, int bitOffset) |
Reads a 5-bit value from a byte array. More... | |
static long | fromBytes56 (byte[] input, int inputIndex, boolean littleEndian) |
Reads a 56-bit value from a byte array. More... | |
static int | fromBytes6 (byte[] input, int inputIndex, int bitOffset) |
Reads a 6-bit value from a byte array. More... | |
static long | fromBytes64 (byte[] input, int inputIndex, boolean littleEndian) |
Reads a 64-bit value from a byte array. More... | |
static int | fromBytes7 (byte[] input, int inputIndex, int bitOffset) |
Reads a 7-bit value from a byte array. More... | |
static int | fromBytes8 (byte[] input, int inputIndex) |
Reads an 8-bit value from a byte array. More... | |
static int | fromBytes9 (byte[] input, int inputIndex, int bitOffset) |
Reads a 9-bit value from a byte array. More... | |
static void | interleave (byte[] inputFrame, byte[] outputFrame) |
Interleaves a byte array i.e. More... | |
static void | interleave (byte[] inputFrame, byte[] outputFrame, int start, int length) |
Interleaves a byte array i.e. More... | |
static void | interleave (byte[] inputFrame, byte[] outputFrame, int start, int length, boolean reversePlanes) |
Interleaves a byte array i.e. More... | |
static void | interleaveTransform (byte[] inputFrame, byte[] outputFrame, int width, int height, int stride, int rotation) |
Interleave and transform (rotate) a byte array containing two planes. More... | |
static void | interleaveTransform (byte[] inputFrame, byte[] outputFrame, int width, int height, int stride, int rotation, int start) |
Interleave and transform (rotate) a byte array containing two planes. More... | |
static void | interleaveTransform (byte[] inputFrame, byte[] outputFrame, int width, int height, int stride, int rotation, int start, boolean reversePlanes) |
Interleave and transform (rotate) a byte array containing two planes. More... | |
static byte[] | toBytes1 (boolean value, int bitOffset) |
Converts a 1-bit value to a byte array. More... | |
static byte[] | toBytes1 (boolean value, int bitOffset, byte[] output, int outputIndex) |
Writes a 1-bit value to a byte array. More... | |
static byte[] | toBytes10 (int value, int bitOffset, boolean littleEndian) |
Converts a 10-bit value to a byte array. More... | |
static byte[] | toBytes10 (int value, int bitOffset, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 10-bit value to a byte array. More... | |
static byte[] | toBytes11 (int value, int bitOffset, boolean littleEndian) |
Converts a 11-bit value to a byte array. More... | |
static byte[] | toBytes11 (int value, int bitOffset, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 11-bit value to a byte array. More... | |
static byte[] | toBytes12 (int value, int bitOffset, boolean littleEndian) |
Converts a 12-bit value to a byte array. More... | |
static byte[] | toBytes12 (int value, int bitOffset, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 12-bit value to a byte array. More... | |
static byte[] | toBytes13 (int value, int bitOffset, boolean littleEndian) |
Converts a 13-bit value to a byte array. More... | |
static byte[] | toBytes13 (int value, int bitOffset, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 13-bit value to a byte array. More... | |
static byte[] | toBytes14 (int value, int bitOffset, boolean littleEndian) |
Converts a 14-bit value to a byte array. More... | |
static byte[] | toBytes14 (int value, int bitOffset, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 14-bit value to a byte array. More... | |
static byte[] | toBytes15 (int value, int bitOffset, boolean littleEndian) |
Converts a 15-bit value to a byte array. More... | |
static byte[] | toBytes15 (int value, int bitOffset, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 15-bit value to a byte array. More... | |
static byte[] | toBytes16 (int value, boolean littleEndian) |
Converts a 16-bit value to a byte array. More... | |
static byte[] | toBytes16 (int value, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 16-bit value to a byte array. More... | |
static byte[] | toBytes17 (int value, int bitOffset, boolean littleEndian) |
Converts a 17-bit value to a byte array. More... | |
static byte[] | toBytes17 (int value, int bitOffset, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 17-bit value to a byte array. More... | |
static byte[] | toBytes18 (int value, int bitOffset, boolean littleEndian) |
Converts an 18-bit value to a byte array. More... | |
static byte[] | toBytes18 (int value, int bitOffset, boolean littleEndian, byte[] output, int outputIndex) |
Writes an 18-bit value to a byte array. More... | |
static byte[] | toBytes19 (int value, int bitOffset, boolean littleEndian) |
Converts a 19-bit value to a byte array. More... | |
static byte[] | toBytes19 (int value, int bitOffset, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 19-bit value to a byte array. More... | |
static byte[] | toBytes2 (int value, int bitOffset) |
Converts a 2-bit value to a byte array. More... | |
static byte[] | toBytes2 (int value, int bitOffset, byte[] output, int outputIndex) |
Writes a 2-bit value to a byte array. More... | |
static byte[] | toBytes20 (int value, int bitOffset, boolean littleEndian) |
Converts a 20-bit value to a byte array. More... | |
static byte[] | toBytes20 (int value, int bitOffset, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 20-bit value to a byte array. More... | |
static byte[] | toBytes21 (int value, int bitOffset, boolean littleEndian) |
Converts a 21-bit value to a byte array. More... | |
static byte[] | toBytes21 (int value, int bitOffset, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 21-bit value to a byte array. More... | |
static byte[] | toBytes22 (int value, int bitOffset, boolean littleEndian) |
Converts a 22-bit value to a byte array. More... | |
static byte[] | toBytes22 (int value, int bitOffset, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 22-bit value to a byte array. More... | |
static byte[] | toBytes23 (int value, int bitOffset, boolean littleEndian) |
Converts a 23-bit value to a byte array. More... | |
static byte[] | toBytes23 (int value, int bitOffset, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 23-bit value to a byte array. More... | |
static byte[] | toBytes24 (int value, boolean littleEndian) |
Converts a 24-bit value to a byte array. More... | |
static byte[] | toBytes24 (int value, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 24-bit value to a byte array. More... | |
static byte[] | toBytes3 (int value, int bitOffset) |
Converts a 3-bit value to a byte array. More... | |
static byte[] | toBytes3 (int value, int bitOffset, byte[] output, int outputIndex) |
Writes a 3-bit value to a byte array. More... | |
static byte[] | toBytes32 (long value, boolean littleEndian) |
Converts a 32-bit value to a byte array. More... | |
static byte[] | toBytes32 (long value, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 32-bit value to a byte array. More... | |
static byte[] | toBytes4 (int value, int bitOffset) |
Converts a 4-bit value to a byte array. More... | |
static byte[] | toBytes4 (int value, int bitOffset, byte[] output, int outputIndex) |
Writes a 4-bit value to a byte array. More... | |
static byte[] | toBytes40 (long value, boolean littleEndian) |
Converts a 40-bit value to a byte array. More... | |
static byte[] | toBytes40 (long value, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 40-bit value to a byte array. More... | |
static byte[] | toBytes48 (long value, boolean littleEndian) |
Converts a 48-bit value to a byte array. More... | |
static byte[] | toBytes48 (long value, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 48-bit value to a byte array. More... | |
static byte[] | toBytes5 (int value, int bitOffset) |
Converts a 5-bit value to a byte array. More... | |
static byte[] | toBytes5 (int value, int bitOffset, byte[] output, int outputIndex) |
Writes a 5-bit value to a byte array. More... | |
static byte[] | toBytes56 (long value, boolean littleEndian) |
Converts a 56-bit value to a byte array. More... | |
static byte[] | toBytes56 (long value, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 56-bit value to a byte array. More... | |
static byte[] | toBytes6 (int value, int bitOffset) |
Converts a 6-bit value to a byte array. More... | |
static byte[] | toBytes6 (int value, int bitOffset, byte[] output, int outputIndex) |
Writes a 6-bit value to a byte array. More... | |
static byte[] | toBytes64 (long value, boolean littleEndian) |
Converts a 64-bit value to a byte array. More... | |
static byte[] | toBytes64 (long value, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 64-bit value to a byte array. More... | |
static byte[] | toBytes7 (int value, int bitOffset) |
Converts a 7-bit value to a byte array. More... | |
static byte[] | toBytes7 (int value, int bitOffset, byte[] output, int outputIndex) |
Writes a 7-bit value to a byte array. More... | |
static byte[] | toBytes8 (int value) |
Converts an 8-bit value to a byte array. More... | |
static byte[] | toBytes8 (int value, byte[] output, int outputIndex) |
Writes an 8-bit value to a byte array. More... | |
static byte[] | toBytes9 (int value, int bitOffset, boolean littleEndian) |
Converts a 9-bit value to a byte array. More... | |
static byte[] | toBytes9 (int value, int bitOffset, boolean littleEndian, byte[] output, int outputIndex) |
Writes a 9-bit value to a byte array. More... | |
static void | transform (byte[] inputFrame, byte[] outputFrame, int width, int height, int stride, int rotation) |
Transforms a byte containing a 2D plane (rotates 90, 180, 270) More... | |
static void | transform (byte[] inputFrame, byte[] outputFrame, int width, int height, int stride, int rotation, int inputStart, int outputStart) |
Transforms a byte containing a 2D plane (rotates 90, 180, 270) More... | |
static void | transform (byte[] inputFrame, byte[] outputFrame, int width, int height, int stride, int rotation, int inputStart, int outputStart, int chunkLength) |
Transforms a byte containing a 2D plane (rotates 90, 180, 270). More... | |
static void | transform (byte[] inputFrame, byte[] outputFrame, int width, int height, int stride, int rotation, int start) |
Transforms a byte containing a 2D plane (rotates 90, 180, 270) More... | |
static boolean | tryFromBytes1 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.BooleanHolder value) |
Tries to read a 1-bit value from a byte array. More... | |
static boolean | tryFromBytes10 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 10-bit value from a byte array. More... | |
static boolean | tryFromBytes11 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 11-bit value from a byte array. More... | |
static boolean | tryFromBytes12 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 12-bit value from a byte array. More... | |
static boolean | tryFromBytes13 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 13-bit value from a byte array. More... | |
static boolean | tryFromBytes14 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 14-bit value from a byte array. More... | |
static boolean | tryFromBytes15 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 15-bit value from a byte array. More... | |
static boolean | tryFromBytes16 (byte[] input, int inputIndex, boolean littleEndian, fm.liveswitch.IntegerHolder value) |
Tries to read a 16-bit value from a byte array. More... | |
static boolean | tryFromBytes17 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 17-bit value from a byte array. More... | |
static boolean | tryFromBytes18 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 18-bit value from a byte array. More... | |
static boolean | tryFromBytes19 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 19-bit value from a byte array. More... | |
static boolean | tryFromBytes2 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 2-bit value from a byte array. More... | |
static boolean | tryFromBytes20 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 20-bit value from a byte array. More... | |
static boolean | tryFromBytes21 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 21-bit value from a byte array. More... | |
static boolean | tryFromBytes22 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 22-bit value from a byte array. More... | |
static boolean | tryFromBytes23 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 23-bit value from a byte array. More... | |
static boolean | tryFromBytes24 (byte[] input, int inputIndex, boolean littleEndian, fm.liveswitch.IntegerHolder value) |
Tries to read a 24-bit value from a byte array. More... | |
static boolean | tryFromBytes3 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 3-bit value from a byte array. More... | |
static boolean | tryFromBytes32 (byte[] input, int inputIndex, boolean littleEndian, fm.liveswitch.LongHolder value) |
Tries to read a 32-bit value from a byte array. More... | |
static boolean | tryFromBytes4 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 4-bit value from a byte array. More... | |
static boolean | tryFromBytes40 (byte[] input, int inputIndex, boolean littleEndian, fm.liveswitch.LongHolder value) |
Tries to read a 40-bit value from a byte array. More... | |
static boolean | tryFromBytes48 (byte[] input, int inputIndex, boolean littleEndian, fm.liveswitch.LongHolder value) |
Tries to read a 48-bit value from a byte array. More... | |
static boolean | tryFromBytes5 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 5-bit value from a byte array. More... | |
static boolean | tryFromBytes56 (byte[] input, int inputIndex, boolean littleEndian, fm.liveswitch.LongHolder value) |
Tries to read a 56-bit value from a byte array. More... | |
static boolean | tryFromBytes6 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 6-bit value from a byte array. More... | |
static boolean | tryFromBytes64 (byte[] input, int inputIndex, boolean littleEndian, fm.liveswitch.LongHolder value) |
Tries to read a 64-bit value from a byte array. More... | |
static boolean | tryFromBytes7 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 7-bit value from a byte array. More... | |
static boolean | tryFromBytes8 (byte[] input, int inputIndex, fm.liveswitch.IntegerHolder value) |
Tries to read an 8-bit value from a byte array. More... | |
static boolean | tryFromBytes9 (byte[] input, int inputIndex, int bitOffset, fm.liveswitch.IntegerHolder value) |
Tries to read a 9-bit value from a byte array. More... | |
Common binary methods.
fm.liveswitch.Binary.Binary | ( | ) |
|
static |
Converts a bit-string to bytes.
bitString | The bit-string. |
|
static |
Converts a bit-string to bytes.
bitString | The bit-string. |
padLeft | Whether to pad extra zero-bits to the left. |
|
static |
Converts a bit-string to bytes.
bitString | The bit-string. |
padLeft | Whether to pad extra zero-bits to the left. |
numberOfUnusedBits | The number of unused bits. |
|
static |
Converts a bit-string to bytes.
bitString | The bit-string. |
numberOfUnusedBits | The number of unused bits. |
|
static |
Converts bytes to a bit-string.
bytes | The bytes. |
|
static |
Converts bytes to a bit-string.
bytes | The bytes. |
offset | The offset. |
length | The length. |
|
static |
Converts bytes to a bit-string.
bytes | The bytes. |
offset | The offset. |
length | The length. |
numberOfUnusedBits | The number of unused bits. |
|
static |
Converts bytes to a bit-string.
bytes | The bytes. |
offset | The offset. |
length | The length. |
numberOfUnusedBits | The number of unused bits. |
trimLeft | Whether to trim unused bits from the left. |
|
static |
Deinterleaves a byte array i.e.
XYXYXYXY to XXXXYYYY
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
|
static |
Deinterleaves a byte array i.e.
XYXYXYXY to XXXXYYYY
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
start | The start. |
length | The length. |
|
static |
Deinterleaves a byte array.
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
start | The start. |
length | The length. |
reversePlanes | The reversePlanes. |
|
static |
Deinterleave and transform (rotate) a byte array containing two planes.
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
width | The width. |
height | The height. |
stride | The stride. |
rotation | Values 0, 90, 180, 270. |
|
static |
Deinterleave and transform (rotate) a byte array containing two planes.
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
width | The width. |
height | The height. |
stride | The stride. |
rotation | Values 0, 90, 180, 270. |
start | The start. |
|
static |
Deinterleave and transform (rotate) a byte array containing two planes.
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
width | The width. |
height | The height. |
stride | The stride. |
start | The start. |
rotation | Values 0, 90, 180, 270. |
reversePlanes | Reverse output plane order. |
|
static |
Reads a 1-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads a 10-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads a 11-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads a 12-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads a 13-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads a 14-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads a 15-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads a 16-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
littleEndian | Whether to use little-endian format. |
|
static |
Reads an 17-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads an 18-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads an 19-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads a 2-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads an 20-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads an 21-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads an 22-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads an 23-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads a 24-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
littleEndian | Whether to use little-endian format. |
|
static |
Reads a 3-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads a 32-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
littleEndian | Whether to use little-endian format. |
|
static |
Reads a 4-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads a 40-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
littleEndian | Whether to use little-endian format. |
|
static |
Reads a 48-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
littleEndian | Whether to use little-endian format. |
|
static |
Reads a 5-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads a 56-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
littleEndian | Whether to use little-endian format. |
|
static |
Reads a 6-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads a 64-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
littleEndian | Whether to use little-endian format. |
|
static |
Reads a 7-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Reads an 8-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
|
static |
Reads a 9-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
|
static |
Interleaves a byte array i.e.
XXXXYYYY to XYXYXYXY
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
|
static |
Interleaves a byte array i.e.
XXXXYYYY to XYXYXYXY
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
start | The start. |
length | The length. |
|
static |
Interleaves a byte array i.e.
XXXXYYYY to XYXYXYXY
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
start | The start. |
length | The length. |
reversePlanes | XXXXYYYY to YXYXYXYX |
|
static |
Interleave and transform (rotate) a byte array containing two planes.
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
width | The width. |
height | The height. |
stride | The stride. |
rotation | Values 0, 90, 180, 270. |
|
static |
Interleave and transform (rotate) a byte array containing two planes.
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
width | The width. |
height | The height. |
stride | The stride. |
rotation | Values 0, 90, 180, 270. |
start | The start. |
|
static |
Interleave and transform (rotate) a byte array containing two planes.
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
width | The width. |
height | The height. |
stride | The stride. |
start | The start. |
rotation | Values 0, 90, 180, 270. |
reversePlanes | Reverse output plane order. |
|
static |
Converts a 1-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
|
static |
Writes a 1-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 10-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 10-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 11-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 11-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 12-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 12-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 13-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 13-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 14-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 14-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 15-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 15-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 16-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 16-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 17-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 17-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts an 18-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes an 18-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 19-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 19-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 2-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
|
static |
Writes a 2-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 20-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 20-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 21-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 21-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 22-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 22-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 23-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 23-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 24-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 24-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 3-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
|
static |
Writes a 3-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 32-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 32-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 4-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
|
static |
Writes a 4-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 40-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 40-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 48-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 48-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 5-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
|
static |
Writes a 5-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 56-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 56-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 6-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
|
static |
Writes a 6-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 64-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 64-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 7-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
|
static |
Writes a 7-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts an 8-bit value to a byte array.
value | The value to write. |
|
static |
Writes an 8-bit value to a byte array.
value | The value to write. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Converts a 9-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
|
static |
Writes a 9-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
littleEndian | Whether to use little-endian format. |
output | The output byte array. |
outputIndex | The index to start writing. |
|
static |
Transforms a byte containing a 2D plane (rotates 90, 180, 270)
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
rotation | The rotation. |
width | The width. |
height | The height. |
stride | The stride. |
|
static |
Transforms a byte containing a 2D plane (rotates 90, 180, 270)
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
rotation | The rotation. |
width | The width. |
height | The height. |
stride | The stride. |
inputStart | The inputStart. |
outputStart | The outputStart. |
|
static |
Transforms a byte containing a 2D plane (rotates 90, 180, 270).
When transforming interleaved planes. Set the chunkLength to the number of planes.
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
rotation | The rotation. |
width | The width. |
height | The height. |
stride | The stride. |
inputStart | The inputStart. |
outputStart | The outputStart. |
chunkLength | The chunkLength. |
|
static |
Transforms a byte containing a 2D plane (rotates 90, 180, 270)
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
rotation | The rotation. |
width | The width. |
height | The height. |
stride | The stride. |
start | Start position for both input and output frame |
|
static |
Tries to read a 1-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read a 10-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read a 11-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read a 12-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read a 13-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read a 14-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read a 15-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read a 16-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
littleEndian | Whether to use little-endian format. |
value | The value. |
|
static |
Tries to read a 17-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read a 18-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read a 19-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read a 2-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read a 20-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read a 21-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read a 22-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read a 23-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read a 24-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
littleEndian | Whether to use little-endian format. |
value | The value. |
|
static |
Tries to read a 3-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read a 32-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
littleEndian | Whether to use little-endian format. |
value | The value. |
|
static |
Tries to read a 4-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read a 40-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
littleEndian | Whether to use little-endian format. |
value | The value. |
|
static |
Tries to read a 48-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
littleEndian | Whether to use little-endian format. |
value | The value. |
|
static |
Tries to read a 5-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read a 56-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
littleEndian | Whether to use little-endian format. |
value | The value. |
|
static |
Tries to read a 6-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read a 64-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
littleEndian | Whether to use little-endian format. |
value | The value. |
|
static |
Tries to read a 7-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |
|
static |
Tries to read an 8-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
value | The value. |
|
static |
Tries to read a 9-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
bitOffset | The offset of the value within the byte. |
value | The value. |