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

Function writeSOF0

static/webuploader/webuploader.fis.js:5947–5964  ·  view source on GitHub ↗
(width, height)

Source from the content-addressed store, hash-verified

5945 }
5946
5947 function writeSOF0(width, height)
5948 {
5949 writeWord(0xFFC0); // marker
5950 writeWord(17); // length, truecolor YUV JPG
5951 writeByte(8); // precision
5952 writeWord(height);
5953 writeWord(width);
5954 writeByte(3); // nrofcomponents
5955 writeByte(1); // IdY
5956 writeByte(0x11); // HVY
5957 writeByte(0); // QTY
5958 writeByte(2); // IdU
5959 writeByte(0x11); // HVU
5960 writeByte(1); // QTU
5961 writeByte(3); // IdV
5962 writeByte(0x11); // HVV
5963 writeByte(1); // QTV
5964 }
5965
5966 function writeDQT()
5967 {

Callers 1

JPEGEncoderFunction · 0.70

Calls 2

writeWordFunction · 0.70
writeByteFunction · 0.70

Tested by

no test coverage detected