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

Function writeSOF0

static/webuploader/webuploader.custom.js:5983–6000  ·  view source on GitHub ↗
(width, height)

Source from the content-addressed store, hash-verified

5981 }
5982
5983 function writeSOF0(width, height)
5984 {
5985 writeWord(0xFFC0); // marker
5986 writeWord(17); // length, truecolor YUV JPG
5987 writeByte(8); // precision
5988 writeWord(height);
5989 writeWord(width);
5990 writeByte(3); // nrofcomponents
5991 writeByte(1); // IdY
5992 writeByte(0x11); // HVY
5993 writeByte(0); // QTY
5994 writeByte(2); // IdU
5995 writeByte(0x11); // HVU
5996 writeByte(1); // QTU
5997 writeByte(3); // IdV
5998 writeByte(0x11); // HVV
5999 writeByte(1); // QTV
6000 }
6001
6002 function writeDQT()
6003 {

Callers 1

JPEGEncoderFunction · 0.70

Calls 2

writeWordFunction · 0.70
writeByteFunction · 0.70

Tested by

no test coverage detected