[svn] / trunk / xvidcore / src / plugins / plugin_ssim.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/src/plugins/plugin_ssim.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1733, Fri Oct 13 07:38:09 2006 UTC revision 1734, Fri Oct 13 08:39:31 2006 UTC
# Line 26  Line 26 
26  #include <malloc.h>  #include <malloc.h>
27  #include <stdio.h>  #include <stdio.h>
28  #include <math.h>  #include <math.h>
29  #include <stdint.h>  #include "../portab.h"
30  #include "../xvid.h"  #include "../xvid.h"
31  #include "plugin_ssim.h"  #include "plugin_ssim.h"
32  #include "../utils/emms.h"  #include "../utils/emms.h"
# Line 107  Line 107 
107    
108  /*writeout the collected stats*/  /*writeout the collected stats*/
109  void framestat_write(ssim_data_t* ssim, char* path){  void framestat_write(ssim_data_t* ssim, char* path){
110            framestat_t* tmp = ssim->head;
111          FILE* out = fopen(path,"w");          FILE* out = fopen(path,"w");
112          if(out==NULL) printf("Cannot open %s in plugin_ssim\n",path);          if(out==NULL) printf("Cannot open %s in plugin_ssim\n",path);
         framestat_t* tmp = ssim->head;  
113    
114          fprintf(out,"SSIM Error Metric\n");          fprintf(out,"SSIM Error Metric\n");
115          fprintf(out,"quant   avg     min     max");          fprintf(out,"quant   avg     min     max");
# Line 122  Line 122 
122    
123  /*writeout the collected stats in octave readable format*/  /*writeout the collected stats in octave readable format*/
124  void framestat_write_oct(ssim_data_t* ssim, char* path){  void framestat_write_oct(ssim_data_t* ssim, char* path){
125            framestat_t* tmp;
126          FILE* out = fopen(path,"w");          FILE* out = fopen(path,"w");
127          if(out==NULL) printf("Cannot open %s in plugin_ssim\n",path);          if(out==NULL) printf("Cannot open %s in plugin_ssim\n",path);
         framestat_t* tmp;  
128    
129          fprintf(out,"quant = [");          fprintf(out,"quant = [");
130          tmp = ssim->head;          tmp = ssim->head;

Legend:
Removed from v.1733  
changed lines
  Added in v.1734

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4