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