[FFmpeg-devel] [PATCH] avcodec/jpeg2000: use powf instead of pow

Ganesh Ajjanagadde gajjanag at mit.edu
Wed Dec 9 13:36:00 CET 2015

On Wed, Dec 9, 2015 at 4:21 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> On Tue, Dec 08, 2015 at 10:44:31PM -0500, Ganesh Ajjanagadde wrote:
>> It may be entirely possible to optimize further by exploiting the fact
>> that it is always an integer exponent. However, care must be taken since
>> the base itself is not an integer, i.e a naive repeated squaring or
>> similar such algorithm may be inaccurate.
>> Range information can only be obtained by knowledge of the spec, so the
>> low hanging pow->powf is done.
> this changes the decoder output (not vissible though)
> http://ffmpeg.org/trac/ffmpeg/raw-attachment/ticket/1211/8bpp.jp2
> also i think its better to have this at double precission

Would have been unambiguous if that was a "=" and not a "*=". Will
exercise greater caution with this stuff in the future, thanks. Patch

> [...]
> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
> Democracy is the form of government in which you can choose your dictator
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

More information about the ffmpeg-devel mailing list