Hello,
S10Q8 is a fixed point number. It is a number with a signed value of
10-bits with 8 of them being the fraction.
See sprue38a.pdf for info about VPFE resizer. See
http://en.wikipedia.org/wiki/Fixed-point_arithmetic, external links of
this page or google "fixed point" for fixed point infos.
It is rather simple.
If you have a floating point number and you want to obtain the S10Q8 you
have to multiply for 256.
If you have a S10Q8 number and you want to obtaing the floating point
number you have to divide by 256.
Keep in mind that you have (for S10Q8) 1 bit for sign, 1 bit for integer
part and 8 bit for fraction.
The signed value go from (2^9) -512 to 511 that meas you can only use
floating point values from -512/256 = 2 to -511/256 = -1,99609375.
I hope this help you.
--
Emanuele Ghidoli
Software Engineer
Speed Automazione s.r.l.
viale G.B.Stucchi 66/3 - 20052 Monza - Italia
tel: centralino (+39)039/28287.1
fax: (+39)039/28287.333
www.speedautomazione.it
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source