Statistics
| Revision:

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

History | View | Annotate | Download (2.03 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/NCSJPCSODMarker.h $
15
** CREATED:  11/12/2002 3:27:34 PM
16
** AUTHOR:   Simon Cope
17
** PURPOSE:  CNCSJPCSODMarker class header
18
** EDITS:    [xx] ddMmmyy NAME COMMENTS
19
 *******************************************************/
20
21
#ifndef NCSJPCSODMARKER_H
22
#define NCSJPCSODMARKER_H
23
24
#ifndef NCSJPCMARKER_H
25
#include "NCSJPCMarker.h"
26
#endif // NCSJPCMARKER_H
27
28
29
        /**
30
         * CNCSJPCSODMarker class - the JPC SOD marker.
31
         *
32
         * @author       Simon Cope
33
         * @version      $Revision$ $Author$ $Date$
34
         */
35
class NCSJPC_EXPORT_ALL CNCSJPCSODMarker: public CNCSJPCMarker {
36
public:
37
                /** Byte offset of this tile-part's data in the codestream */
38
        INT64        m_nDataOffset;
39
40
                /** Default constructor, initialises members */
41
        CNCSJPCSODMarker();
42
                /** Virtual destructor */
43
        virtual ~CNCSJPCSODMarker();
44
45
                /**
46
                 * Parse the marker from the JPC codestream.
47
                 * @param                JPC                        CNCSJPC to use to parse file.
48
                 * @param                Stream                IOStream to use to parse file.
49
                 * @return      CNCSError        NCS_SUCCESS, or Error code on failure.
50
                 */
51
        virtual CNCSError Parse(class CNCSJPC &JPC, CNCSJPCIOStream &Stream);
52
                /**
53
                 * UnParse the marker to the JPC codestream.
54
                 * @param                Stream                IOStream to use to parse file.
55
                 * @param                JPC                        CNCSJPC to use to parse file.
56
                 * @return      CNCSError        NCS_SUCCESS, or Error code on failure.
57
                 */
58
        virtual CNCSError UnParse(class CNCSJPC &JPC, CNCSJPCIOStream &Stream);
59
60
private:
61
        INT64 FindSOP(CNCSJPCIOStream &Stream, UINT64 &nBytesLeft);
62
63
};
64
65
66
#endif // !NCSJPCSODMARKER_H