Ignore:
Timestamp:
Apr 21, 2016, 9:30:28 PM (4 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
b5bef11
Parents:
f2ce0fc
Message:

ext/aubio-types.h: rewrite array to fvec conversions to reduce memory allocations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/ext/aubio-types.h

    rf2ce0fc rbfe8256  
    5656// defined in aubio-proxy.c
    5757extern PyObject *PyAubio_CFvecToArray (fvec_t * self);
    58 extern fvec_t *PyAubio_ArrayToCFvec (PyObject * self);
     58extern int PyAubio_ArrayToCFvec (PyObject * self, fvec_t *out);
    5959
    60 extern Py_cvec *PyAubio_CCvecToPyCvec (cvec_t * self);
    61 extern cvec_t *PyAubio_ArrayToCCvec (PyObject *input);
     60extern PyObject * PyAubio_CCvecToPyCvec (cvec_t * self, Py_cvec *out);
     61extern int PyAubio_ArrayToCCvec (PyObject *input, cvec_t *i);
    6262
    6363extern PyObject *PyAubio_CFmatToArray (fmat_t * self);
    64 extern fmat_t *PyAubio_ArrayToCFmat (PyObject *input);
     64extern int PyAubio_ArrayToCFmat (PyObject *input, fmat_t *out);
    6565
    6666// hand written wrappers
Note: See TracChangeset for help on using the changeset viewer.