MCPcopy Create free account
hub / github.com/TruthHun/BookStack / writeSOF0

Function writeSOF0

static/webuploader/webuploader.js:5972–5989  ·  view source on GitHub ↗
(width, height)

Source from the content-addressed store, hash-verified

5970 }
5971
5972 function writeSOF0(width, height)
5973 {
5974 writeWord(0xFFC0); // marker
5975 writeWord(17); // length, truecolor YUV JPG
5976 writeByte(8); // precision
5977 writeWord(height);
5978 writeWord(width);
5979 writeByte(3); // nrofcomponents
5980 writeByte(1); // IdY
5981 writeByte(0x11); // HVY
5982 writeByte(0); // QTY
5983 writeByte(2); // IdU
5984 writeByte(0x11); // HVU
5985 writeByte(1); // QTU
5986 writeByte(3); // IdV
5987 writeByte(0x11); // HVV
5988 writeByte(1); // QTV
5989 }
5990
5991 function writeDQT()
5992 {

Callers 1

JPEGEncoderFunction · 0.70

Calls 2

writeWordFunction · 0.70
writeByteFunction · 0.70

Tested by

no test coverage detected