Browse Source

avutil/pca: Make argument of ff_pca_add() const

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Michael Niedermayer 10 years ago
parent
commit
b28f470df0
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      libavutil/pca.c
  2. +1
    -1
      libavutil/pca.h

+ 1
- 1
libavutil/pca.c View File

@@ -57,7 +57,7 @@ void ff_pca_free(PCA *pca){
av_free(pca); av_free(pca);
} }


void ff_pca_add(PCA *pca, double *v){
void ff_pca_add(PCA *pca, const double *v){
int i, j; int i, j;
const int n= pca->n; const int n= pca->n;




+ 1
- 1
libavutil/pca.h View File

@@ -29,7 +29,7 @@


struct PCA *ff_pca_init(int n); struct PCA *ff_pca_init(int n);
void ff_pca_free(struct PCA *pca); void ff_pca_free(struct PCA *pca);
void ff_pca_add(struct PCA *pca, double *v);
void ff_pca_add(struct PCA *pca, const double *v);
int ff_pca(struct PCA *pca, double *eigenvector, double *eigenvalue); int ff_pca(struct PCA *pca, double *eigenvector, double *eigenvalue);


#endif /* AVUTIL_PCA_H */ #endif /* AVUTIL_PCA_H */

Loading…
Cancel
Save