[FFmpeg-devel] [PATCH][GSoC] Implement floating point decoding in ALS

Nicolas George george at nsup.org
Thu Apr 21 15:21:59 CEST 2016


Le tridi 3 floréal, an CCXXIV, Nicolas George a écrit :
> > > +typedef union {
> > > +  float f;
> > > +  struct {
> > > +    unsigned int mantissa : 23;
> > > +    unsigned int exponent : 8;
> > > +    unsigned int sign : 1;
> > > +  } parts;
> > > +} CFloat;
> >
> > Will this work on all systems where FFmpeg can currently be 
> > compiled? Or do you have to use the softfloat api from 
> > libavutil or reuse lagarith code?
> 
> Definitely not. This is the kind of code that should get someone who teaches
> it fired.

This was a big ambiguous, thanks to Carl Eugen for pointing it: I meant that
this code is ugly completely non-portable, and thus unacceptable in FFmpeg's
code base.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160421/3bf3c909/attachment.sig>


More information about the ffmpeg-devel mailing list