Example #1
0
        /// <summary>
        /// Retrieves the VLC code correspondig to a bit <paramref name="code"/>.
        /// </summary>
        /// <param name="code">the code of length <c>Bits</c></param>
        /// <returns>the VLC code, null if </c>code<c> is not in this table</returns>
        public Vlc GetVlc(uint code)
        {
            Vlc    vlc   = _lut[(code >> (_bits - Length)) - Code];
            VlcLut table = (vlc as VlcLut);

            return((table == null) ? vlc : table.GetVlc(code));
        }
Example #2
0
 /// <summary>
 /// Retrieves the VLC code correspondig to a bit <paramref name="code"/>.
 /// </summary>
 /// <param name="code">the code of length <c>Bits</c></param>
 /// <returns>the VLC code, null if </c>code<c> is not in this table</returns>
 public Vlc GetVlc(uint code)
 {
     return(_lut.GetVlc(code));
 }