[vorbis-dev] Encoding in Delphi - Help
Lourens Veen
lourens at rainbowdesert.net
Sat Nov 8 13:21:28 PST 2003
On Sat 8 November 2003 21:14, Crock Real wrote:
> > Did you try turning off array bounds checking?
>
> Well, I don't know ... :-) How to do that?
> And if I didn't, it reduces the speed so much???
> 'cause it takes 5 minutes instead of 1...
Well, looking at the uninterleave code, you've got 8 array accesses
per sample. For each of these, the bounds must be checked. That's
quite a lot of computation. You should be able to turn it off in
the compiler options.
> And still don't understand the difference between big and little
> endian. The both way make the same result. So, why are these two
> options? (in the sample_encoder.c there is only 1)
The difference between little and big endian is in the way 16 and 32
bit values are stored. Little endian stores them with the little
end (least significant byte) first, while big endian stores them
the other way around. Big endian is standard on networks and used
by Motorola machines (ie Macs and PowerPC) and Sun SPARC, while
little endian is used by x86 machines.
More information about the Vorbis-dev
mailing list