(width, height)
| 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 | { |
no test coverage detected