shithub: aubio

Download patch

ref: 8c5019445e83d74702d6a68af7b1789a9afd8369
parent: 06baeb26af03646235eb02334006219966443fa8
author: Paul Brossier <piem@piem.org>
date: Wed Aug 8 12:49:36 EDT 2018

src/spectral/dct_ipp.c: rename to aubio_dct_ipp

--- a/src/spectral/dct_ipp.c
+++ b/src/spectral/dct_ipp.c
@@ -46,7 +46,9 @@
 #define aubio_ippsDCTInv               ippsDCTInv_64f
 #endif
 
-struct _aubio_dct_t {
+typedef struct _aubio_dct_ipp_t aubio_dct_ipp_t;
+
+struct _aubio_dct_ipp_t {
   uint_t size;
   Ipp8u* pSpecFwd;
   Ipp8u* pSpecInv;
@@ -56,9 +58,11 @@
   aubio_ippsDCTInvSpec* pInvDCTSpec;
 };
 
-aubio_dct_t * new_aubio_dct (uint_t size) {
-  aubio_dct_t * s = AUBIO_NEW(aubio_dct_t);
+void del_aubio_dct_ipp (aubio_dct_ipp_t *s);
 
+aubio_dct_ipp_t * new_aubio_dct_ipp (uint_t size) {
+  aubio_dct_ipp_t * s = AUBIO_NEW(aubio_dct_ipp_t);
+
   const IppHintAlgorithm qualityHint = ippAlgHintAccurate; // ippAlgHintFast;
   int pSpecSize, pSpecBufferSize, pBufferSize;
   IppStatus status;
@@ -117,11 +121,11 @@
   return s;
 
 beach:
-  del_aubio_dct(s);
+  del_aubio_dct_ipp(s);
   return NULL;
 }
 
-void del_aubio_dct(aubio_dct_t *s) {
+void del_aubio_dct_ipp(aubio_dct_ipp_t *s) {
   ippFree(s->pSpecFwd);
   ippFree(s->pSpecInv);
   ippFree(s->pSpecBuffer);
@@ -129,7 +133,7 @@
   AUBIO_FREE(s);
 }
 
-void aubio_dct_do(aubio_dct_t *s, const fvec_t *input, fvec_t *output) {
+void aubio_dct_ipp_do(aubio_dct_ipp_t *s, const fvec_t *input, fvec_t *output) {
 
   aubio_ippsDCTFwd((const aubio_IppFloat*)input->data,
       (aubio_IppFloat*)output->data, s->pFwdDCTSpec, s->pBuffer);
@@ -136,7 +140,7 @@
 
 }
 
-void aubio_dct_rdo(aubio_dct_t *s, const fvec_t *input, fvec_t *output) {
+void aubio_dct_ipp_rdo(aubio_dct_ipp_t *s, const fvec_t *input, fvec_t *output) {
 
   aubio_ippsDCTInv((const aubio_IppFloat*)input->data,
       (aubio_IppFloat*)output->data, s->pInvDCTSpec, s->pBuffer);