CSJ2K.j2k.codestream.HeaderInfo.COC.ToString C# (CSharp) Метод

ToString() публичный Метод

Display information found in this COC marker segment
public ToString ( ) : System.String
Результат System.String
            public override System.String ToString()
            {
                System.String str = "\n --- COC (" + lcoc + " bytes) ---\n";
                str += (" Component      : " + ccoc + "\n");
                str += " Coding style   : ";
                if (scoc == 0)
                {
                    str += "Default";
                }
                else
                {
                    if ((scoc & 0x1) != 0)
                        str += "Precints ";
                    if ((scoc & 0x2) != 0)
                        str += "SOP ";
                    if ((scoc & 0x4) != 0)
                        str += "EPH ";
                }
                str += "\n";
                str += " Cblk style     : ";
                if (spcoc_cs == 0)
                {
                    str += "Default";
                }
                else
                {
                    if ((spcoc_cs & 0x1) != 0)
                        str += "Bypass ";
                    if ((spcoc_cs & 0x2) != 0)
                        str += "Reset ";
                    if ((spcoc_cs & 0x4) != 0)
                        str += "Terminate ";
                    if ((spcoc_cs & 0x8) != 0)
                        str += "Vert_causal ";
                    if ((spcoc_cs & 0x10) != 0)
                        str += "Predict ";
                    if ((spcoc_cs & 0x20) != 0)
                        str += "Seg_symb ";
                }
                str += "\n";
                str += (" Num. of levels : " + spcoc_ndl + "\n");
                str += (" Cblk dimension : " + (1 << (spcoc_cw + 2)) + "x" + (1 << (spcoc_ch + 2)) + "\n");
                switch (spcoc_t[0])
                {

                    case CSJ2K.j2k.wavelet.FilterTypes_Fields.W9X7:
                        str += " Filter         : 9-7 irreversible\n";
                        break;

                    case CSJ2K.j2k.wavelet.FilterTypes_Fields.W5X3:
                        str += " Filter         : 5-3 reversible\n";
                        break;
                    }
                if (spcoc_ps != null)
                {
                    str += " Precincts      : ";
                    for (int i = 0; i < spcoc_ps.Length; i++)
                    {
                        str += ((1 << (spcoc_ps[i] & 0x000F)) + "x" + (1 << (((spcoc_ps[i] & 0x00F0) >> 4))) + " ");
                    }
                }
                str += "\n";
                return str;
            }