CSJ2K.j2k.wavelet.WTDecompSpec.getDecompType C# (CSharp) Method

getDecompType() public method

Returns the decomposition type to be used in component 'n' and tile 't'.

NOTE: The tile specific things are not supported yet

public getDecompType ( int n ) : int
n int The component index. /// ///
return int
        public virtual int getDecompType(int n)
        {
            switch (specValType[n])
            {

                case DEC_SPEC_MAIN_DEF:
                    return mainDefDecompType;

                case DEC_SPEC_COMP_DEF:
                    return compMainDefDecompType[n];

                case DEC_SPEC_TILE_DEF:
                    throw new NotImplementedException();

                case DEC_SPEC_TILE_COMP:
                    throw new NotImplementedException();

                default:
                    throw new System.InvalidOperationException("Internal JJ2000 error");

            }
        }