public RiffChunk(CDRFile p) : base(p) { this.Type = RiffType.Chunk; if (!Directory.Exists(tmpPath)) { Directory.CreateDirectory(tmpPath); } }
public CDRflgs(CDRFile p) : base(p) { }
public void SetCDRFile(CDRFile f) { m_cdrFile = f; }
public RIFFBase(CDRFile p) { this.Parent = p; }
public CDRbmp_(CDRFile p) : base(p) { }
public CDRvrsn(CDRFile p) : base(p) { }
public CDRDISP(CDRFile p) : base(p) { }
public CDRINFO(CDRFile p) : base(p) { }
public CDRsyst(CDRFile p) : base(p) { }
public CDRuil_(CDRFile p) : base(p) { }
public CDRpage(CDRFile p) : base(p) { Parent.PageCount++; }
public CDRcolo(CDRFile p) : base(p) { }
public CDRcmpr(CDRFile p) : base(p) { }
public CDRsumi(CDRFile p) : base(p) { }
public CDRgobj(CDRFile p) : base(p) { }
public RiffList(CDRFile p) : base(p) { this.Type = RiffType.LIST; }
public CDRptrt(CDRFile p) : base(p) { }
public CDRICMT(CDRFile p) : base(p) { }
public CDRfver(CDRFile p) : base(p) { }
public CDRlayr(CDRFile p) : base(p) { }
public CDRotlt(CDRFile p) : base(p) { }
public static List <RIFFBase> ReadRiff(CDRFile p, BinaryReader br, int[] blockSizes, int l = -1) { int fcc; int size; long len = l == -1 ? br.BaseStream.Length : br.BaseStream.Position + l; List <RIFFBase> list = new List <RIFFBase>(); while (br.BaseStream.Position < len) { fcc = br.ReadInt32(); size = br.ReadInt32(); if (blockSizes != null && blockSizes.Length > 0) { size = blockSizes[size]; } string type = RiffParser.FromFourCC(fcc); if (0 == String.Compare(type, RiffParser.LIST4CC)) { fcc = br.ReadInt32(); String name = RiffParser.FromFourCC(fcc); RIFFBase rl; if (name == "cmpr") { rl = new CDRcmpr(p); } else if (name == "bmkt") { rl = new CDRbmkt(p); } else if (name == "colo") { rl = new CDRcolo(p); } else if (name == "INFO") { rl = new CDRINFO(p); } else if (name == "syst") { rl = new CDRsyst(p); } else if (name == "page") { rl = new CDRpage(p); } else if (name == "gobj") { rl = new CDRgobj(p); } else if (name == "bmpt") { rl = new CDRbmpt(p); } else if (name == "iccp") { rl = new CDRiccp(p); } else if (name == "filt") { rl = new CDRfilt(p); } else if (name == "filc") { rl = new CDRfilc(p); } else if (name == "otlt") { rl = new CDRotlt(p); } else if (name == "stlt") { rl = new CDRstlt(p); } else if (name == "uil ") { rl = new CDRuil_(p); } else if (name == "doc ") { rl = new CDRdoc_(p); } else if (name == "layr") { rl = new CDRlayr(p); } else if (name == "lgob") { rl = new CDRlgob(p); } else if (name == "fntt") { rl = new CDRfntt(p); } else if (name == "grp ") { rl = new CDRgrp_(p); } else if (name == "obj ") { rl = new CDRobj_(p); } else { rl = new RiffList(p); } rl.name = name; rl.Read(br, size - 4, blockSizes); if (0 != (size & 1)) { br.BaseStream.Position++; } list.Add(rl); } else { RIFFBase rl; String name = RiffParser.FromFourCC(fcc); if (name == "vrsn") { rl = new CDRvrsn(p); } else if (name == "sumi") { rl = new CDRsumi(p); } else if (name == "mcfg") { rl = new CDRmcfg(p); } else if (name == "fver") { rl = new CDRfver(p); } else if (name == "DISP") { rl = new CDRDISP(p); } else if (name == "iccd") { rl = new CDRiccd(p); } else if (name == "IKEY") { rl = new CDRIKEY(p); } else if (name == "ICMT") { rl = new CDRICMT(p); } else if (name == "pref") { rl = new CDRpref(p); } else if (name == "ptrt") { rl = new CDRptrt(p); } else if (name == "fild") { rl = new CDRfild(p); } else if (name == "outl") { rl = new CDRoutl(p); } else if (name == "flgs") { rl = new CDRflgs(p); } else if (name == "bbox") { rl = new CDRbbox(p); } else if (name == "loda") { rl = new CDRloda(p); } else if (name == "bmp ") { rl = new CDRbmp_(p); } else if (name == "bmrk") { rl = new CDRbmrk(p); } else if (name == "font") { rl = new CDRfont(p); } else { rl = new RiffChunk(p); } rl.name = name; rl.Read(br, size); if (0 != (size & 1)) { br.BaseStream.Position++; } list.Add(rl); } } return(list); }
public CDRfild(CDRFile p) : base(p) { Parent.FillCout++; }
public static List <RIFFBase> ReadRiff(CDRFile p, BinaryReader br, int l = -1) { return(ReadRiff(p, br, new int[0], l)); }
public CDRReader(RiffParser parser) { m_parser = parser; m_cdrFile = new CDRFile(); m_cdrFile.list = new List <RIFFBase>(); }
public CDRfilc(CDRFile p) : base(p) { }
public CDRbmkt(CDRFile p) : base(p) { }
public CDRpref(CDRFile p) : base(p) { }
public CDRiccd(CDRFile p) : base(p) { }
public CDRbmrk(CDRFile p) : base(p) { }