vsip_length vsip_conv1d_destroy_f(vsip_conv1d_f *conv1d);
This function releases all memory and resources associated with a 1D convolution object that was previously created with vsip_dconv1d_create_p .
vsip_dconv1d_p* conv1d: Pointer to the 1D convolution object to be destroyed.
Returns 0.
vsip_conv1d_f *conv; vsip_vview_f *h; vsip_length h_len = 31; // Impulse response length vsip_length n = 1024; // Input signal length // Create impulse response vector h = vsip_vcreate_f(h_len, VSIP_MEM_NONE); // Create convolution object conv = vsip_conv1d_create_f(h, VSIP_NOSYM, n, 1, VSIP_SUPPORT_FULL, 100, VSIP_ALG_TIME); if (conv == NULL) { fprintf(stderr, "Error: Could not create convolution object\n"); return; } // Use the convolution object for your signal processing // ... your convolution operations ... // Destroy convolution object when done vsip_conv1d_destroy_f(conv); vsip_valldestroy_f(h);