Пример #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
 public JP2Tile(JP2Codestream parent, ushort tileIdx)
 {
     _tileParts    = new List <JP2TilePart>();
     _packetCounts = new List <int>();
     TileIndex     = tileIdx;
 }