Encodes and decodes the PackBits run-length format used by Photoshop.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decodeRow(
Uint8List input, {required int decodedLength}) → Uint8List -
Decodes one PackBits
inputrow into exactlydecodedLengthbytes. -
decodeRows(
Uint8List input, {required int rowBytes, required int rowCount, bool wideRowLengths = false}) → Uint8List - Decodes a complete table-prefixed sequence of PackBits rows.
-
decodeRowsPrefix(
Uint8List input, {required int rowBytes, required int rowCount, bool wideRowLengths = false}) → ({int bytesRead, Uint8List data}) -
Decodes table-prefixed rows from the beginning of
input. -
decodeRowsReader(
PsBinaryReader reader, {required int rowBytes, required int rowCount, bool wideRowLengths = false}) → Uint8List -
Decodes table-prefixed rows at the current
readerposition. -
encodeRow(
Uint8List row) → Uint8List -
Encodes one
rowwith the PackBits run-length algorithm. -
encodeRowInto(
Uint8List row, Uint8List output, int start) → int -
Encodes
rowintooutputatstartand returns the next write offset. -
encodeRows(
Uint8List input, {required int rowBytes, required int rowCount, bool wideRowLengths = false}) → Uint8List - Encodes rows and prefixes their 16-bit or 32-bit encoded lengths.
-
maxEncodedLength(
int rowBytes) → int -
Returns the largest encoding a row of
rowBytescan produce.