Adding modding folder with a hacked build.

This commit is contained in:
ml
2026-09-26 08:53:08 +02:00
parent cdb960dc71
commit c91080aba7
755 changed files with 50424 additions and 0 deletions
@@ -0,0 +1,26 @@
package format
// IndexTableEntrySize specifies how many bytes a serialized IndexTableEntry uses.
const IndexTableEntrySize = 8
const indexHeaderSizeIncrement = 0x0400
// IndexTableEntry describes one data entry of a MOVI container.
type IndexTableEntry struct {
TimestampFraction uint16
TimestampSecond byte
Type byte
DataOffset int32
}
// IndexTableSizeFor returns the number of bytes reserved for given amount of table entries.
func IndexTableSizeFor(entryCount int) int {
size := indexHeaderSizeIncrement
requiredSize := entryCount * IndexTableEntrySize
if requiredSize > size {
size *= requiredSize/size + 2
}
return size
}