// See QuickTime File Format Specification, 2010-08-03, pg.1 private static void ParseTcmiAtom(QtParser parser, uint size) { long tcmiPosition = (parser.Position - 4); parser.AddAttribute(new FormattedAttribute <QtAtom.Attribute, uint>(QtAtom.Attribute.Size, size)); uint type = parser.GetFourCC(QtAtom.Attribute.Type); parser.CheckAttribute(QtAtom.Attribute.Type, type == Tcmi, false); parser.GetByte(QtAtom.Attribute.Version); parser.GetThreeBytes(QtAtom.Attribute.Flags); parser.GetUShort(Attribute.TextFont); parser.GetUShort(Attribute.TextFace); parser.GetUShort(Attribute.TextSize); parser.GetUShort(Attribute.TcmiReserved); parser.Parse(new Color(Attribute.TextColor)); parser.Parse(new Color(Attribute.BackgroundColor)); parser.GetPascalString(Attribute.FontName, 0); parser.CheckAttribute(QtAtom.Attribute.Size, size == (parser.Position - tcmiPosition), false); }