JpegEncoder class

Encode an image to the JPEG format.

Derived from: https://github.com/owencm/javascript-jpeg-encoder

Inheritance

Constructors

JpegEncoder({int quality: 100})

Properties

bitcode List<List<int>>
final
category List<int>
final
currentQuality int
read / write
DU List<int>
final
fdtbl_UV Float32List
final
fdtbl_Y Float32List
final
hashCode int
The hash code for this object. [...]
read-only, inherited
outputfDCTQuant List<int>
final
RGB_YUV_TABLE Int32List
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
supportsAnimation bool
Does this encoder support animation?
read-only, inherited
UDU Float32List
final
UVAC_HT List<List<int>>
read / write
UVDC_HT List<List<int>>
read / write
UVTable Uint8List
final
VDU Float32List
final
YAC_HT List<List<int>>
read / write
YDC_HT List<List<int>>
read / write
YDU Float32List
final
YTable Uint8List
final

Methods

encodeAnimation(Animation anim) List<int>
Encode an animation. Not all formats support animation, and null will be returned if not.
inherited
encodeImage(Image image) List<int>
Encode a single image.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
setQuality(int quality) → void
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Constants

STD_AC_CHROMINANCE_NR_CODES → const List<int>
const [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 0x77]
STD_AC_CHROMINANCE_VALUES → const List<int>
const [0x00, 0x01, 0x02, 0x03, 0x11, 0x04, 0x05, 0x21, 0x31, 0x06, 0x12, 0x41, 0x51, 0x07, 0x61, 0x71, 0x13, 0x22, 0x32, 0x81, 0x08, 0x14, 0x42, 0x91, 0xa1, 0xb1, 0xc1, 0x09, 0x23, 0x33, 0x52, 0xf0, 0…
STD_AC_LUMINANCE_NR_CODES → const List<int>
const [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 0x7d]
STD_AC_LUMINANCE_VALUES → const List<int>
const [0x01, 0x02, 0x03, 0x00, 0x04, 0x11, 0x05, 0x12, 0x21, 0x31, 0x41, 0x06, 0x13, 0x51, 0x61, 0x07, 0x22, 0x71, 0x14, 0x32, 0x81, 0x91, 0xa1, 0x08, 0x23, 0x42, 0xb1, 0xc1, 0x15, 0x52, 0xd1, 0xf0, 0…
STD_DC_CHROMINANCE_NR_CODES → const List<int>
const [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0]
STD_DC_CHROMINANCE_VALUES → const List<int>
const [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
STD_DC_LUMINANCE_NR_CODES → const List<int>
const [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0]
STD_DC_LUMINANCE_VALUES → const List<int>
const [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
ZIGZAG → const List<int>
const [0, 1, 5, 6, 14, 15, 27, 28, 2, 4, 7, 13, 16, 26, 29, 42, 3, 8, 12, 17, 25, 30, 41, 43, 9, 11, 18, 24, 31, 40, 44, 53, 10, 19, 23, 32, 39, 45, 52, 54, 20, 22, 33, 38, 46, 51, 55, 60, 21, 34, 37,…