Logo Search packages:      
Sourcecode: schroedinger version File versions  Download package

common.h

#ifndef __COMMON_H__
#define __COMMON_H__

#include <math.h>
#include <stdio.h>
#include <schroedinger/schroframe.h>

double sgn(double x);
double random_std (void);
double random_triangle (void);
int gain_to_quant_index (double x);
double sum_f64 (double *a, int n);
double multsum_f64 (double *a, double *b, int n);

#define TEST_PATTERN_NAME_SIZE 100

int test_pattern_get_n_generators (void);
void test_pattern_generate (SchroFrameData *frame, char *name, int n);

int frame_data_compare (SchroFrameData *dest, SchroFrameData *src);
void frame_data_dump (SchroFrameData *dest, SchroFrameData *src);
void frame_data_dump_full (SchroFrameData *dest, SchroFrameData *src,
    SchroFrameData *orig);

int frame_compare (SchroFrame *dest, SchroFrame *src);
void frame_dump (SchroFrame *test, SchroFrame *ref);

int parse_packet (FILE *file, void **data, int *size);

#endif


Generated by  Doxygen 1.6.0   Back to index