corrade-vassal – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 vero 1 /*
2 * CVS identifier:
3 *
4 * $Id: PktInfo.java,v 1.7 2001/02/14 10:54:49 grosbois Exp $
5 *
6 * Class: PktInfo
7 *
8 * Description: Object containing packet informations.
9 *
10 *
11 *
12 * COPYRIGHT:
13 *
14 * This software module was originally developed by Raphaël Grosbois and
15 * Diego Santa Cruz (Swiss Federal Institute of Technology-EPFL); Joel
16 * Askelöf (Ericsson Radio Systems AB); and Bertrand Berthelot, David
17 * Bouchard, Félix Henry, Gerard Mozelle and Patrice Onno (Canon Research
18 * Centre France S.A) in the course of development of the JPEG2000
19 * standard as specified by ISO/IEC 15444 (JPEG 2000 Standard). This
20 * software module is an implementation of a part of the JPEG 2000
21 * Standard. Swiss Federal Institute of Technology-EPFL, Ericsson Radio
22 * Systems AB and Canon Research Centre France S.A (collectively JJ2000
23 * Partners) agree not to assert against ISO/IEC and users of the JPEG
24 * 2000 Standard (Users) any of their rights under the copyright, not
25 * including other intellectual property rights, for this software module
26 * with respect to the usage by ISO/IEC and Users of this software module
27 * or modifications thereof for use in hardware or software products
28 * claiming conformance to the JPEG 2000 Standard. Those intending to use
29 * this software module in hardware or software products are advised that
30 * their use may infringe existing patents. The original developers of
31 * this software module, JJ2000 Partners and ISO/IEC assume no liability
32 * for use of this software module or modifications thereof. No license
33 * or right to this software module is granted for non JPEG 2000 Standard
34 * conforming products. JJ2000 Partners have full right to use this
35 * software module for his/her own purpose, assign or donate this
36 * software module to any third party and to inhibit third parties from
37 * using this software module for non JPEG 2000 Standard conforming
38 * products. This copyright notice must be included in all copies or
39 * derivative works of this software module.
40 *
41 * Copyright (c) 1999/2000 JJ2000 Partners.
42 * */
43 using System;
44 namespace CSJ2K.j2k.codestream.reader
45 {
46  
47 /// <summary> This class defines an object used to countain informations about a packet
48 /// to which the current code-block belongs.
49 ///
50 /// </summary>
51 /// <seealso cref="CBlkInfo">
52 ///
53 /// </seealso>
54 public class PktInfo
55 {
56  
57 /// <summary>Index of the packet </summary>
58 public int packetIdx;
59  
60 /// <summary>The layer associated with the current code-block in this packet. </summary>
61 public int layerIdx;
62  
63 /// <summary>The code-block offset in the codestream (for this packet) </summary>
64 public int cbOff = 0;
65  
66 /// <summary>The length of the code-block in this packet (in bytes) </summary>
67 public int cbLength;
68  
69 /// <summary> The length of each terminated segment in the packet. The total is the
70 /// same as 'cbLength'. It can be null if there is only one terminated
71 /// segment, in which case 'cbLength' holds the legth of that segment
72 ///
73 /// </summary>
74 public int[] segLengths;
75  
76 /// <summary> The number of truncation points that appear in this packet, and all
77 /// previous packets, for this code-block. This is the number of passes
78 /// that can be decoded with the information in this packet and all
79 /// previous ones.
80 ///
81 /// </summary>
82 public int numTruncPnts;
83  
84 /// <summary> Classe's constructor.
85 ///
86 /// </summary>
87 /// <param name="lyIdx">The layer index for the code-block in this packet
88 ///
89 /// </param>
90 /// <param name="pckIdx">The packet index
91 ///
92 /// </param>
93 public PktInfo(int lyIdx, int pckIdx)
94 {
95 layerIdx = lyIdx;
96 packetIdx = pckIdx;
97 }
98  
99 /// <summary> Object information in a string.
100 ///
101 /// </summary>
102 /// <returns> Object information
103 ///
104 /// </returns>
105 public override System.String ToString()
106 {
107 return "packet " + packetIdx + " (lay:" + layerIdx + ", off:" + cbOff + ", len:" + cbLength + ", numTruncPnts:" + numTruncPnts + ")\n";
108 }
109 }
110 }