public static int ReadSignedBits(this H264Bitstream h264Bitstream, int count)
        {
            uint num1 = h264Bitstream.ReadBits(count);
            int  num2 = 32 - count;

            return((int)num1 << num2 >> num2);
        }
        public static uint ReadFfSum(this H264Bitstream h264Bitstream)
        {
            uint num1 = 0;
            uint num2;

            do
            {
                num2  = h264Bitstream.ReadBits(8);
                num1 += num2;
            }while ((int)num2 == (int)byte.MaxValue);
            return(num1);
        }
        public static uint ReadUe(this H264Bitstream h264Bitstream)
        {
            int count = 0;

            while (true)
            {
                if (0 == (int)h264Bitstream.ReadBits(1))
                {
                    ++count;
                }
                else
                {
                    break;
                }
            }
            if (0 == count)
            {
                return(0);
            }
            uint num = h264Bitstream.ReadBits(count);

            return((uint)((1 << count) - 1) + num);
        }