CSJ2K.j2k.codestream.writer.HeaderEncoder.HeaderEncoder C# (CSharp) Method

HeaderEncoder() public method

Initializes the header writer with the references to the coding chain.
public HeaderEncoder ( ImgData origsrc, bool isorigsig, ForwardWT dwt, Tiler tiler, CSJ2K.j2k.encoder.EncoderSpecs encSpec, ROIScaler roiSc, PostCompRateAllocator ralloc, CSJ2K.j2k.util.ParameterList pl ) : System
origsrc ImgData The original image data (before any component mixing, /// tiling, etc.) /// ///
isorigsig bool An array specifying for each component if it was /// originally signed or not. /// ///
dwt CSJ2K.j2k.wavelet.analysis.ForwardWT The discrete wavelet transform module. /// ///
tiler CSJ2K.j2k.image.Tiler The tiler module. /// ///
encSpec CSJ2K.j2k.encoder.EncoderSpecs The encoder specifications /// ///
roiSc CSJ2K.j2k.roi.encoder.ROIScaler The ROI scaler module. /// ///
ralloc CSJ2K.j2k.entropy.encoder.PostCompRateAllocator The post compression rate allocator. /// ///
pl CSJ2K.j2k.util.ParameterList ParameterList instance. /// ///
return System
        public HeaderEncoder(ImgData origsrc, bool[] isorigsig, ForwardWT dwt, Tiler tiler, EncoderSpecs encSpec, ROIScaler roiSc, PostCompRateAllocator ralloc, ParameterList pl)
        {
            pl.checkList(OPT_PREFIX, CSJ2K.j2k.util.ParameterList.toNameArray(pinfo));
            if (origsrc.NumComps != isorigsig.Length)
            {
                throw new System.ArgumentException();
            }
            this.origSrc = origsrc;
            this.isOrigSig = isorigsig;
            this.dwt = dwt;
            this.tiler = tiler;
            this.encSpec = encSpec;
            this.roiSc = roiSc;
            this.ralloc = ralloc;

            baos = new System.IO.MemoryStream();
            //UPGRADE_TODO: Class 'java.io.DataOutputStream' was converted to 'System.IO.BinaryWriter' which has a different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1073_javaioDataOutputStream'"
            hbuf = new CSJ2K.Util.EndianBinaryWriter(baos, true);
            nComp = origsrc.NumComps;
            enJJ2KMarkSeg = pl.getBooleanParameter("Hjj2000_COM");
            otherCOMMarkSeg = pl.getParameter("HCOM");
        }