Changeset 6812354 for src/spectral/dct_ipp.c
- Timestamp:
- Aug 8, 2018, 4:47:30 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
- Children:
- e0b852a
- Parents:
- 1f112cc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/dct_ipp.c
r1f112cc r6812354 49 49 struct _aubio_dct_t { 50 50 uint_t size; 51 Ipp8u* pSpec; 51 Ipp8u* pSpecFwd; 52 Ipp8u* pSpecInv; 52 53 Ipp8u* pSpecBuffer; 53 54 Ipp8u* pBuffer; … … 79 80 // pBufferSize); 80 81 81 s->pSpec = ippsMalloc_8u(pSpecSize); 82 s->pSpecFwd = ippsMalloc_8u(pSpecSize); 83 s->pSpecInv = ippsMalloc_8u(pSpecSize); 82 84 if (pSpecSize > 0) { 83 85 s->pSpecBuffer = ippsMalloc_8u(pSpecBufferSize); … … 97 99 // pBufferSize); 98 100 99 status = aubio_ippsDCTFwdInit(&(s->pFwdDCTSpec), size, qualityHint, s->pSpec ,101 status = aubio_ippsDCTFwdInit(&(s->pFwdDCTSpec), size, qualityHint, s->pSpecFwd, 100 102 s->pSpecBuffer); 101 103 if (status != ippStsNoErr) { … … 104 106 } 105 107 106 status = aubio_ippsDCTInvInit(&(s->pInvDCTSpec), size, qualityHint, s->pSpec ,108 status = aubio_ippsDCTInvInit(&(s->pInvDCTSpec), size, qualityHint, s->pSpecInv, 107 109 s->pSpecBuffer); 108 110 if (status != ippStsNoErr) { … … 121 123 122 124 void del_aubio_dct(aubio_dct_t *s) { 123 ippFree(s->pSpec); 125 ippFree(s->pSpecFwd); 126 ippFree(s->pSpecInv); 124 127 ippFree(s->pSpecBuffer); 125 128 ippFree(s->pBuffer);
Note: See TracChangeset
for help on using the changeset viewer.