~ubuntu-branches/ubuntu/hardy/speex/hardy-security

« back to all changes in this revision

Viewing changes to libspeex/misc.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2005-12-07 23:22:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051207232221-nme7vf9m182p7dpe
Tags: 1.1.11.1-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#define MISC_H
37
37
 
38
38
#ifndef SPEEX_VERSION
39
 
#define SPEEX_MAJOR_VERSION 1
40
 
#define SPEEX_MINOR_VERSION 1
41
 
#define SPEEX_MICRO_VERSION 6
42
 
#define SPEEX_EXTRA_VERSION ""
43
 
#define SPEEX_VERSION "speex-1.1.6"
 
39
#define SPEEX_MAJOR_VERSION 1         /**< Major Speex version. */
 
40
#define SPEEX_MINOR_VERSION 1         /**< Minor Speex version. */
 
41
#define SPEEX_MICRO_VERSION 11        /**< Micro Speex version. */
 
42
#define SPEEX_EXTRA_VERSION ".1"        /**< Extra Speex version. */
 
43
#define SPEEX_VERSION "speex-1.1.11.1"  /**< Speex version string. */
44
44
#endif
45
45
 
46
46
#include "arch.h"
47
47
 
48
48
#ifndef RELEASE
 
49
/** Print a named vector to stdout */
49
50
void print_vec(float *vec, int len, char *name);
50
51
#endif
51
52
 
52
 
unsigned int be_int(unsigned int i);
53
 
unsigned int le_int(unsigned int i);
54
 
 
55
 
 
56
 
unsigned short be_short(unsigned short s);
57
 
unsigned short le_short(unsigned short s);
 
53
/** Convert big endian */
 
54
spx_uint32_t be_int(spx_uint32_t i);
 
55
/** Convert little endian */
 
56
spx_uint32_t le_int(spx_uint32_t i);
58
57
 
59
58
/** Speex wrapper for calloc. To do your own dynamic allocation, all you need to do is replace this function, speex_realloc and speex_free */
60
59
void *speex_alloc (int size);
61
60
 
 
61
/** Same as speex_alloc, except that the area is only needed inside a Speex call (might cause problem with wideband though) */
 
62
void *speex_alloc_scratch (int size);
 
63
 
62
64
/** Speex wrapper for realloc. To do your own dynamic allocation, all you need to do is replace this function, speex_alloc and speex_free */
63
65
void *speex_realloc (void *ptr, int size);
64
66
 
65
67
/** Speex wrapper for calloc. To do your own dynamic allocation, all you need to do is replace this function, speex_realloc and speex_alloc */
66
68
void speex_free (void *ptr);
67
69
 
 
70
/** Same as speex_alloc, except that the area is only needed inside a Speex call (might cause problem with wideband though) */
 
71
void speex_free_scratch (void *ptr);
 
72
 
68
73
/** Speex wrapper for mem_move */
69
74
void *speex_move (void *dest, void *src, int n);
70
75
 
71
 
void speex_error(char *str);
72
 
 
73
 
void speex_warning(char *str);
74
 
 
75
 
void speex_warning_int(char *str, int val);
76
 
 
 
76
/** Speex wrapper for memcpy */
 
77
void speex_memcpy_bytes(char *dst, char *src, int nbytes);
 
78
 
 
79
/** Speex wrapper for memset */
 
80
void speex_memset_bytes(char *dst, char src, int nbytes);
 
81
 
 
82
/** Print error message to stderr */
 
83
void speex_error(const char *str);
 
84
 
 
85
/** Print warning message to stderr */
 
86
void speex_warning(const char *str);
 
87
 
 
88
/** Print warning message with integer argument to stderr */
 
89
void speex_warning_int(const char *str, int val);
 
90
 
 
91
/** Generate a vector of random numbers */
77
92
void speex_rand_vec(float std, spx_sig_t *data, int len);
78
93
 
79
 
float speex_rand(float std);
 
94
/** Generate a random number */
 
95
spx_word32_t speex_rand(spx_word16_t std, spx_int32_t *seed);
80
96
 
 
97
/** Speex wrapper for putc */
81
98
void _speex_putc(int ch, void *file);
82
99
 
83
100
#endif