dsp_resampling.h File Reference


Detailed Description

This module provides a useful set of signal re-sampling functions.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file dsp_resampling.h.

#include "dsp.h"

Go to the source code of this file.

Data Structures

struct  dsp_resampling_context_t
 This structure is used to store the context of streaming information during resampling process. More...
struct  dsp_resampling_t
 This structure is used to store the context of a resampling process. More...

Resampling setup function

enum  dsp_resampling_options_t { DSP_RESAMPLING_OPTIONS_NONE, DSP_RESAMPLING_OPTIONS_NORMALIZE_FILTER_COEFFICIENTS }
 Options to attribute to the resampling algorithm. More...
typedef void *(* malloc_fct_t )(int)
 A pointer on a memory allocation function.
dsp_resampling_tdsp16_resampling_setup (int input_sample_rate, int output_sample_rate, int buffer_size, int filter_order, int nb_channels, malloc_fct_t malloc_fct, dsp_resampling_options_t options)
 This function is the 16-bit signal resampling setup function. It has to be called only once at the initialization of the resampling process.

Resampling setup function

typedef void(* free_fct_t )(void *)
 A pointer on a memory free function.
void dsp16_resampling_free (dsp_resampling_t *dsp_resampling, free_fct_t free_fct)
 Function used to free the previously allocted structure issued by the dsp16_resampling_setup function.

Functions

void dsp16_resampling_compute (dsp_resampling_t *dsp_resampling, dsp16_t *output, dsp16_t *input, int channel)
 The re-sampling computation function.
int dsp16_resampling_get_output_current_buffer_size (dsp_resampling_t *dsp_resampling)
 Returns the current length in sample of the output signal.
int dsp16_resampling_get_output_max_buffer_size (dsp_resampling_t *dsp_resampling)
 Returns the maximal length in sample of the output signal.
bool dsp16_resampling_link (dsp_resampling_t *dsp_resampling_output, dsp_resampling_t *dsp_resampling_input)
 Link a stream previously re-sampled using the dsp_resampling_input resampling structure with the new re-sampling structure dsp_resampling_output. This is used to keep the continuity with two pieces of a stream re-sampled using two different re-sampling parameters.


Generated on Fri Feb 19 02:27:59 2010 for AVR32 - Fixed point DSP Library by  doxygen 1.5.5