Re: [libav-devel] [PATCH] Experimental DCA encoder

2011-04-15 Thread Kostya
On Fri, Apr 08, 2011 at 01:33:21AM +0200, Alexander E. Patrakov wrote: --- Changelog |1 + doc/general.texi |2 +- libavcodec/Makefile|1 + libavcodec/allcodecs.c |2 +- libavcodec/dcaenc.c| 587

[libav-devel] [PATCH] Experimental DCA encoder

2011-04-15 Thread Diego Biurrun
From: Alexander E. Patrakov patra...@gmail.com --- Changelog |1 + doc/general.texi |2 +- libavcodec/Makefile|1 + libavcodec/allcodecs.c |2 +- libavcodec/dcaenc.c| 587 libavcodec/dcaenc.h| 544

Re: [libav-devel] [PATCH] Experimental DCA encoder

2011-04-15 Thread Diego Biurrun
On Fri, Apr 15, 2011 at 04:39:48PM +0200, Diego Biurrun wrote: From: Alexander E. Patrakov patra...@gmail.com Patch updated to apply against HEAD and prettified. Benjamin, rebase any review comments on top of this one :) Diego ___ libav-devel mailing

[libav-devel] [PATCH] Experimental DCA encoder

2011-04-15 Thread Diego Biurrun
From: Alexander E. Patrakov patra...@gmail.com --- Changelog |1 + doc/general.texi |2 +- libavcodec/Makefile|1 + libavcodec/allcodecs.c |2 +- libavcodec/dcaenc.c| 587 libavcodec/dcaenc.h| 544

Re: [libav-devel] [PATCH] Experimental DCA encoder v2

2011-04-14 Thread Benjamin Larsson
Ping MvH Benjamin Larsson ___ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel

Re: [libav-devel] [PATCH] Experimental DCA encoder

2011-04-08 Thread Benjamin Larsson
On 04/08/2011 03:58 AM, Ronald S. Bultje wrote: Hi, 2011/4/7 Benjamin Larsson ba...@ludd.ltu.se: +static inline int32_t mul32(int32_t a, int32_t b) +{ +/* on =i686, gcc compiles this into a single imull instruction */ +int64_t r = (int64_t)a * b; +/* round the result before

Re: [libav-devel] [PATCH] Experimental DCA encoder

2011-04-08 Thread Diego Biurrun
On Fri, Apr 08, 2011 at 01:41:37AM +0200, Benjamin Larsson wrote: --- libavcodec/Makefile|1 + libavcodec/allcodecs.c |2 +- libavcodec/dcaenc.c| 581 libavcodec/dcaenc.h| 544

Re: [libav-devel] [PATCH] Experimental DCA encoder

2011-04-08 Thread Diego Biurrun
On Fri, Apr 08, 2011 at 01:41:37AM +0200, Benjamin Larsson wrote: [...] Please make sure this compiles with --disable-everything --enable-encoder=dca. Diego ___ libav-devel mailing list libav-devel@libav.org

Re: [libav-devel] [PATCH] Experimental DCA encoder

2011-04-08 Thread Ronald S. Bultje
Hi, On Fri, Apr 8, 2011 at 5:02 AM, Benjamin Larsson ba...@ludd.ltu.se wrote: On 04/08/2011 03:58 AM, Ronald S. Bultje wrote: 2011/4/7 Benjamin Larsson ba...@ludd.ltu.se: +static void qmf_decompose(DCAContext *c, int32_t in[32], int32_t out[32], int channel) +{ +    int band, i, j, k; +  

Re: [libav-devel] [PATCH] Experimental DCA encoder

2011-04-08 Thread Kostya
On Fri, Apr 08, 2011 at 07:53:32AM -0400, Ronald S. Bultje wrote: Hi, [...] Ah, that's what the fixme is for I guess. Sounds ok to me then. (Didn't Mans just implement fixed-point FFT or something like that? Or was that just MDCT?) MDCT is often implemented via FFT. P.S. And if somebody

Re: [libav-devel] [PATCH] Experimental DCA encoder

2011-04-08 Thread Måns Rullgård
Ronald S. Bultje rsbul...@gmail.com writes: Hi, 2011/4/7 Benjamin Larsson ba...@ludd.ltu.se: +static inline int32_t mul32(int32_t a, int32_t b) +{ +/* on =i686, gcc compiles this into a single imull instruction */ +int64_t r = (int64_t)a * b; +/* round the result before

[libav-devel] [PATCH] Experimental DCA encoder v2

2011-04-08 Thread Benjamin Larsson
Fixed some things but not others. MvH Benjamin Larsson From 20a2180193d0fcfaaf71fb1d9f3bb4cd90a1ce0f Mon Sep 17 00:00:00 2001 From: Alexander E. Patrakov patra...@gmail.com Date: Fri, 8 Apr 2011 01:33:21 +0200 Subject: [PATCH] Experimental DCA encoder --- Changelog |1 +

[libav-devel] [PATCH] Experimental DCA encoder

2011-04-07 Thread Benjamin Larsson
MvH Benjamin Larsson From 72e6371e0c98e344275173452cec98940a33ef39 Mon Sep 17 00:00:00 2001 From: Alexander E. Patrakov patra...@gmail.com Date: Fri, 8 Apr 2011 01:33:21 +0200 Subject: [PATCH] Experimental DCA encoder --- libavcodec/Makefile|1 + libavcodec/allcodecs.c |2 +-

Re: [libav-devel] [PATCH] Experimental DCA encoder

2011-04-07 Thread Ronald S. Bultje
Hi, 2011/4/7 Benjamin Larsson ba...@ludd.ltu.se: +static inline int32_t mul32(int32_t a, int32_t b) +{ +/* on =i686, gcc compiles this into a single imull instruction */ +int64_t r = (int64_t)a * b; +/* round the result before truncating - improves accuracy */ +return (r +