CSJ2K.j2k.entropy.CBlkSizeSpec.getCBlkHeight C# (CSharp) Метод

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

Returns the code-block height:
  • for the specified tile/component
  • for the specified tile
  • for the specified component
  • default value
The value returned depends on the value of the variable 'type' which can take the following values :
  • SPEC_DEF -> Default value is returned. t and c values are ignored
  • SPEC_COMP_DEF -> Component default value is returned. t value is ignored
  • SPEC_TILE_DEF -> Tile default value is returned. c value is ignored
  • SPEC_TILE_COMP -> Tile/Component value is returned.
public getCBlkHeight ( byte type, int t, int c ) : int
type byte The type of the value we want to be returned /// ///
t int The tile index /// ///
c int the component index /// ///
Результат int
        public virtual int getCBlkHeight(byte type, int t, int c)
        {
            //UPGRADE_TODO: The 'System.Int32' structure does not have an equivalent to NULL. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1291'"
            System.Int32[] dim = null;
            switch (type)
            {

                case SPEC_DEF:
                    dim = (System.Int32[]) getDefault();
                    break;

                case SPEC_COMP_DEF:
                    dim = (System.Int32[]) getCompDef(c);
                    break;

                case SPEC_TILE_DEF:
                    dim = (System.Int32[]) getTileDef(t);
                    break;

                case SPEC_TILE_COMP:
                    dim = (System.Int32[]) getTileCompVal(t, c);
                    break;
                }
            return dim[1];
        }