[cvs] / xvidcore / src / plugins / plugin_ssim.h Repository:
ViewVC logotype

Annotation of /xvidcore/src/plugins/plugin_ssim.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (view) (download)

1 : Skal 1.1
2 :     /*****************************************************************************
3 :     *
4 :     * XVID MPEG-4 VIDEO CODEC
5 :     * - SSIM plugin: computes the SSIM metric -
6 :     *
7 :     * Copyright(C) 2005 Johannes Reinhardt <Johannes.Reinhardt@gmx.de>
8 :     *
9 :     * This program is free software ; you can redistribute it and/or modify
10 :     * it under the terms of the GNU General Public License as published by
11 :     * the Free Software Foundation ; either version 2 of the License, or
12 :     * (at your option) any later version.
13 :     *
14 :     * This program is distributed in the hope that it will be useful,
15 :     * but WITHOUT ANY WARRANTY ; without even the implied warranty of
16 :     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 :     * GNU General Public License for more details.
18 :     *
19 :     * You should have received a copy of the GNU General Public License
20 :     * along with this program ; if not, write to the Free Software
21 :     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 :     *
23 :     *
24 :     *
25 :     ****************************************************************************/
26 :    
27 :     #ifndef SSIM_H
28 :     #define SSIM_H
29 :    
30 : Skal 1.3 /*Plugin for calculating and dumping the ssim quality metric according to
31 :    
32 :     http://www.cns.nyu.edu/~lcv/ssim/
33 :    
34 :     there is a accurate (but very slow) implementation, using a 8x8 gaussian
35 :     weighting window, that is quite close to the paper, and a faster unweighted
36 :     implementation*/
37 :    
38 : Skal 1.1 typedef struct{
39 :     /*stat output*/
40 :     int b_printstat;
41 :     char* stat_path;
42 :    
43 :     /*visualize*/
44 :     int b_visualize;
45 :    
46 : Skal 1.2 /*accuracy
47 : Skal 1.3 0 gaussian weigthed (original, as in paper, very slow)
48 :     <=4 unweighted, 1 slow 4 fastest*/
49 : Skal 1.2 int acc;
50 :    
51 : Skal 1.1 } plg_ssim_param_t;
52 :    
53 :    
54 :     int plugin_ssim(void * handle, int opt, void * param1, void * param2);
55 :    
56 :     #endif

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