| Line 381: |
Line 381: |
| | uint32 version | | uint32 version |
| | if version >= 5: | | if version >= 5: |
| − | uint32 frames | + | uint32 frames // If version < 5 then frames = 1 |
| | if version >= 2: | | if version >= 2: |
| − | if version < 5: | + | for each frame: |
| − | if version >= 4:
| |
| − | uint32 size
| |
| − | byte riff[size] // Avg lightmap webp file
| |
| | uint32 size | | uint32 size |
| − | byte jfif[size] // Intens/Avg lightmap jpeg file | + | byte image[size] // Image is JPEG/JFIF or WEBP/RIFF file format |
| − | if version == 3: | + | if version >= 3: |
| − | uint32 size
| |
| − | byte jfif[size] // Intens lightmap jpeg file
| |
| − | if version >= 5:
| |
| − | for each frame:
| |
| | uint32 size | | uint32 size |
| − | byte riff[size] // Avg lightmap webp file | + | byte image[size] |
| | + | if version >= 6: |
| | uint32 size | | uint32 size |
| − | byte jfif[size] // Intens lightmap jpeg file | + | byte image[size] |
| | if size != 0: | | if size != 0: |
| | uint32 uncompressedSize | | uint32 uncompressedSize |