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