[codec] CUSTOM MODES on Opus 0.9.8 and 16bit bug fixed

Riccardo Micci <riccardo.micci@cambridgeconsultants.com> Tue, 20 March 2012 16:51 UTC

Return-Path: <riccardo.micci@cambridgeconsultants.com>
X-Original-To: codec@ietfa.amsl.com
Delivered-To: codec@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0D60821F8722 for <codec@ietfa.amsl.com>; Tue, 20 Mar 2012 09:51:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.002
X-Spam-Level:
X-Spam-Status: No, score=0.002 tagged_above=-999 required=5 tests=[BAYES_50=0.001, HTML_MESSAGE=0.001]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6FC2FJ03zyG1 for <codec@ietfa.amsl.com>; Tue, 20 Mar 2012 09:51:37 -0700 (PDT)
Received: from cambridgeuk-g01.cambridgeconsultants.com (cambridgeuk-g01.cambridgeconsultants.com [193.35.222.39]) by ietfa.amsl.com (Postfix) with ESMTP id CD56B21F8721 for <codec@ietf.org>; Tue, 20 Mar 2012 09:51:36 -0700 (PDT)
X-Disclaimed: 52110
To: codec@ietf.org
MIME-Version: 1.0
X-KeepSent: E7FDB5DE:4206C63D-802579C7:005B6740; type=4; name=$KeepSent
X-Mailer: Lotus Notes Release 8.5.2FP1 November 30, 2010
Message-ID: <OFE7FDB5DE.4206C63D-ON802579C7.005B6740-802579C7.005C9B7A@camcon.co.uk>
From: Riccardo Micci <riccardo.micci@cambridgeconsultants.com>
Date: Tue, 20 Mar 2012 16:51:32 +0000
X-MIMETrack: S/MIME Sign by Notes Client on Riccardo Micci/HO/CCL(Release 8.5.2FP1|November 30, 2010) at 20/03/2012 16:51:31, Serialize by Notes Client on Riccardo Micci/HO/CCL(Release 8.5.2FP1|November 30, 2010) at 20/03/2012 16:51:31, Serialize complete at 20/03/2012 16:51:31, S/MIME Sign failed at 20/03/2012 16:51:31: The cryptographic key was not found, Serialize by Router on CambridgeUK-G01/SVR/CCL(Release 8.5.2FP3|July 10, 2011) at 20/03/2012 16:51:40, Serialize complete at 20/03/2012 16:51:40
Content-Type: multipart/alternative; boundary="=_alternative 005C9B78802579C7_="
Subject: [codec] CUSTOM MODES on Opus 0.9.8 and 16bit bug fixed
X-BeenThere: codec@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Codec WG <codec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/codec>, <mailto:codec-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/codec>
List-Post: <mailto:codec@ietf.org>
List-Help: <mailto:codec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/codec>, <mailto:codec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 20 Mar 2012 16:54:00 -0000

Hi,
I have some questions regarding the custom modes on Opus 0.9.8. I used to 
work with Celt 0.7.1 and I see the situation changed a bit since then. On 
Celt 0.7.1 the memory was dynamically allocated according to the input 
parameters.
Now I see that "celt_encoder_get_size" is actually calling 
"opus_custom_mode_create(48000, 960, NULL);" Does this mean that the 
allocation is cast to these settings?
I'd like also to understand what is the define "CUSTOM_MODES" doing. I see 
is disabled by default, can someone point me to the right document? I'm 
writing this because on my embedded platform Opus is using too much memory 
and I'd like to see how it can be reduced

I also fixed a bug on 16bit platforms:
file: laplace.c, function: ec_laplace_get_freq1
the last line of the function: "return ft*(16384-decay)>>15;" must be 
modified into "return ft*(16384L-decay)>>15;" to correctly work on a 16bit 
platform.



Regards
Riccardo


Riccardo Micci
Senior DSP Engineer, Wireless Division 
Cambridge Consultants
Science Park, Milton Road 
Cambridge, CB4 0DW, England
Switchboard: +44 (0)1223 420024
Direct dial: +44 (0)1223 392402
Mobile: +44 (0)
Fax: +44 (0)1223 423373
riccardo.micci@cambridgeconsultants.com
www.CambridgeConsultants.com
 





This email is from Cambridge Consultants Limited, Science Park, Milton 
Road, Cambridge CB4 0DW with registered number 1036298 England. It may 
contain confidential information. It is intended for the addressee only 
and may not be copied or disclosed to any third party without our 
permission. If you are not the intended recipient please contact the 
sender as soon as possible and delete the material from any computer. If 
this email has been sent as a personal message to the addressee, the 
sender is not acting in his/her capacity as an employee or officer of 
Cambridge Consultants Limited and no liability is accepted for the content 
of any such email. Outgoing email may be monitored for the purpose of 
ensuring compliance with our email policy and relevant laws.