joy4/mp4/atom/types.go
nareix 92528599ba Add 'mp4/' from commit 'bd71ca9823ec91410ccdf4d2ed783ba44b8a14d7'
git-subtree-dir: mp4
git-subtree-mainline: 8bb2ec1a5cdf4acae1ca4dfa09dd876b850bea24
git-subtree-split: bd71ca9823ec91410ccdf4d2ed783ba44b8a14d7
2016-07-01 21:31:47 +08:00

13 lines
174 B
Go

package atom
type Fixed uint32
type TimeStamp uint32
func IntToFixed(val int) Fixed {
return Fixed(val << 16)
}
func FixedToInt(val Fixed) int {
return int(val >> 16)
}