[svn] / trunk / xvidcore / examples / xvid_encraw.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/examples/xvid_encraw.c

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

revision 1739, Mon Oct 16 04:46:01 2006 UTC revision 1743, Mon Oct 30 11:21:42 2006 UTC
# Line 21  Line 21 
21   *  along with this program; if not, write to the Free Software   *  along with this program; if not, write to the Free Software
22   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
23   *   *
24   * $Id: xvid_encraw.c,v 1.31 2006-10-16 04:46:01 Skal Exp $   * $Id: xvid_encraw.c,v 1.32 2006-10-30 11:21:42 Skal Exp $
25   *   *
26   ****************************************************************************/   ****************************************************************************/
27    
# Line 165  Line 165 
165  static  frame_stats_t framestats[7];  static  frame_stats_t framestats[7];
166    
167  static  int ARG_STATS = 0;  static  int ARG_STATS = 0;
168  static  int ARG_SSIM = 0;  static  int ARG_SSIM = -1;
169  static  char* ARG_SSIM_PATH = NULL;  static  char* ARG_SSIM_PATH = NULL;
170  static  int ARG_DUMP = 0;  static  int ARG_DUMP = 0;
171  static  int ARG_LUMIMASKING = 0;  static  int ARG_LUMIMASKING = 0;
# Line 581  Line 581 
581                  } else if (strcmp("-stats", argv[i]) == 0) {                  } else if (strcmp("-stats", argv[i]) == 0) {
582                          ARG_STATS = 1;                          ARG_STATS = 1;
583                  } else if (strcmp("-ssim", argv[i]) == 0) {                  } else if (strcmp("-ssim", argv[i]) == 0) {
584                          ARG_SSIM = 1;                          ARG_SSIM = 2;
585                            if ((i < argc - 1) && (*argv[i+1] != '-')) {
586                                    i++;
587                                    ARG_SSIM = atoi(argv[i]);
588                            }
589                  } else if (strcmp("-ssim_file", argv[i]) == 0 && i < argc -1) {                  } else if (strcmp("-ssim_file", argv[i]) == 0 && i < argc -1) {
590                          i++;                          i++;
591                          ARG_SSIM_PATH = argv[i];                          ARG_SSIM_PATH = argv[i];
# Line 1568  Line 1572 
1572          fprintf(stderr, " -noclosed_gop                  : Disable closed GOP mode\n");          fprintf(stderr, " -noclosed_gop                  : Disable closed GOP mode\n");
1573          fprintf(stderr, " -lumimasking                   : use lumimasking algorithm\n");          fprintf(stderr, " -lumimasking                   : use lumimasking algorithm\n");
1574          fprintf(stderr, " -stats                         : print stats about encoded frames\n");          fprintf(stderr, " -stats                         : print stats about encoded frames\n");
1575          fprintf(stderr, " -ssim                          : prints the ssim stats for every encoded frame (slow!)\n");          fprintf(stderr, " -ssim [integer]                : prints ssim for every frame (accurate: 0 fast: 4) (2)\n");
1576          fprintf(stderr, " -ssim_file filename            : outputs the ssim stats into a file\n");          fprintf(stderr, " -ssim_file filename            : outputs the ssim stats into a file\n");
1577          fprintf(stderr, " -debug                         : activates xvidcore internal debugging output\n");          fprintf(stderr, " -debug                         : activates xvidcore internal debugging output\n");
1578          fprintf(stderr, " -vop_debug                     : print some info directly into encoded frames\n");          fprintf(stderr, " -vop_debug                     : print some info directly into encoded frames\n");
# Line 1903  Line 1907 
1907                  xvid_enc_create.num_plugins++;                  xvid_enc_create.num_plugins++;
1908          }          }
1909    
1910          if (ARG_SSIM || ARG_SSIM_PATH != NULL) {          if (ARG_SSIM>=0 || ARG_SSIM_PATH != NULL) {
1911                  plugins[xvid_enc_create.num_plugins].func = xvid_plugin_ssim;                  plugins[xvid_enc_create.num_plugins].func = xvid_plugin_ssim;
1912                  ssim.b_printstat = ARG_SSIM;                  ssim.b_printstat = 1;
1913                  ssim.stat_path = ARG_SSIM_PATH;                  ssim.stat_path = ARG_SSIM_PATH;
1914                  ssim.b_visualize = 0;                  ssim.b_visualize = 0;
1915                    ssim.acc = ARG_SSIM;
1916                  plugins[xvid_enc_create.num_plugins].param = &ssim;                  plugins[xvid_enc_create.num_plugins].param = &ssim;
1917                  xvid_enc_create.num_plugins++;                  xvid_enc_create.num_plugins++;
1918          }          }

Legend:
Removed from v.1739  
changed lines
  Added in v.1743

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