CSJ2K.j2k.codestream.writer.FileCodestreamWriter.initSOP_EPHArrays C# (CSharp) Method

initSOP_EPHArrays() private method

Performs the initialisation of the arrays that are used to store the values used to write SOP and EPH markers
private initSOP_EPHArrays ( ) : void
return void
        private void initSOP_EPHArrays()
        {
            // Allocate and set first values of SOP marker as they will not be
            // modified
            sopMarker = new byte[CSJ2K.j2k.codestream.Markers.SOP_LENGTH];
            sopMarker[0] = unchecked((byte) (CSJ2K.j2k.codestream.Markers.SOP >> 8));
            sopMarker[1] = (byte) SupportClass.Identity(CSJ2K.j2k.codestream.Markers.SOP);
            sopMarker[2] = (byte) 0x00;
            sopMarker[3] = (byte) 0x04;

            // Allocate and set values of EPH marker as they will not be
            // modified
            ephMarker = new byte[CSJ2K.j2k.codestream.Markers.EPH_LENGTH];
            ephMarker[0] = unchecked((byte) (CSJ2K.j2k.codestream.Markers.EPH >> 8));
            ephMarker[1] = (byte) SupportClass.Identity(CSJ2K.j2k.codestream.Markers.EPH);
        }