示例#1
0
 internal JP2TilePart(JP2Codestream parent, long offset, long length)
     : base(parent, offset, length)
 {
     // packet offsets always has (packets + 1) elements it keeps the
     // next offset at the last element
     _packetOffsets = new List <uint>()
     {
         0
     };
     _pltMarkers = new List <PltMarker>();
 }
示例#2
0
        /// <summary>
        /// Create tilepart using reference to the parent codestream and indices
        /// of the tile and tilepart. Used when creating new tileparts from scratch
        /// </summary>
        /// <param name="parent"></param>
        /// <param name="tileIdx"></param>
        /// <param name="tpIdx"></param>
        internal JP2TilePart(
            JP2Codestream parent,
            ushort tileIdx,
            byte tpIdx,
            bool createPacketIndex)
            : base(parent)
        {
            // packet offsets always has (packets + 1) elements it keeps the
            // next offset at the last element
            _packetOffsets = new List <uint>()
            {
                0
            };

            _sot        = new SotMarker(tileIdx, tpIdx);
            _pltMarkers = new List <PltMarker>()
            {
                new PltMarker(0)
            };
        }
示例#3
0
文件: JP2Tile.cs 项目: zmxu/Skyreach
 public JP2Tile(JP2Codestream parent, ushort tileIdx)
 {
     _tileParts    = new List <JP2TilePart>();
     _packetCounts = new List <int>();
     TileIndex     = tileIdx;
 }