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" |
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"); |
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; |