import * as Token from 'token-types' ; import { IGetToken } from 'strtok3/lib/core' ; /**
 * 6.2 Identification Header
 * Ref: https://theora.org/doc/Theora.pdf: 6.2 Identification Header Decode
 */ export interface IIdentificationHeader { id : string ; vmaj : number ; vmin : number ; vrev : number ; vmbw : number ; vmbh : number ; nombr : number ; nqual : number ; } /**
 * 6.2 Identification Header
 * Ref: https://theora.org/doc/Theora.pdf: 6.2 Identification Header Decode
 */ export const IdentificationHeader = { len : 42 , get : ( buf , off ) : IIdentificationHeader => { return { id : new Token . StringType ( 7 , 'ascii' ) . get ( buf , off ) , vmaj : buf . readUInt8 ( off + 7 ) , vmin : buf . readUInt8 ( off + 8 ) , vrev : buf . readUInt8 ( off + 9 ) , vmbw : buf . readUInt16BE ( off + 10 ) , vmbh : buf . readUInt16BE ( off + 17 ) , nombr : Token . UINT24_BE . get ( buf , off + 37 ) , nqual : buf . readUInt8 ( off + 40 ) } ; } } ;