[FFmpeg-devel] [PATCH] libavutil: Make changes in softfloat needed for fixed point aac decoder.

Michael Niedermayer michaelni at gmx.at
Sat Apr 25 03:41:50 CEST 2015


On Fri, Apr 24, 2015 at 12:18:10PM +0200, Nedeljko Babic wrote:
> From: Djordje Pesut <djordje.pesut at imgtec.com>
> 
> Functions for sqrt and sincos are added.
> 
> Div function is improved.
> 
> Some changes are made in order for code in softfloat to be usable in fixed aac
> decoder code.
> 
> This doesn't create any impact on current ffmpeg code since softfloat is
> currently not in use and this way we don't need to make much changes in
> implementation of aac fixed point decoder that uses this code.
> 
> Softfloat tests are adjusted.
> 
> Signed-off-by: Nedeljko Babic <nedeljko.babic at imgtec.com>
> ---
>  libavutil/softfloat.c        |   6 +-
>  libavutil/softfloat.h        | 157 +++++++++++++++++++++--
>  libavutil/softfloat_tables.h | 294 +++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 447 insertions(+), 10 deletions(-)
>  create mode 100644 libavutil/softfloat_tables.h
> 
> diff --git a/libavutil/softfloat.c b/libavutil/softfloat.c
> index bf9cfda..2583636 100644
> --- a/libavutil/softfloat.c
> +++ b/libavutil/softfloat.c
> @@ -27,7 +27,7 @@
>  #undef printf
>  
>  int main(void){
> -    SoftFloat one= av_int2sf(1, 0);
> +    SoftFloat one= av_int2sf(1, -1);

av_int2sf(x,y) is supposed to be x * 2 ^ y
"one" is supposed to be 1.0



[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150425/5fc954c3/attachment.asc>


More information about the ffmpeg-devel mailing list