~ubuntu-branches/ubuntu/gutsy/speex/gutsy-security

« back to all changes in this revision

Viewing changes to libspeex/cb_search.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:
1
 
/* Copyright (C) 2002 Jean-Marc Valin & David Rowe
2
 
   File: cb_search.h
3
 
   Overlapped codebook search
4
 
 
 
1
/* Copyright (C) 2002 Jean-Marc Valin & David Rowe */
 
2
/**
 
3
   @file cb_search.h
 
4
   @brief Overlapped codebook search
 
5
*/
 
6
/*
5
7
   Redistribution and use in source and binary forms, with or without
6
8
   modification, are permitted provided that the following conditions
7
9
   are met:
36
38
#include <speex/speex_bits.h>
37
39
#include "misc.h"
38
40
 
 
41
/** Split codebook parameters. */
39
42
typedef struct split_cb_params {
40
43
   int     subvect_size;
41
44
   int     nb_subvect;
46
49
 
47
50
 
48
51
void split_cb_search_shape_sign(
49
 
spx_sig_t target[],                     /* target vector */
50
 
spx_coef_t ak[],                        /* LPCs for this subframe */
51
 
spx_coef_t awk1[],                      /* Weighted LPCs for this subframe */
52
 
spx_coef_t awk2[],                      /* Weighted LPCs for this subframe */
53
 
const void *par,                      /* Codebook/search parameters*/
 
52
spx_sig_t target[],             /* target vector */
 
53
spx_coef_t ak[],                /* LPCs for this subframe */
 
54
spx_coef_t awk1[],              /* Weighted LPCs for this subframe */
 
55
spx_coef_t awk2[],              /* Weighted LPCs for this subframe */
 
56
const void *par,                /* Codebook/search parameters */
54
57
int   p,                        /* number of LPC coeffs */
55
58
int   nsf,                      /* number of samples in subframe */
56
59
spx_sig_t *exc,
57
 
spx_sig_t *r,
 
60
spx_word16_t *r,
58
61
SpeexBits *bits,
59
62
char *stack,
60
 
int   complexity
 
63
int   complexity,
 
64
int   update_target
61
65
);
62
66
 
63
67
void split_cb_shape_sign_unquant(
64
68
spx_sig_t *exc,
65
 
const void *par,                      /* non-overlapping codebook */
 
69
const void *par,                /* non-overlapping codebook */
66
70
int   nsf,                      /* number of samples in subframe */
67
71
SpeexBits *bits,
68
72
char *stack
70
74
 
71
75
 
72
76
void noise_codebook_quant(
73
 
spx_sig_t target[],                     /* target vector */
74
 
spx_coef_t ak[],                        /* LPCs for this subframe */
75
 
spx_coef_t awk1[],                      /* Weighted LPCs for this subframe */
76
 
spx_coef_t awk2[],                      /* Weighted LPCs for this subframe */
77
 
const void *par,                      /* Codebook/search parameters*/
 
77
spx_sig_t target[],             /* target vector */
 
78
spx_coef_t ak[],                /* LPCs for this subframe */
 
79
spx_coef_t awk1[],              /* Weighted LPCs for this subframe */
 
80
spx_coef_t awk2[],              /* Weighted LPCs for this subframe */
 
81
const void *par,                /* Codebook/search parameters */
78
82
int   p,                        /* number of LPC coeffs */
79
83
int   nsf,                      /* number of samples in subframe */
80
84
spx_sig_t *exc,
81
 
spx_sig_t *r,
 
85
spx_word16_t *r,
82
86
SpeexBits *bits,
83
87
char *stack,
84
 
int   complexity
 
88
int   complexity,
 
89
int   update_target
85
90
);
86
91
 
87
92
 
88
93
void noise_codebook_unquant(
89
94
spx_sig_t *exc,
90
 
const void *par,                      /* non-overlapping codebook */
 
95
const void *par,                /* non-overlapping codebook */
91
96
int   nsf,                      /* number of samples in subframe */
92
97
SpeexBits *bits,
93
98
char *stack