[Vorbis] Block sizes

Graham Mitchell graham at grahammitchell.com
Sat Sep 3 12:01:54 PDT 2005


> In section 4.2.2, the text for lines 7 and 8 say, "2 exponent (read 4 bits
> as unsigned integer)".  This gave me the impression that the block size
> being read (call it "x") is finalized as x^2 (an exponent of 2)
> mathematically.

What you're doing works out to 2^x.  To do x^2, it'd say "(read 4 bits as
unsigned integer) exponent 2".

Note that 1 << x is probably much faster than 2^x in hardware.

--
Graham Mitchell - computer science teacher, Leander High School
"Reading is to the mind what exercise is to the body."
	-- Sir Richard Steele
_______________________________________________
Vorbis mailing list
Vorbis at xiph.org
http://lists.xiph.org/mailman/listinfo/vorbis



More information about the Vorbis mailing list