[svn] / branches / release-1_3-branch / xvidcore / examples / xvid_encraw.c Repository:
ViewVC logotype

Diff of /branches/release-1_3-branch/xvidcore/examples/xvid_encraw.c

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

revision 1886, Thu Apr 1 12:16:48 2010 UTC revision 1894, Sun Oct 10 19:24:24 2010 UTC
# Line 22  Line 22 
22   *  along with this program; if not, write to the Free Software   *  along with this program; if not, write to the Free Software
23   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
24   *   *
25   * $Id: xvid_encraw.c,v 1.42 2010-04-01 12:16:48 Isibaar Exp $   * $Id: xvid_encraw.c,v 1.43 2010-10-10 19:20:03 Isibaar Exp $
26   *   *
27   ****************************************************************************/   ****************************************************************************/
28    
# Line 189  Line 189 
189  static  int ARG_CPU_FLAGS = 0;  static  int ARG_CPU_FLAGS = 0;
190  static  int ARG_STATS = 0;  static  int ARG_STATS = 0;
191  static  int ARG_SSIM = -1;  static  int ARG_SSIM = -1;
192    static  int ARG_PSNRHVSM = 0;
193  static  char* ARG_SSIM_PATH = NULL;  static  char* ARG_SSIM_PATH = NULL;
194  static  int ARG_DUMP = 0;  static  int ARG_DUMP = 0;
195  static  int ARG_LUMIMASKING = 0;  static  int ARG_LUMIMASKING = 0;
# Line 388  Line 389 
389                                  ARG_BITRATE = atoi(argv[i+1]);                                  ARG_BITRATE = atoi(argv[i+1]);
390                          if (ARG_BITRATE) {                          if (ARG_BITRATE) {
391                                  i++;                                  i++;
392                                  if (ARG_BITRATE <= 10000)                                  if (ARG_BITRATE <= 20000)
393                                          /* if given parameter is <= 10000, assume it means kbps */                                          /* if given parameter is <= 20000, assume it means kbps */
394                                          ARG_BITRATE *= 1000;                                          ARG_BITRATE *= 1000;
395                          }                          }
396                          else                          else
# Line 578  Line 579 
579                                  i++;                                  i++;
580                                  ARG_SSIM = atoi(argv[i]);                                  ARG_SSIM = atoi(argv[i]);
581                          }                          }
582                    } else if (strcmp("-psnrhvsm", argv[i]) == 0) {
583                            ARG_PSNRHVSM = 1;
584                  } else if (strcmp("-ssim_file", argv[i]) == 0 && i < argc -1) {                  } else if (strcmp("-ssim_file", argv[i]) == 0 && i < argc -1) {
585                          i++;                          i++;
586                          ARG_SSIM_PATH = argv[i];                          ARG_SSIM_PATH = argv[i];
# Line 1876  Line 1879 
1879          fprintf(stderr, " -stats                         : print stats about encoded frames\n");          fprintf(stderr, " -stats                         : print stats about encoded frames\n");
1880          fprintf(stderr, " -ssim [integer]                : prints ssim for every frame (accurate: 0 fast: 4) (2)\n");          fprintf(stderr, " -ssim [integer]                : prints ssim for every frame (accurate: 0 fast: 4) (2)\n");
1881          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");
1882            fprintf(stderr, " -psnrhvsm                      : prints psnr-hvs-m metric for every frame\n");
1883          fprintf(stderr, " -debug                         : activates xvidcore internal debugging output\n");          fprintf(stderr, " -debug                         : activates xvidcore internal debugging output\n");
1884          fprintf(stderr, " -vop_debug                     : print some info directly into encoded frames\n");          fprintf(stderr, " -vop_debug                     : print some info directly into encoded frames\n");
1885          fprintf(stderr, " -nochromame                    : Disable chroma motion estimation\n");          fprintf(stderr, " -nochromame                    : Disable chroma motion estimation\n");
# Line 2241  Line 2245 
2245                  xvid_enc_create.num_plugins++;                  xvid_enc_create.num_plugins++;
2246          }          }
2247    
2248            if (ARG_PSNRHVSM>0) {
2249            plugins[xvid_enc_create.num_plugins].func = xvid_plugin_psnrhvsm;
2250                    plugins[xvid_enc_create.num_plugins].param = NULL;
2251                    xvid_enc_create.num_plugins++;
2252            }
2253    
2254  #if 0  #if 0
2255          if (ARG_DEBUG) {          if (ARG_DEBUG) {
2256                  plugins[xvid_enc_create.num_plugins].func = rawenc_debug;                  plugins[xvid_enc_create.num_plugins].func = rawenc_debug;

Legend:
Removed from v.1886  
changed lines
  Added in v.1894

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