dlib.image.io.jpeg

Decode JPEG images

Members

Enums

JPEGMarkerType
enum JPEGMarkerType
Undocumented in source.

Functions

bitString
Array!char bitString(T n, uint len)
Undocumented in source. Be warned that the author may not have intended to support it.
decodeScanData
Compound!(SuperImage, string) decodeScanData(JPEGImage* jpg, InputStream istrm, SuperImageFactory imgFac)
Undocumented in source. Be warned that the author may not have intended to support it.
emptyNode
HuffmanTreeNode* emptyNode()
Undocumented in source. Be warned that the author may not have intended to support it.
idct64
void idct64(int* src)
Undocumented in source. Be warned that the author may not have intended to support it.
loadJPEG
SuperImage loadJPEG(string filename)

Load JPEG from file using local FileSystem. Causes GC allocation

loadJPEG
SuperImage loadJPEG(InputStream istrm)

Load JPEG from stream using default image factory. Causes GC allocation

loadJPEG
Compound!(SuperImage, string) loadJPEG(InputStream istrm, SuperImageFactory imgFac)

Load JPEG from stream using specified image factory. GC-free

readAPPn
Compound!(bool, string) readAPPn(JPEGImage* jpg, InputStream istrm, uint n)
Undocumented in source. Be warned that the author may not have intended to support it.
readCOM
Compound!(bool, string) readCOM(JPEGImage* jpg, InputStream istrm)
Undocumented in source. Be warned that the author may not have intended to support it.
readChars
char[size] readChars(InputStream istrm)
Undocumented in source. Be warned that the author may not have intended to support it.
readDHT
Compound!(bool, string) readDHT(JPEGImage* jpg, InputStream istrm)
Undocumented in source. Be warned that the author may not have intended to support it.
readDQT
Compound!(bool, string) readDQT(JPEGImage* jpg, InputStream istrm)
Undocumented in source. Be warned that the author may not have intended to support it.
readJFIF
Compound!(bool, string) readJFIF(JPEGImage* jpg, InputStream istrm)
Undocumented in source. Be warned that the author may not have intended to support it.
readMarker
Compound!(bool, string) readMarker(JPEGImage* jpg, InputStream istrm, JPEGMarkerType* mt)
Undocumented in source. Be warned that the author may not have intended to support it.
readNumeric
T readNumeric(InputStream istrm, Endian endian)
Undocumented in source. Be warned that the author may not have intended to support it.
readNumeric
T readNumeric(InputStream istrm, Endian endian)
Undocumented in source. Be warned that the author may not have intended to support it.
readSOF0
Compound!(bool, string) readSOF0(JPEGImage* jpg, InputStream istrm)
Undocumented in source. Be warned that the author may not have intended to support it.
readSOS
Compound!(bool, string) readSOS(JPEGImage* jpg, InputStream istrm)
Undocumented in source. Be warned that the author may not have intended to support it.
treeAddCode
void treeAddCode(HuffmanTreeNode* root, HuffmanCode code, ubyte value)
Undocumented in source. Be warned that the author may not have intended to support it.
treeFromTable
HuffmanTreeNode* treeFromTable(Array!(HuffmanTableEntry) table)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

HuffmanCode
struct HuffmanCode
Undocumented in source.
HuffmanTableEntry
struct HuffmanTableEntry
Undocumented in source.
HuffmanTreeNode
struct HuffmanTreeNode
Undocumented in source.
JPEGImage
struct JPEGImage
Undocumented in source.
MCU
struct MCU
Undocumented in source.
ScanBitStream
struct ScanBitStream
Undocumented in source.

Meta

Authors

Timur Gafarov