aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/OpenJpeg/j2k.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/OpenJpeg/j2k.cs')
-rw-r--r--OpenSim/Framework/OpenJpeg/j2k.cs182
1 files changed, 0 insertions, 182 deletions
diff --git a/OpenSim/Framework/OpenJpeg/j2k.cs b/OpenSim/Framework/OpenJpeg/j2k.cs
deleted file mode 100644
index 8751792..0000000
--- a/OpenSim/Framework/OpenJpeg/j2k.cs
+++ /dev/null
@@ -1,182 +0,0 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using System.Collections.Generic;
30using System.Text;
31
32namespace OpenSim.Framework.OpenJpeg
33{
34 public static class j2k
35 {
36 }
37
38 public enum J2K_STATUS
39 {
40 J2K_STATE_MHSOC = 0x0001, /**< a SOC marker is expected */
41 J2K_STATE_MHSIZ = 0x0002, /**< a SIZ marker is expected */
42 J2K_STATE_MH = 0x0004, /**< the decoding process is in the main header */
43 J2K_STATE_TPHSOT = 0x0008, /**< the decoding process is in a tile part header and expects a SOT marker */
44 J2K_STATE_TPH = 0x0010, /**< the decoding process is in a tile part header */
45 J2K_STATE_MT = 0x0020, /**< the EOC marker has just been read */
46 J2K_STATE_NEOC = 0x0040, /**< the decoding process must not expect a EOC marker because the codestream is truncated */
47 J2K_STATE_ERR = 0x0080 /**< the decoding process has encountered an error */
48 }
49
50 public enum J2K_T2_MODE
51 {
52 THRESH_CALC = 0, /** Function called in Rate allocation process*/
53 FINAL_PASS = 1 /** Function called in Tier 2 process*/
54 }
55
56 public struct opj_stepsize
57 {
58 public int expn;
59 public int mant;
60 }
61
62 public struct opj_tccp
63 {
64 public int csty;
65 public int numresolutions;
66 public int cblkw;
67 public int cblkh;
68 public int cblksty;
69 public int qmfbid;
70 public int qntsty;
71 /// <summary>
72 /// don't forget to initialize 97 elements
73 /// </summary>
74 public opj_stepsize[] stepsizes;
75 public int numgbits;
76 public int roishift;
77 /// <summary>
78 /// Don't forget to initialize 33 elements
79 /// </summary>
80 public int[] prcw;
81 }
82
83 public struct opj_tcp
84 {
85 public int first;
86 public int csty;
87 public PROG_ORDER prg;
88 public int numlayers;
89 public int mct;
90 /// <summary>
91 /// don't forget to initialize to 100
92 /// </summary>
93 public float[] rates;
94 public int numpocs;
95 public int POC;
96 /// <summary>
97 /// Don't forget to initialize to 32
98 /// </summary>
99 public opj_poc[] pocs;
100 public byte ppt_data;
101 public byte ppt_data_first;
102 public int ppt;
103 public int ppt_store;
104 public int ppt_len;
105 /// <summary>
106 /// Don't forget to initialize 100 elements
107 /// </summary>
108 public float[] distoratio;
109 public opj_tccp tccps;
110 }
111
112 public struct opj_cp
113 {
114 public CINEMA_MODE cinema;
115 public int max_comp_size;
116 public int img_size;
117 public RSIZ_CAPABILITIES rsiz;
118 public sbyte tp_on;
119 public sbyte tp_flag;
120 public int tp_pos;
121 public int distro_alloc;
122 public int fixed_alloc;
123 public int fixed_quality;
124 public int reduce;
125 public int layer;
126 public LIMIT_DECODING limit_decoding;
127 public int tx0;
128 public int ty0;
129 public int tdx;
130 public int tdy;
131 public sbyte? comment;
132 public int tw;
133 public int th;
134 public int? tileno;
135 public byte ppm_data;
136 public byte ppm_data_first;
137 public int ppm;
138 public int ppm_store;
139 public int ppm_previous;
140 public int ppm_len;
141 public opj_tcp tcps;
142 public int matrice;
143 }
144
145 public static class j2kdefines
146 {
147 public const uint J2K_CP_CSTY_PRT = 0x01;
148 public const uint J2K_CP_CSTY_SOP = 0x02;
149 public const uint J2K_CP_CSTY_EPH = 0x04;
150 public const uint J2K_CCP_CSTY_PRT = 0x01;
151 public const uint J2K_CCP_CBLKSTY_LAZY = 0x01;
152 public const uint J2K_CCP_CBLKSTY_RESET = 0x02;
153 public const uint J2K_CCP_CBLKSTY_TERMALL = 0x04;
154 public const uint J2K_CCP_CBLKSTY_VSC = 0x08;
155 public const uint J2K_CCP_CBLKSTY_PTERM =0x10;
156 public const uint J2K_CCP_CBLKSTY_SEGSYM = 0x20;
157 public const uint J2K_CCP_QNTSTY_NOQNT = 0;
158 public const uint J2K_CCP_QNTSTY_SIQNT = 1;
159 public const uint J2K_CCP_QNTSTY_SEQNT = 2;
160
161 public const uint J2K_MS_SOC = 0xff4f; /**< SOC marker value */
162 public const uint J2K_MS_SOT = 0xff90; /**< SOT marker value */
163 public const uint J2K_MS_SOD = 0xff93; /**< SOD marker value */
164 public const uint J2K_MS_EOC = 0xffd9; /**< EOC marker value */
165 public const uint J2K_MS_SIZ = 0xff51; /**< SIZ marker value */
166 public const uint J2K_MS_COD = 0xff52; /**< COD marker value */
167 public const uint J2K_MS_COC = 0xff53; /**< COC marker value */
168 public const uint J2K_MS_RGN = 0xff5e; /**< RGN marker value */
169 public const uint J2K_MS_QCD = 0xff5c; /**< QCD marker value */
170 public const uint J2K_MS_QCC = 0xff5d; /**< QCC marker value */
171 public const uint J2K_MS_POC = 0xff5f; /**< POC marker value */
172 public const uint J2K_MS_TLM = 0xff55; /**< TLM marker value */
173 public const uint J2K_MS_PLM = 0xff57; /**< PLM marker value */
174 public const uint J2K_MS_PLT = 0xff58; /**< PLT marker value */
175 public const uint J2K_MS_PPM = 0xff60; /**< PPM marker value */
176 public const uint J2K_MS_PPT = 0xff61; /**< PPT marker value */
177 public const uint J2K_MS_SOP = 0xff91; /**< SOP marker value */
178 public const uint J2K_MS_EPH = 0xff92; /**< EPH marker value */
179 public const uint J2K_MS_CRG = 0xff63; /**< CRG marker value */
180 public const uint J2K_MS_COM = 0xff64; /**< COM marker value */
181 }
182}