1460735792-f7b82f2f-dac5-4f2a-8ab3-853e579523d1

1. A context model for generating a context, the context model comprising:
a first input for information indicative of a current bitplane for which contexts are to be generated;
a second input of coefficients from a memory;
a unit coupled to the first and second inputs to determine whether a one bit in the coefficient bits being input and identifies the location of the one bit if located, the unit having an output indicative of whether a first non-zero magnitude bit has been observed and the bit plane in which it was observed, if so;
a plurality of registers coupled to the unit and to receive bits of coefficients from the memory to store data corresponding to neighboring coefficients that comprise coefficients above, below and to the left of a current coefficient for which a context is being generated, wherein outputs of the plurality of registers form the context based on the data corresponding to neighboring coefficients and based on the outputs of the unit.
2. The context model defined in claim 1 wherein the plurality of registers comprise shift registers.
3. The context model defined in claim 1 wherein one of the plurality of registers outputs a bit of information along with the context.
4. The context model defined in claim 1 wherein at least one of the plurality of registers stores one or more parent coefficients used to form the context.
5. The context model defined in claim 1 wherein a first of the plurality of registers stores coefficient data from coefficients above and to the left of the current coefficient, a second of the plurality of registers stores coefficient data from coefficients below and to the right of the current coefficient and a third of the plurality of registers stores the current coefficient.
6. An apparatus comprising:
a reversible wavelet filter to transform input data into a plurality of coefficients;
an order unit to generate an embedded codestream using the plurality of coefficients;
a context model for generating contexts, the context model comprising
a first input for information indicative of a current bitplane for which contexts are to be generated,
a second input of coefficients from a memory,
a unit coupled to the first and second inputs to determine whether a one bit in the coefficient bits being input and identifies the location of the one bit if located, the unit having an output indicative of whether a first non-zero magnitude bit has been observed and the bit plane in which it was observed, if so,
a plurality of registers coupled to the unit and to receive bits of coefficients from the memory to store data corresponding to neighboring coefficients that comprise coefficients above, below and to the left of a current coefficient for which a context is being generated, wherein outputs of the plurality of registers form the context based on the data corresponding to neighboring coefficients and based on the outputs of the unit; and
a binary entropy coder coupled to the context model to code the embedded codestream to generate a compressed data stream based on contexts from the context model.
7. The apparatus defined in claim 6 wherein the plurality of registers comprise shift registers.
8. The apparatus defined in claim 6 wherein one of the plurality of registers outputs a bit of information along with the context.
9. The apparatus defined in claim 6 wherein at least one of the plurality of registers stores one or more parent coefficients used to form the context.
10. The apparatus defined in claim 6 wherein a first of the plurality of registers stores coefficient data from coefficients above and to the left of the current coefficient, a second of the plurality of registers stores coefficient data from coefficients below and to the right of the current coefficient and a third of the plurality of registers stores the current coefficient.

The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.

1. A method for producing a sulfur-containing epoxy compound, which comprises dripping a sulfur-containing halohydrin compound into a mixed solvent containing an organic solvent and an aqueous solution of a basic compound; and reacting said sulfur-containing halohydrin compound with said mixed solvent,
(A) wherein the sulfur-containing halohydrin compound is a compound represented by formula (1) below, and wherein the sulfur-containing epoxy compound is a sulfur-containing epoxy compound represented by formula (2) below:
wherein m represents an integer from 0 to 4, n represents an integer from 0 to 2 with the proviso that when m is 0, n is not 2;
wherein m represents an integer from 0 to 4, n represents an integer from 0 to 2 with the proviso that when m is 0, n is not 2; or
(B) wherein the sulfur-containing halohydrin compound is a compound represented by formula (3) below, and wherein the sulfur-containing epoxy compound is a sulfur-containing epoxy compound represented by formula (6) below:
wherein p and q each independently represent an integer from 0 to 4;
wherein p and q each independently represent an integer from 0 to 4; or
(C) wherein the sulfur-containing halohydrin compound is a compound represented by formula (4) below, and wherein the sulfur-containing epoxy compound is a sulfur-containing epoxy compound represented by formula (7) below:
wherein p and q each independently represent an integer from 0 to 4;
wherein p and q each independently represent an integer from 0 to 4; or
(D) wherein the sulfur-containing halohydrin compound is a compound represented by formula (5) below, and wherein the sulfur-containing epoxy compound is a sulfur-containing epoxy compound represented by formula (8) below:
wherein p and q each independently represent an integer from 0 to 4;
wherein p and q each independently represent an integer from 0 to 4.
2. The method for producing a sulfur-containing epoxy compound according to claim 1, wherein the organic solvent is at least one type of compound selected from toluene and benzene.
3. The method for producing a sulfur-containing epoxy compound according to claim 1, wherein the basic compound is at least one type of compound selected from sodium hydroxide, potassium hydroxide and calcium hydroxide.
4. The method for producing a sulfur-containing epoxy compound according to claim 1, wherein the reaction temperature is between \u22125\xb0 C. and 30\xb0 C.