Statistics
| Revision:

svn-gvsig-desktop / tags / v1_1_1_Build_1016 / libraries / libjni-ecw / include / NCSJPCPLMMarker.h @ 33925

History | View | Annotate | Download (2.34 KB)

1 3538 nacho
/********************************************************
2
** Copyright 2002 Earth Resource Mapping Ltd.
3
** This document contains proprietary source code of
4
** Earth Resource Mapping Ltd, and can only be used under
5
** one of the three licenses as described in the
6
** license.txt file supplied with this distribution.
7
** See separate license.txt file for license details
8
** and conditions.
9
**
10
** This software is covered by US patent #6,442,298,
11
** #6,102,897 and #6,633,688.  Rights to use these patents
12
** is included in the license agreements.
13
**
14
** FILE:     $Archive: /NCS/Source/include/NCSJPCPLMMarker.h $
15
** CREATED:  18/12/2002 3:27:34 PM
16
** AUTHOR:   Simon Cope
17
** PURPOSE:  CNCSJPCPLMMarker class header
18
** EDITS:    [xx] ddMmmyy NAME COMMENTS
19
 *******************************************************/
20
21
#ifndef NCSJPCPLMMARKER_H
22
#define NCSJPCPLMMARKER_H
23
24
#include "NCSJPCMarker.h"
25
#include "NCSJPCPacketLengthType.h"
26
27
        /**
28
         * CNCSJPCPLMMarker class - the JPC PLM marker.
29
         *
30
         * @author       Simon Cope
31
         * @version      $Revision$ $Author$ $Date$
32
         */
33
class NCSJPC_EXPORT_ALL CNCSJPCPLMMarker: public CNCSJPCMarker {
34
public:
35
                /** Packet length info within a tile part */
36
        typedef struct {
37
                        /** Packet length(s) for tile-part */
38
                std::vector<CNCSJPCPacketLengthType>        m_Lengths;
39
                        /** nBytes of packet-length remaining to parse */
40
                UINT8                        m_nNplm;
41
        } TilePartPacketLength;
42
43
                /** Index of this marker WRT other PLM markers */
44
        UINT8                m_nZplm;
45
                /** Packet lengths, each tile-part in this PLM */
46
        std::vector<TilePartPacketLength> m_TileParts;
47
48
                /** Default constructor, initialises members */
49
        CNCSJPCPLMMarker();
50
                /** Virtual destructor */
51
        virtual ~CNCSJPCPLMMarker();
52
53
                /**
54
                 * Parse the marker from the JPC codestream.
55
                 * @param                JPC                        CNCSJPC to use to parse file.
56
                 * @param                Stream                IOStream to use to parse file.
57
                 * @return      CNCSError        NCS_SUCCESS, or Error code on failure.
58
                 */
59
        virtual CNCSError Parse(class CNCSJPC &JPC, CNCSJPCIOStream &Stream);
60
#ifndef NCSJPC_LEAN_AND_MEAN
61
                /**
62
                 * UnParse the marker to the JPC codestream.
63
                 * @param                Stream                IOStream to use to parse file.
64
                 * @param                JPC                        CNCSJPC to use to parse file.
65
                 * @return      CNCSError        NCS_SUCCESS, or Error code on failure.
66
                 */
67
        virtual CNCSError UnParse(class CNCSJPC &JPC, CNCSJPCIOStream &Stream);
68
#endif //!NCSJPC_LEAN_AND_MEAN
69
};
70
71
72
#endif // !NCSJPCPLMMARKER_H