Browse Source

Move context struct to c file.

Originally committed as revision 14809 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 17 years ago
parent
commit
ab1388e435
2 changed files with 7 additions and 8 deletions
  1. +7
    -0
      libavutil/pca.c
  2. +0
    -8
      libavutil/pca.h

+ 7
- 0
libavutil/pca.c View File

@@ -26,6 +26,13 @@
#include "common.h"
#include "pca.h"

typedef struct PCA{
int count;
int n;
double *covariance;
double *mean;
}PCA;

PCA *ff_pca_init(int n){
PCA *pca;
if(n<=0)


+ 0
- 8
libavutil/pca.h View File

@@ -27,11 +27,3 @@ struct PCA *ff_pca_init(int n);
void ff_pca_free(struct PCA *pca);
void ff_pca_add(struct PCA *pca, double *v);
int ff_pca(struct PCA *pca, double *eigenvector, double *eigenvalue);


typedef struct PCA{
int count;
int n;
double *covariance;
double *mean;
}PCA;

Loading…
Cancel
Save