Adelsbach/VSIPL
Core Programming Reference Guide
DD-00016-015
Core

5.2.2 vsip_dconv1d_destroy_p - Destroy 1D Convolution Object

vsip_length vsip_conv1d_destroy_f(vsip_conv1d_f *conv1d);
Description

This function releases all memory and resources associated with a 1D convolution object that was previously created with vsip_dconv1d_create_p .

Parameters
Return Value
Example

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);