[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Support for 8 bit integers
From: |
Mads Lindstrøm |
Subject: |
Re: Support for 8 bit integers |
Date: |
Sun, 30 Nov 2003 15:19:44 -0600 |
Thank you for the reply, but it is really the 8x
memory that is my problem. When working with images
sequences (video) you quickly use a lot of memory.
Multiplying the memory requirements with 8 just makes
the problem 8 times more serious.
As a sidenote, if Octave supported "true" integers
then MMX instructions could be used and thereby gain a
lot of speed.
--- address@hidden skrev: > Other than
requiring 8x memory, the following is the
> same as uint8.
>
> function y = uint8(x)
> y = round(x); # or maybe ceil() or floor().
> y(y<0) = 0;
> y(y>255) = 255;
> endfunction
>
> Paul Kienzle
Yahoo! Mail (http://dk.mail.yahoo.com) - Gratis: 6 MB lagerplads, spamfilter og
virusscan
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------