selami tastan
2011-Apr-15 07:45 UTC
[CELT-dev] Can I use VBR option to change byte_per_packet dynamically ?
Hi,I have been trying some different sample rate and bitrate combinations to get a feel for how CELT behaves,too, like Andrew Lentvorski. But I want to use VBR option.I want to ask a question about VBR in CELT codec.Can we use VBR option in CELT ??? "byte_per_packet" variable in code means constant bit rate, does not it ?In this code : bytes_per_packet is constant.len = celt_encode(enc, in_short, frame_size, data, bytes_per_packet);....."len" is equal "bte_per_packet" evey time. celt_encoder_ctl(st, CELT_SET_VBR(1);celt_encoder_ctl(st, CELT_SET_VBR_CONSTRAINT(0);May I write two lines codes to active VBR ?Selami Tastan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/opus/attachments/20110415/c2070f8c/attachment-0002.htm
selami tastan
2011-Apr-27 15:24 UTC
[CELT-dev] Compile a fixed-point version of CELT on TI C55 DSP ?
Hi , I want to test a fixed-point version of CELT on TI C55x DSP. I create a config.h file that defines all the features that CCS compiler. This is right ???Can anyone only write any example codes (conf .h file) for that issue ?In my opinion, I can not compile CELT on TI C55 because of memory allocation. Can anyone help ??? #define CELT_BUILD 1 /* Version extra */#define CELT_EXTRA_VERSION "" /* Version major */#define CELT_MAJOR_VERSION 0 /* Version micro */#define CELT_MICRO_VERSION 2 /* Version minor */#define CELT_MINOR_VERSION 5 /* Complete version string */#define CELT_VERSION "0.6.0" //#define restrict #define INLINE inline#define inline inline #define USE_ALLOCA 1 /* Enable support for TI C55X DSP */#define CONFIG_TI_C55X /* Comment out the next line for floating-point code */#define FIXED_POINT 1 #define OPUS_BUILD 1 /* Get rid of the CELT VS compile warnings */ #define CUSTOM_MODES /* We don't support visibility on Win32 */#define EXPORT -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/opus/attachments/20110427/70b8cd1d/attachment-0002.htm
Jean-Marc Valin
2011-Apr-27 15:54 UTC
[CELT-dev] Compile a fixed-point version of CELT on TI C55 DSP ?
If you don't post the error, there's no way anyone can help you. Also, > /* We don't support visibility on Win32 */< /div> the </div> surely doesn't help. Jean-Marc On 11-04-27 11:24 AM, selami tastan wrote:> Hi , > > I want to test a fixed-point version of CELT on TI C55x DSP. > I create a config.h file that defines all the features that CCS > compiler. This is right ??? > Can anyone only write any example codes (conf .h file) for that issue ? > In my opinion, I can not compile CELT on TI C55 because of memory > allocation. Can anyone help ??? > > > #define CELT_BUILD 1 > > /* Version extra */ > #define CELT_EXTRA_VERSION "" > > /* Version major */ > #define CELT_MAJOR_VERSION 0 > /* Version micro */ > #define CELT_MICRO_VERSION 2 > > /* Version minor */ > #define CELT_MINOR_VERSION 5 > > /* Complete version string */ > #define CELT_VERSION "0.6.0" > > //#define restrict > #define INLINEinline > #define inline inline > > #define USE_ALLOCA 1 > > /* Enable support for TI C55X DSP */ > #define CONFIG_TI_C55X > > /* Comment out the next line for floating-point code */ > #define FIXED_POINT 1 > > #define OPUS_BUILD 1 > > /* Get rid of the CELT VS compile warnings */ > > #define CUSTOM_MODES > > /* We don't support visibility on Win32 */< /div> > #define EXPORT > > > > > _______________________________________________ > celt-dev mailing list > celt-dev at xiph.org > http://lists.xiph.org/mailman/listinfo/celt-dev
selami tastan
2011-Apr-28 13:37 UTC
[CELT-dev] FW: Compile a fixed-point version of CELT on TI C55 DSP ?
I defined USE_ALLOCA in config.h. Error is in stach_alloc.h. Error : unresolved symbol _alloca, first referenced in ./libcelt/vq.obj The code is in stack_alloc.h : #if defined(VAR_ARRAYS)..........#elif defined(USE_ALLOCA) #define VARDECL(type, var) type *var # ifdef WIN32# define ALLOC(var, size, type) var = ((type*)_alloca(sizeof(type)*(size)))# else# define ALLOC(var, size, type) var = ((type*)alloca(sizeof(type)*(size)))# endif #define SAVE_STACK#define RESTORE_STACK#define ALLOC_STACK #else..........#endif /*VAR_ARRAYS*/ CELT has been build when I changed "# define ALLOC(var, size, type) var = ((type*)alloca(sizeof(type)*(size)))"with "# define ALLOC(var, size, type) var = ((type*)calloc(sizeof(type)*(size),1))"and then "# define ALLOC(var, size, type) var = ((type*)malloc(sizeof(type)*(size)))",but application is broken down. I think this is because of bad memory allocation.> Date: Wed, 27 Apr 2011 11:54:27 -0400 > From: jmvalin at jmvalin.ca > To: selami-tastan at windowslive.com > CC: celt-dev at xiph.org > Subject: Re: [CELT-dev] Compile a fixed-point version of CELT on TI C55 DSP ? > > If you don't post the error, there's no way anyone can help you. Also, > > > /* We don't support visibility on Win32 */< /div> > > the </div> surely doesn't help. > > Jean-Marc > > On 11-04-27 11:24 AM, selami tastan wrote: > > Hi , > > > > I want to test a fixed-point version of CELT on TI C55x DSP. > > I create a config.h file that defines all the features that CCS > > compiler. This is right ??? > > Can anyone only write any example codes (conf .h file) for that issue ? > > In my opinion, I can not compile CELT on TI C55 because of memory > > allocation. Can anyone help ??? > > > > > > #define CELT_BUILD 1 > > > > /* Version extra */ > > #define CELT_EXTRA_VERSION "" > > > > /* Version major */ > > #define CELT_MAJOR_VERSION 0 > > /* Version micro */ > > #define CELT_MICRO_VERSION 2 > > > > /* Version minor */ > > #define CELT_MINOR_VERSION 5 > > > > /* Complete version string */ > > #define CELT_VERSION "0.6.0" > > > > //#define restrict > > #define INLINEinline > > #define inline inline > > > > #define USE_ALLOCA 1 > > > > /* Enable support for TI C55X DSP */ > > #define CONFIG_TI_C55X > > > > /* Comment out the next line for floating-point code */ > > #define FIXED_POINT 1 > > > > #define OPUS_BUILD 1 > > > > /* Get rid of the CELT VS compile warnings */ > > > > #define CUSTOM_MODES > > > > /* We don't support visibility on Win32 */< /div> > > #define EXPORT > > > > > > > > > > _______________________________________________ > > celt-dev mailing list > > celt-dev at xiph.org > > http://lists.xiph.org/mailman/listinfo/celt-dev-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/opus/attachments/20110428/308d7623/attachment-0002.htm
Gregory Maxwell
2011-Apr-28 14:20 UTC
[CELT-dev] FW: Compile a fixed-point version of CELT on TI C55 DSP ?
2011/4/28 selami tastan <selami-tastan at windowslive.com>:> I defined?USE_ALLOCA??in config.h. Error is in stach_alloc.h. > > Error :?unresolved symbol _alloca, first referenced in ./libcelt/vq.objIf your system does not support ALLOCA then do not define USE_ALLOCA.