fn decode_fixed_huffman_code<I: Iterator<Item=u8>>(bitreader:&mut Bits<I>) -> Option<u16> {
	match bitreader.read_n(u4::_2)? {
		0 => {
			match bitreader.read_n(u4::_2)? {
				3 => bitreader.read_n(u4::_4),
				x => bitreader.read_n(u4::_3).map(|y| 256 + (x << 3) + y),
			}
		},
		1 => {
			bitreader.read_n(u4::_6).map(|y| 16 + y)
		},
		2 => {
			bitreader.read_n(u4::_6).map(|y| 80 + y)
		},
		3 => {
			match bitreader.read_n(u4::_3)? {
				0 => bitreader.read_n(u4::_3).map(|y| 280 + y),
				x => bitreader.read_n(u4::_4).map(|y| 144 + ((x - 1) << 4) + y),
			}
		},
		_ => panic!("")
	}
}
/// Decode a single a fixed-mode huffman code from the given stream
Decode a single a fixed-mode huffman code from the given stream
Decode a single a fixed - mode huffman code from the given stream
fn decode_fixed_huffman_code<I: Iterator<Item=u8>>(bitreader:&mut Bits<I>) -> Option<u16> {
	match bitreader.read_n(u4::_2)? {
		0 => {
			match bitreader.read_n(u4::_2)? {
				3 => bitreader.read_n(u4::_4),
				x => bitreader.read_n(u4::_3).map(|y| 256 + (x << 3) + y),
			}
		},
		1 => {
			bitreader.read_n(u4::_6).map(|y| 16 + y)
		},
		2 => {
			bitreader.read_n(u4::_6).map(|y| 80 + y)
		},
		3 => {
			match bitreader.read_n(u4::_3)? {
				0 => bitreader.read_n(u4::_3).map(|y| 280 + y),
				x => bitreader.read_n(u4::_4).map(|y| 144 + ((x - 1) << 4) + y),
			}
		},
		_ => panic!("")
	}
}
fn decode_fixed_huffman_code < I : Iterator < Item = u8 > > ( bitreader : & mut Bits < I > ) -> Option < u16 > { match bitreader . read_n ( u4 :: _2 ) ? { 0 => { match bitreader . read_n ( u4 :: _2 ) ? { 3 => bitreader . read_n ( u4 :: _4 ) , x => bitreader . read_n ( u4 :: _3 ) . map ( | y | 256 + ( x << 3 ) + y ) , } } , 1 => { bitreader . read_n ( u4 :: _6 ) . map ( | y | 16 + y ) } , 2 => { bitreader . read_n ( u4 :: _6 ) . map ( | y | 80 + y ) } , 3 => { match bitreader . read_n ( u4 :: _3 ) ? { 0 => bitreader . read_n ( u4 :: _3 ) . map ( | y | 280 + y ) , x => bitreader . read_n ( u4 :: _4 ) . map ( | y | 144 + ( ( x - 1 ) << 4 ) + y ) , } } , _ => panic ! ( " " ) } }
Decode a single a fixed-mode huffman code from the given stream
Decode a single a fixed - mode huffman code from the given stream
bitreader
&mut Bits<I>