Changeset 6812354 for src


Ignore:
Timestamp:
Aug 8, 2018, 4:47:30 PM (16 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master
Children:
e0b852a
Parents:
1f112cc
Message:

src/spectral/dct_ipp.c: use different space for fwd and inv transform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/dct_ipp.c

    r1f112cc r6812354  
    4949struct _aubio_dct_t {
    5050  uint_t size;
    51   Ipp8u* pSpec;
     51  Ipp8u* pSpecFwd;
     52  Ipp8u* pSpecInv;
    5253  Ipp8u* pSpecBuffer;
    5354  Ipp8u* pBuffer;
     
    7980  //    pBufferSize);
    8081
    81   s->pSpec = ippsMalloc_8u(pSpecSize);
     82  s->pSpecFwd = ippsMalloc_8u(pSpecSize);
     83  s->pSpecInv = ippsMalloc_8u(pSpecSize);
    8284  if (pSpecSize > 0) {
    8385    s->pSpecBuffer = ippsMalloc_8u(pSpecBufferSize);
     
    9799  //    pBufferSize);
    98100
    99   status = aubio_ippsDCTFwdInit(&(s->pFwdDCTSpec), size, qualityHint, s->pSpec,
     101  status = aubio_ippsDCTFwdInit(&(s->pFwdDCTSpec), size, qualityHint, s->pSpecFwd,
    100102      s->pSpecBuffer);
    101103  if (status != ippStsNoErr) {
     
    104106  }
    105107
    106   status = aubio_ippsDCTInvInit(&(s->pInvDCTSpec), size, qualityHint, s->pSpec,
     108  status = aubio_ippsDCTInvInit(&(s->pInvDCTSpec), size, qualityHint, s->pSpecInv,
    107109      s->pSpecBuffer);
    108110  if (status != ippStsNoErr) {
     
    121123
    122124void del_aubio_dct(aubio_dct_t *s) {
    123   ippFree(s->pSpec);
     125  ippFree(s->pSpecFwd);
     126  ippFree(s->pSpecInv);
    124127  ippFree(s->pSpecBuffer);
    125128  ippFree(s->pBuffer);
Note: See TracChangeset for help on using the changeset viewer.