Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libjni-ecwcompress / include / include-sdk / NCSJPCRGNMarker.h @ 12522

History | View | Annotate | Download (2.09 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/NCSJPCrGNMarker.h $
15
** CREATED:  12/12/2002 3:27:34 PM
16
** AUTHOR:   Simon Cope
17
** PURPOSE:  CNCSJPCRGNMarker class header
18
** EDITS:    [xx] ddMmmyy NAME COMMENTS
19
 *******************************************************/
20
21
#ifndef NCSJPCRGNMARKER_H
22
#define NCSJPCRGNMARKER_H
23
24
#include "NCSJPCMarker.h"
25
26
        /**
27
         * CNCSJPCRGNMarker class - the JPC RGN marker.
28
         *
29
         * @author       Simon Cope
30
         * @version      $Revision$ $Author$ $Date$
31
         */
32
class NCSJPC_EXPORT_ALL CNCSJPCRGNMarker: public CNCSJPCMarker {
33
public:
34
        typedef enum {
35
                IMPLICIT        = 0
36
        } Style;
37
                /** Index of component this region is for */
38
        UINT16                m_nCrgn;
39
                /** Style of the region */
40
        Style                m_eSrgn;
41
                /** Resion style parameter */
42
        UINT8                m_nSPrgn;
43
44
                /** Default constructor, initialises members */
45
        CNCSJPCRGNMarker();
46
                /** Virtual destructor */
47
        virtual ~CNCSJPCRGNMarker();
48
49
                /**
50
                 * Parse the marker from the JPC codestream.
51
                 * @param                JPC                        CNCSJPC to use to parse file.
52
                 * @param                Stream                IOStream to use to parse file.
53
                 * @return      CNCSError        NCS_SUCCESS, or Error code on failure.
54
                 */
55
        virtual CNCSError Parse(class CNCSJPC &JPC, CNCSJPCIOStream &Stream);
56
#ifndef NCSJPC_LEAN_AND_MEAN
57
                /**
58
                 * UnParse the marker to the JPC codestream.
59
                 * @param                Stream                IOStream to use to parse file.
60
                 * @param                JPC                        CNCSJPC to use to parse file.
61
                 * @return      CNCSError        NCS_SUCCESS, or Error code on failure.
62
                 */
63
        virtual CNCSError UnParse(class CNCSJPC &JPC, CNCSJPCIOStream &Stream);
64
#endif //!NCSJPC_LEAN_AND_MEAN
65
};
66
67
68
#endif // !NCSJPCRGNMARKER_H