Common binary methods. More...
Instance Methods | |
(instancetype) | - init |
Class Methods | |
(FMLiveSwitchBinary *) | + binary |
(NSMutableData *) | + bitStringToBytesWithBitString: |
Converts a bit-string to bytes. More... | |
(NSMutableData *) | + bitStringToBytesWithBitString:numberOfUnusedBits: |
Converts a bit-string to bytes. More... | |
(NSMutableData *) | + bitStringToBytesWithBitString:padLeft: |
Converts a bit-string to bytes. More... | |
(NSMutableData *) | + bitStringToBytesWithBitString:padLeft:numberOfUnusedBits: |
Converts a bit-string to bytes. More... | |
(NSString *) | + bytesToBitStringWithBytes: |
Converts bytes to a bit-string. More... | |
(NSString *) | + bytesToBitStringWithBytes:offset:length: |
Converts bytes to a bit-string. More... | |
(NSString *) | + bytesToBitStringWithBytes:offset:length:numberOfUnusedBits: |
Converts bytes to a bit-string. More... | |
(NSString *) | + bytesToBitStringWithBytes:offset:length:numberOfUnusedBits:trimLeft: |
Converts bytes to a bit-string. More... | |
(void) | + deinterleaveTransformWithInputFrame:outputFrame:width:height:stride:rotation: |
Deinterleave and transform (rotate) a byte array containing two planes. More... | |
(void) | + deinterleaveTransformWithInputFrame:outputFrame:width:height:stride:rotation:start: |
Deinterleave and transform (rotate) a byte array containing two planes. More... | |
(void) | + deinterleaveTransformWithInputFrame:outputFrame:width:height:stride:rotation:start:reversePlanes: |
Deinterleave and transform (rotate) a byte array containing two planes. More... | |
(void) | + deinterleaveWithInputFrame:outputFrame: |
Deinterleaves a byte array i.e. More... | |
(void) | + deinterleaveWithInputFrame:outputFrame:start:length: |
Deinterleaves a byte array i.e. More... | |
(void) | + deinterleaveWithInputFrame:outputFrame:start:length:reversePlanes: |
Deinterleaves a byte array. More... | |
(int) | + fromBytes10WithInput:inputIndex:bitOffset: |
Reads a 10-bit value from a byte array. More... | |
(int) | + fromBytes11WithInput:inputIndex:bitOffset: |
Reads a 11-bit value from a byte array. More... | |
(int) | + fromBytes12WithInput:inputIndex:bitOffset: |
Reads a 12-bit value from a byte array. More... | |
(int) | + fromBytes13WithInput:inputIndex:bitOffset: |
Reads a 13-bit value from a byte array. More... | |
(int) | + fromBytes14WithInput:inputIndex:bitOffset: |
Reads a 14-bit value from a byte array. More... | |
(int) | + fromBytes15WithInput:inputIndex:bitOffset: |
Reads a 15-bit value from a byte array. More... | |
(int) | + fromBytes16WithInput:inputIndex:littleEndian: |
Reads a 16-bit value from a byte array. More... | |
(int) | + fromBytes17WithInput:inputIndex:bitOffset: |
Reads an 17-bit value from a byte array. More... | |
(int) | + fromBytes18WithInput:inputIndex:bitOffset: |
Reads an 18-bit value from a byte array. More... | |
(int) | + fromBytes19WithInput:inputIndex:bitOffset: |
Reads an 19-bit value from a byte array. More... | |
(bool) | + fromBytes1WithInput:inputIndex:bitOffset: |
Reads a 1-bit value from a byte array. More... | |
(int) | + fromBytes20WithInput:inputIndex:bitOffset: |
Reads an 20-bit value from a byte array. More... | |
(int) | + fromBytes21WithInput:inputIndex:bitOffset: |
Reads an 21-bit value from a byte array. More... | |
(int) | + fromBytes22WithInput:inputIndex:bitOffset: |
Reads an 22-bit value from a byte array. More... | |
(int) | + fromBytes23WithInput:inputIndex:bitOffset: |
Reads an 23-bit value from a byte array. More... | |
(int) | + fromBytes24WithInput:inputIndex:littleEndian: |
Reads a 24-bit value from a byte array. More... | |
(int) | + fromBytes2WithInput:inputIndex:bitOffset: |
Reads a 2-bit value from a byte array. More... | |
(long long) | + fromBytes32WithInput:inputIndex:littleEndian: |
Reads a 32-bit value from a byte array. More... | |
(int) | + fromBytes3WithInput:inputIndex:bitOffset: |
Reads a 3-bit value from a byte array. More... | |
(long long) | + fromBytes40WithInput:inputIndex:littleEndian: |
Reads a 40-bit value from a byte array. More... | |
(long long) | + fromBytes48WithInput:inputIndex:littleEndian: |
Reads a 48-bit value from a byte array. More... | |
(int) | + fromBytes4WithInput:inputIndex:bitOffset: |
Reads a 4-bit value from a byte array. More... | |
(long long) | + fromBytes56WithInput:inputIndex:littleEndian: |
Reads a 56-bit value from a byte array. More... | |
(int) | + fromBytes5WithInput:inputIndex:bitOffset: |
Reads a 5-bit value from a byte array. More... | |
(long long) | + fromBytes64WithInput:inputIndex:littleEndian: |
Reads a 64-bit value from a byte array. More... | |
(int) | + fromBytes6WithInput:inputIndex:bitOffset: |
Reads a 6-bit value from a byte array. More... | |
(int) | + fromBytes7WithInput:inputIndex:bitOffset: |
Reads a 7-bit value from a byte array. More... | |
(int) | + fromBytes8WithInput:inputIndex: |
Reads an 8-bit value from a byte array. More... | |
(int) | + fromBytes9WithInput:inputIndex:bitOffset: |
Reads a 9-bit value from a byte array. More... | |
(void) | + interleaveTransformWithInputFrame:outputFrame:width:height:stride:rotation: |
Interleave and transform (rotate) a byte array containing two planes. More... | |
(void) | + interleaveTransformWithInputFrame:outputFrame:width:height:stride:rotation:start: |
Interleave and transform (rotate) a byte array containing two planes. More... | |
(void) | + interleaveTransformWithInputFrame:outputFrame:width:height:stride:rotation:start:reversePlanes: |
Interleave and transform (rotate) a byte array containing two planes. More... | |
(void) | + interleaveWithInputFrame:outputFrame: |
Interleaves a byte array i.e. More... | |
(void) | + interleaveWithInputFrame:outputFrame:start:length: |
Interleaves a byte array i.e. More... | |
(void) | + interleaveWithInputFrame:outputFrame:start:length:reversePlanes: |
Interleaves a byte array i.e. More... | |
(NSMutableData *) | + toBytes1:bitOffset: |
Converts a 1-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes1:bitOffset:output:outputIndex: |
Writes a 1-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes10:bitOffset:littleEndian: |
Converts a 10-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes10:bitOffset:littleEndian:output:outputIndex: |
Writes a 10-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes11:bitOffset:littleEndian: |
Converts a 11-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes11:bitOffset:littleEndian:output:outputIndex: |
Writes a 11-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes12:bitOffset:littleEndian: |
Converts a 12-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes12:bitOffset:littleEndian:output:outputIndex: |
Writes a 12-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes13:bitOffset:littleEndian: |
Converts a 13-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes13:bitOffset:littleEndian:output:outputIndex: |
Writes a 13-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes14:bitOffset:littleEndian: |
Converts a 14-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes14:bitOffset:littleEndian:output:outputIndex: |
Writes a 14-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes15:bitOffset:littleEndian: |
Converts a 15-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes15:bitOffset:littleEndian:output:outputIndex: |
Writes a 15-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes16:littleEndian: |
Converts a 16-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes16:littleEndian:output:outputIndex: |
Writes a 16-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes17:bitOffset:littleEndian: |
Converts a 17-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes17:bitOffset:littleEndian:output:outputIndex: |
Writes a 17-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes18:bitOffset:littleEndian: |
Converts an 18-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes18:bitOffset:littleEndian:output:outputIndex: |
Writes an 18-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes19:bitOffset:littleEndian: |
Converts a 19-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes19:bitOffset:littleEndian:output:outputIndex: |
Writes a 19-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes2:bitOffset: |
Converts a 2-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes2:bitOffset:output:outputIndex: |
Writes a 2-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes20:bitOffset:littleEndian: |
Converts a 20-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes20:bitOffset:littleEndian:output:outputIndex: |
Writes a 20-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes21:bitOffset:littleEndian: |
Converts a 21-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes21:bitOffset:littleEndian:output:outputIndex: |
Writes a 21-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes22:bitOffset:littleEndian: |
Converts a 22-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes22:bitOffset:littleEndian:output:outputIndex: |
Writes a 22-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes23:bitOffset:littleEndian: |
Converts a 23-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes23:bitOffset:littleEndian:output:outputIndex: |
Writes a 23-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes24:littleEndian: |
Converts a 24-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes24:littleEndian:output:outputIndex: |
Writes a 24-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes3:bitOffset: |
Converts a 3-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes3:bitOffset:output:outputIndex: |
Writes a 3-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes32:littleEndian: |
Converts a 32-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes32:littleEndian:output:outputIndex: |
Writes a 32-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes4:bitOffset: |
Converts a 4-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes4:bitOffset:output:outputIndex: |
Writes a 4-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes40:littleEndian: |
Converts a 40-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes40:littleEndian:output:outputIndex: |
Writes a 40-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes48:littleEndian: |
Converts a 48-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes48:littleEndian:output:outputIndex: |
Writes a 48-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes5:bitOffset: |
Converts a 5-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes5:bitOffset:output:outputIndex: |
Writes a 5-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes56:littleEndian: |
Converts a 56-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes56:littleEndian:output:outputIndex: |
Writes a 56-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes6:bitOffset: |
Converts a 6-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes6:bitOffset:output:outputIndex: |
Writes a 6-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes64:littleEndian: |
Converts a 64-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes64:littleEndian:output:outputIndex: |
Writes a 64-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes7:bitOffset: |
Converts a 7-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes7:bitOffset:output:outputIndex: |
Writes a 7-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes8: |
Converts an 8-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes8:output:outputIndex: |
Writes an 8-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes9:bitOffset:littleEndian: |
Converts a 9-bit value to a byte array. More... | |
(NSMutableData *) | + toBytes9:bitOffset:littleEndian:output:outputIndex: |
Writes a 9-bit value to a byte array. More... | |
(void) | + transformWithInputFrame:outputFrame:width:height:stride:rotation: |
Transforms a byte containing a 2D plane (rotates 90, 180, 270) More... | |
(void) | + transformWithInputFrame:outputFrame:width:height:stride:rotation:inputStart:outputStart: |
Transforms a byte containing a 2D plane (rotates 90, 180, 270) More... | |
(void) | + transformWithInputFrame:outputFrame:width:height:stride:rotation:inputStart:outputStart:chunkLength: |
Transforms a byte containing a 2D plane (rotates 90, 180, 270). More... | |
(void) | + transformWithInputFrame:outputFrame:width:height:stride:rotation:start: |
Transforms a byte containing a 2D plane (rotates 90, 180, 270) More... | |
(bool) | + tryFromBytes10WithInput:inputIndex:bitOffset:value: |
Tries to read a 10-bit value from a byte array. More... | |
(bool) | + tryFromBytes11WithInput:inputIndex:bitOffset:value: |
Tries to read a 11-bit value from a byte array. More... | |
(bool) | + tryFromBytes12WithInput:inputIndex:bitOffset:value: |
Tries to read a 12-bit value from a byte array. More... | |
(bool) | + tryFromBytes13WithInput:inputIndex:bitOffset:value: |
Tries to read a 13-bit value from a byte array. More... | |
(bool) | + tryFromBytes14WithInput:inputIndex:bitOffset:value: |
Tries to read a 14-bit value from a byte array. More... | |
(bool) | + tryFromBytes15WithInput:inputIndex:bitOffset:value: |
Tries to read a 15-bit value from a byte array. More... | |
(bool) | + tryFromBytes16WithInput:inputIndex:littleEndian:value: |
Tries to read a 16-bit value from a byte array. More... | |
(bool) | + tryFromBytes17WithInput:inputIndex:bitOffset:value: |
Tries to read a 17-bit value from a byte array. More... | |
(bool) | + tryFromBytes18WithInput:inputIndex:bitOffset:value: |
Tries to read a 18-bit value from a byte array. More... | |
(bool) | + tryFromBytes19WithInput:inputIndex:bitOffset:value: |
Tries to read a 19-bit value from a byte array. More... | |
(bool) | + tryFromBytes1WithInput:inputIndex:bitOffset:value: |
Tries to read a 1-bit value from a byte array. More... | |
(bool) | + tryFromBytes20WithInput:inputIndex:bitOffset:value: |
Tries to read a 20-bit value from a byte array. More... | |
(bool) | + tryFromBytes21WithInput:inputIndex:bitOffset:value: |
Tries to read a 21-bit value from a byte array. More... | |
(bool) | + tryFromBytes22WithInput:inputIndex:bitOffset:value: |
Tries to read a 22-bit value from a byte array. More... | |
(bool) | + tryFromBytes23WithInput:inputIndex:bitOffset:value: |
Tries to read a 23-bit value from a byte array. More... | |
(bool) | + tryFromBytes24WithInput:inputIndex:littleEndian:value: |
Tries to read a 24-bit value from a byte array. More... | |
(bool) | + tryFromBytes2WithInput:inputIndex:bitOffset:value: |
Tries to read a 2-bit value from a byte array. More... | |
(bool) | + tryFromBytes32WithInput:inputIndex:littleEndian:value: |
Tries to read a 32-bit value from a byte array. More... | |
(bool) | + tryFromBytes3WithInput:inputIndex:bitOffset:value: |
Tries to read a 3-bit value from a byte array. More... | |
(bool) | + tryFromBytes40WithInput:inputIndex:littleEndian:value: |
Tries to read a 40-bit value from a byte array. More... | |
(bool) | + tryFromBytes48WithInput:inputIndex:littleEndian:value: |
Tries to read a 48-bit value from a byte array. More... | |
(bool) | + tryFromBytes4WithInput:inputIndex:bitOffset:value: |
Tries to read a 4-bit value from a byte array. More... | |
(bool) | + tryFromBytes56WithInput:inputIndex:littleEndian:value: |
Tries to read a 56-bit value from a byte array. More... | |
(bool) | + tryFromBytes5WithInput:inputIndex:bitOffset:value: |
Tries to read a 5-bit value from a byte array. More... | |
(bool) | + tryFromBytes64WithInput:inputIndex:littleEndian:value: |
Tries to read a 64-bit value from a byte array. More... | |
(bool) | + tryFromBytes6WithInput:inputIndex:bitOffset:value: |
Tries to read a 6-bit value from a byte array. More... | |
(bool) | + tryFromBytes7WithInput:inputIndex:bitOffset:value: |
Tries to read a 7-bit value from a byte array. More... | |
(bool) | + tryFromBytes8WithInput:inputIndex:value: |
Tries to read an 8-bit value from a byte array. More... | |
(bool) | + tryFromBytes9WithInput:inputIndex:bitOffset:value: |
Tries to read a 9-bit value from a byte array. More... | |
Common binary methods.
+ (FMLiveSwitchBinary*) binary |
+ (NSMutableData*) bitStringToBytesWithBitString: | (NSString *) | bitString |
Converts a bit-string to bytes.
bitString | The bit-string. |
+ (NSMutableData*) bitStringToBytesWithBitString: | (NSString *) | bitString | |
numberOfUnusedBits: | (int *) | numberOfUnusedBits | |
Converts a bit-string to bytes.
bitString | The bit-string. |
numberOfUnusedBits | The number of unused bits. |
+ (NSMutableData*) bitStringToBytesWithBitString: | (NSString *) | bitString | |
padLeft: | (bool) | padLeft | |
Converts a bit-string to bytes.
bitString | The bit-string. |
padLeft | Whether to pad extra zero-bits to the left. |
+ (NSMutableData*) bitStringToBytesWithBitString: | (NSString *) | bitString | |
padLeft: | (bool) | padLeft | |
numberOfUnusedBits: | (int *) | numberOfUnusedBits | |
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. |
+ (NSString*) bytesToBitStringWithBytes: | (NSMutableData *) | bytes |
Converts bytes to a bit-string.
bytes | The bytes. |
+ (NSString*) bytesToBitStringWithBytes: | (NSMutableData *) | bytes | |
offset: | (int) | offset | |
length: | (int) | length | |
Converts bytes to a bit-string.
bytes | The bytes. |
offset | The offset. |
length | The length. |
+ (NSString*) bytesToBitStringWithBytes: | (NSMutableData *) | bytes | |
offset: | (int) | offset | |
length: | (int) | length | |
numberOfUnusedBits: | (int) | numberOfUnusedBits | |
Converts bytes to a bit-string.
bytes | The bytes. |
offset | The offset. |
length | The length. |
numberOfUnusedBits | The number of unused bits. |
+ (NSString*) bytesToBitStringWithBytes: | (NSMutableData *) | bytes | |
offset: | (int) | offset | |
length: | (int) | length | |
numberOfUnusedBits: | (int) | numberOfUnusedBits | |
trimLeft: | (bool) | trimLeft | |
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. |
+ (void) deinterleaveTransformWithInputFrame: | (NSMutableData *) | inputFrame | |
outputFrame: | (NSMutableData *) | outputFrame | |
width: | (int) | width | |
height: | (int) | height | |
stride: | (int) | stride | |
rotation: | (int) | rotation | |
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. |
+ (void) deinterleaveTransformWithInputFrame: | (NSMutableData *) | inputFrame | |
outputFrame: | (NSMutableData *) | outputFrame | |
width: | (int) | width | |
height: | (int) | height | |
stride: | (int) | stride | |
rotation: | (int) | rotation | |
start: | (int) | start | |
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. |
+ (void) deinterleaveTransformWithInputFrame: | (NSMutableData *) | inputFrame | |
outputFrame: | (NSMutableData *) | outputFrame | |
width: | (int) | width | |
height: | (int) | height | |
stride: | (int) | stride | |
rotation: | (int) | rotation | |
start: | (int) | start | |
reversePlanes: | (bool) | reversePlanes | |
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. |
+ (void) deinterleaveWithInputFrame: | (NSMutableData *) | inputFrame | |
outputFrame: | (NSMutableData *) | outputFrame | |
Deinterleaves a byte array i.e.
XYXYXYXY to XXXXYYYY
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
+ (void) deinterleaveWithInputFrame: | (NSMutableData *) | inputFrame | |
outputFrame: | (NSMutableData *) | outputFrame | |
start: | (int) | start | |
length: | (int) | length | |
Deinterleaves a byte array i.e.
XYXYXYXY to XXXXYYYY
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
start | The start. |
length | The length. |
+ (void) deinterleaveWithInputFrame: | (NSMutableData *) | inputFrame | |
outputFrame: | (NSMutableData *) | outputFrame | |
start: | (int) | start | |
length: | (int) | length | |
reversePlanes: | (bool) | reversePlanes | |
Deinterleaves a byte array.
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
start | The start. |
length | The length. |
reversePlanes | The reversePlanes. |
+ (int) fromBytes10WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (int) fromBytes11WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (int) fromBytes12WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (int) fromBytes13WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (int) fromBytes14WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (int) fromBytes15WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (int) fromBytes16WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (int) fromBytes17WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (int) fromBytes18WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (int) fromBytes19WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (bool) fromBytes1WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (int) fromBytes20WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (int) fromBytes21WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (int) fromBytes22WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (int) fromBytes23WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (int) fromBytes24WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (int) fromBytes2WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (long long) fromBytes32WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (int) fromBytes3WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (long long) fromBytes40WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (long long) fromBytes48WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (int) fromBytes4WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (long long) fromBytes56WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (int) fromBytes5WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (long long) fromBytes64WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (int) fromBytes6WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (int) fromBytes7WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
+ (int) fromBytes8WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
Reads an 8-bit value from a byte array.
input | The input byte array. |
inputIndex | The index to start reading. |
+ (int) fromBytes9WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
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. |
- (instancetype) init |
+ (void) interleaveTransformWithInputFrame: | (NSMutableData *) | inputFrame | |
outputFrame: | (NSMutableData *) | outputFrame | |
width: | (int) | width | |
height: | (int) | height | |
stride: | (int) | stride | |
rotation: | (int) | rotation | |
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. |
+ (void) interleaveTransformWithInputFrame: | (NSMutableData *) | inputFrame | |
outputFrame: | (NSMutableData *) | outputFrame | |
width: | (int) | width | |
height: | (int) | height | |
stride: | (int) | stride | |
rotation: | (int) | rotation | |
start: | (int) | start | |
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. |
+ (void) interleaveTransformWithInputFrame: | (NSMutableData *) | inputFrame | |
outputFrame: | (NSMutableData *) | outputFrame | |
width: | (int) | width | |
height: | (int) | height | |
stride: | (int) | stride | |
rotation: | (int) | rotation | |
start: | (int) | start | |
reversePlanes: | (bool) | reversePlanes | |
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. |
+ (void) interleaveWithInputFrame: | (NSMutableData *) | inputFrame | |
outputFrame: | (NSMutableData *) | outputFrame | |
Interleaves a byte array i.e.
XXXXYYYY to XYXYXYXY
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
+ (void) interleaveWithInputFrame: | (NSMutableData *) | inputFrame | |
outputFrame: | (NSMutableData *) | outputFrame | |
start: | (int) | start | |
length: | (int) | length | |
Interleaves a byte array i.e.
XXXXYYYY to XYXYXYXY
inputFrame | The inputFrame. |
outputFrame | The outputFrame. |
start | The start. |
length | The length. |
+ (void) interleaveWithInputFrame: | (NSMutableData *) | inputFrame | |
outputFrame: | (NSMutableData *) | outputFrame | |
start: | (int) | start | |
length: | (int) | length | |
reversePlanes: | (bool) | reversePlanes | |
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 |
+ (NSMutableData*) toBytes10: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (NSMutableData*) toBytes10: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes11: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (NSMutableData*) toBytes11: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes12: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (NSMutableData*) toBytes12: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes13: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (NSMutableData*) toBytes13: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes14: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (NSMutableData*) toBytes14: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes15: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (NSMutableData*) toBytes15: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes16: | (int) | value | |
littleEndian: | (bool) | littleEndian | |
Converts a 16-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
+ (NSMutableData*) toBytes16: | (int) | value | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes17: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (NSMutableData*) toBytes17: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes18: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (NSMutableData*) toBytes18: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes19: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (NSMutableData*) toBytes19: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes1: | (bool) | value | |
bitOffset: | (int) | bitOffset | |
Converts a 1-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
+ (NSMutableData*) toBytes1: | (bool) | value | |
bitOffset: | (int) | bitOffset | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes20: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (NSMutableData*) toBytes20: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes21: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (NSMutableData*) toBytes21: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes22: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (NSMutableData*) toBytes22: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes23: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (NSMutableData*) toBytes23: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes24: | (int) | value | |
littleEndian: | (bool) | littleEndian | |
Converts a 24-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
+ (NSMutableData*) toBytes24: | (int) | value | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes2: | (int) | value | |
bitOffset: | (int) | bitOffset | |
Converts a 2-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
+ (NSMutableData*) toBytes2: | (int) | value | |
bitOffset: | (int) | bitOffset | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes32: | (long long) | value | |
littleEndian: | (bool) | littleEndian | |
Converts a 32-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
+ (NSMutableData*) toBytes32: | (long long) | value | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes3: | (int) | value | |
bitOffset: | (int) | bitOffset | |
Converts a 3-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
+ (NSMutableData*) toBytes3: | (int) | value | |
bitOffset: | (int) | bitOffset | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes40: | (long long) | value | |
littleEndian: | (bool) | littleEndian | |
Converts a 40-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
+ (NSMutableData*) toBytes40: | (long long) | value | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes48: | (long long) | value | |
littleEndian: | (bool) | littleEndian | |
Converts a 48-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
+ (NSMutableData*) toBytes48: | (long long) | value | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes4: | (int) | value | |
bitOffset: | (int) | bitOffset | |
Converts a 4-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
+ (NSMutableData*) toBytes4: | (int) | value | |
bitOffset: | (int) | bitOffset | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes56: | (long long) | value | |
littleEndian: | (bool) | littleEndian | |
Converts a 56-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
+ (NSMutableData*) toBytes56: | (long long) | value | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes5: | (int) | value | |
bitOffset: | (int) | bitOffset | |
Converts a 5-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
+ (NSMutableData*) toBytes5: | (int) | value | |
bitOffset: | (int) | bitOffset | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes64: | (long long) | value | |
littleEndian: | (bool) | littleEndian | |
Converts a 64-bit value to a byte array.
value | The value to write. |
littleEndian | Whether to use little-endian format. |
+ (NSMutableData*) toBytes64: | (long long) | value | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes6: | (int) | value | |
bitOffset: | (int) | bitOffset | |
Converts a 6-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
+ (NSMutableData*) toBytes6: | (int) | value | |
bitOffset: | (int) | bitOffset | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes7: | (int) | value | |
bitOffset: | (int) | bitOffset | |
Converts a 7-bit value to a byte array.
value | The value to write. |
bitOffset | The offset of the value within the byte. |
+ (NSMutableData*) toBytes7: | (int) | value | |
bitOffset: | (int) | bitOffset | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes8: | (int) | value |
Converts an 8-bit value to a byte array.
value | The value to write. |
+ (NSMutableData*) toBytes8: | (int) | value | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (NSMutableData*) toBytes9: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
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. |
+ (NSMutableData*) toBytes9: | (int) | value | |
bitOffset: | (int) | bitOffset | |
littleEndian: | (bool) | littleEndian | |
output: | (NSMutableData *) | output | |
outputIndex: | (int) | outputIndex | |
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. |
+ (void) transformWithInputFrame: | (NSMutableData *) | inputFrame | |
outputFrame: | (NSMutableData *) | outputFrame | |
width: | (int) | width | |
height: | (int) | height | |
stride: | (int) | stride | |
rotation: | (int) | rotation | |
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. |
+ (void) transformWithInputFrame: | (NSMutableData *) | inputFrame | |
outputFrame: | (NSMutableData *) | outputFrame | |
width: | (int) | width | |
height: | (int) | height | |
stride: | (int) | stride | |
rotation: | (int) | rotation | |
inputStart: | (int) | inputStart | |
outputStart: | (int) | outputStart | |
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. |
+ (void) transformWithInputFrame: | (NSMutableData *) | inputFrame | |
outputFrame: | (NSMutableData *) | outputFrame | |
width: | (int) | width | |
height: | (int) | height | |
stride: | (int) | stride | |
rotation: | (int) | rotation | |
inputStart: | (int) | inputStart | |
outputStart: | (int) | outputStart | |
chunkLength: | (int) | chunkLength | |
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. |
+ (void) transformWithInputFrame: | (NSMutableData *) | inputFrame | |
outputFrame: | (NSMutableData *) | outputFrame | |
width: | (int) | width | |
height: | (int) | height | |
stride: | (int) | stride | |
rotation: | (int) | rotation | |
start: | (int) | start | |
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 |
+ (bool) tryFromBytes10WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes11WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes12WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes13WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes14WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes15WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes16WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
littleEndian: | (bool) | littleEndian | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes17WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes18WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes19WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes1WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (bool *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes20WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes21WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes22WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes23WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes24WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
littleEndian: | (bool) | littleEndian | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes2WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes32WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
littleEndian: | (bool) | littleEndian | |
value: | (long long *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes3WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes40WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
littleEndian: | (bool) | littleEndian | |
value: | (long long *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes48WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
littleEndian: | (bool) | littleEndian | |
value: | (long long *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes4WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes56WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
littleEndian: | (bool) | littleEndian | |
value: | (long long *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes5WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes64WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
littleEndian: | (bool) | littleEndian | |
value: | (long long *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes6WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes7WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes8WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false
+ (bool) tryFromBytes9WithInput: | (NSMutableData *) | input | |
inputIndex: | (int) | inputIndex | |
bitOffset: | (int) | bitOffset | |
value: | (int *) | value | |
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. |
true
if the index is valid and the value was read; otherwise, false