PsPackBitsCodec class abstract final

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 input row into exactly decodedLength bytes.
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 reader position.
encodeRow(Uint8List row) Uint8List
Encodes one row with the PackBits run-length algorithm.
encodeRowInto(Uint8List row, Uint8List output, int start) int
Encodes row into output at start and 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 rowBytes can produce.