/// <summary> /// Overridden method to process local tags /// </summary> /// <param name="localTag"></param> protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag) { switch (localTag.Tag) { case 0x3406: this.ComponentMaxRef = reader.ReadUInt32(); return(true); case 0x3407: this.ComponentMinRef = reader.ReadUInt32(); return(true); case 0x3408: this.AlphaMaxRef = reader.ReadUInt32(); return(true); case 0x3409: this.AlphaMinRef = reader.ReadUInt32(); return(true); case 0x3405: this.ScanningDirection = (MXFScanningDirectionType)reader.ReadByte(); return(true); case 0x3401: this.PixelLayout = reader.ReadRGBALayout(); return(true); case 0x3403: this.Palette = reader.ReadArray(reader.ReadByte, localTag.Size); return(true); case 0x3404: this.PaletteLayout = reader.ReadRGBALayout(); return(true); } return(base.ParseLocalTag(reader, localTag)); }
/// <summary> /// Overridden method to process local tags /// </summary> /// <param name="localTag"></param> protected override bool ParseLocalTag(MXFReader reader, MXFLocalTag localTag) { if (localTag.Key != null) { switch (localTag.Key) { case var _ when localTag.Key == rsiz: this.Rsiz = reader.ReadUInt16(); return(true); case var _ when localTag.Key == xsiz: this.Xsiz = reader.ReadUInt32(); return(true); case var _ when localTag.Key == ysiz: this.Ysiz = reader.ReadUInt32(); return(true); case var _ when localTag.Key == xOsiz: this.XOsiz = reader.ReadUInt32(); return(true); case var _ when localTag.Key == yOsiz: this.YOsiz = reader.ReadUInt32(); return(true); case var _ when localTag.Key == xTsiz: this.XTsiz = reader.ReadUInt32(); return(true); case var _ when localTag.Key == yTsiz: this.YTsiz = reader.ReadUInt32(); return(true); case var _ when localTag.Key == xTOsiz: this.XTOsiz = reader.ReadUInt32(); return(true); case var _ when localTag.Key == yTOsiz: this.YTOsiz = reader.ReadUInt32(); return(true); case var _ when localTag.Key == csiz: this.Csiz = reader.ReadUInt16(); return(true); case var _ when localTag.Key == pictureComponentSizing: this.PictureComponentSizing = reader.ReadArray(reader.ReadByte, localTag.Size); return(true); case var _ when localTag.Key == codingStyleDefault: this.CodingStyleDefault = reader.ReadArray(reader.ReadByte, localTag.Size); return(true); case var _ when localTag.Key == quantizationDefault: this.QuantizationDefault = reader.ReadArray(reader.ReadByte, localTag.Size); return(true); case var _ when localTag.Key == j2CLayout: this.J2CLayout = reader.ReadRGBALayout(); return(true); } } return(base.ParseLocalTag(reader, localTag)); }