Reads Logical Screen Descriptor
()
| 588 | * Reads Logical Screen Descriptor |
| 589 | */ |
| 590 | private void readLSD() { |
| 591 | |
| 592 | // logical screen size |
| 593 | width = readShort(); |
| 594 | height = readShort(); |
| 595 | |
| 596 | // packed fields |
| 597 | int packed = read(); |
| 598 | gctFlag = (packed & 0x80) != 0; // 1 : global color table flag |
| 599 | // 2-4 : color resolution |
| 600 | // 5 : gct sort flag |
| 601 | gctSize = 2 << (packed & 7); // 6-8 : gct size |
| 602 | |
| 603 | bgIndex = read(); // background color index |
| 604 | pixelAspect = read(); // pixel aspect ratio |
| 605 | } |
| 606 | |
| 607 | |
| 608 | /** |
no test coverage detected