Changeset 03df4dc
- Timestamp:
- Oct 4, 2017, 1:12:02 PM (7 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:
- 53457f6
- Parents:
- 2e5c52e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/dct_ipp.c
r2e5c52e r03df4dc 53 53 Ipp8u* pSpecBuffer; 54 54 Ipp8u* pBuffer; 55 Ipp8u* pSpecInv;56 Ipp8u* pSpecBufferInv;57 Ipp8u* pBufferInv;58 55 aubio_ippsDCTFwdSpec* pFwdDCTSpec; 59 56 aubio_ippsDCTInvSpec* pInvDCTSpec; … … 101 98 // pBufferSize); 102 99 103 s->pSpecInv = ippsMalloc_8u(pSpecSize);104 if (pSpecSize > 0) {105 s->pSpecBufferInv = ippsMalloc_8u(pSpecBufferSize);106 } else {107 s->pSpecBufferInv = NULL;108 }109 s->pBufferInv = ippsMalloc_8u(pBufferSize);110 111 100 status = aubio_ippsDCTFwdInit(&(s->pFwdDCTSpec), size, qualityHint, s->pSpec, 112 101 s->pSpecBuffer); … … 116 105 } 117 106 118 status = aubio_ippsDCTInvInit(&(s->pInvDCTSpec), size, qualityHint, 119 s->pSpec Inv, s->pSpecBufferInv);107 status = aubio_ippsDCTInvInit(&(s->pInvDCTSpec), size, qualityHint, s->pSpec, 108 s->pSpecBuffer); 120 109 if (status != ippStsNoErr) { 121 110 AUBIO_ERR("dct: failed to initialize inv dct. IPP error: %d\n", status); … … 136 125 ippFree(s->pSpecBuffer); 137 126 ippFree(s->pBuffer); 138 ippFree(s->pSpecInv);139 ippFree(s->pSpecBufferInv);140 ippFree(s->pBufferInv);141 127 AUBIO_FREE(s); 142 128 }
Note: See TracChangeset
for help on using the changeset viewer.