[vlc-devel] [PATCH] MP4: Parse transformation matrix

Jean-Baptiste Kempf jb at videolan.org
Thu Jan 12 10:59:28 CET 2012


On Thu, Jan 12, 2012 at 09:11:28AM +0100, Rémi Denis-Courmont wrote :
> On Thu, 12 Jan 2012 10:51:35 +0530, Gaurav Narula <gnarula94 at gmail.com>
> wrote:
> > +/* convert 16.16 fixed point to floating point */
> > +static double conv_fx( int32_t fx ) {
> > +    double fp = fx;
> > +    fp /= 65536.;
> > +    return fp;
> > +}
> > +
> 
> That's a lot of code to divide by 65536.

Are there better ways to do 16.16 fixed point to floating point
conversions, that are correct?

Best regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list