[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 1812, Thu Nov 27 20:17:39 2008 UTC revision 1863, Wed May 27 15:52:05 2009 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.37 2008-11-27 20:17:39 Isibaar Exp $   * $Id: xvid_encraw.c,v 1.38 2009-05-27 15:52:05 Isibaar Exp $
25   *   *
26   ****************************************************************************/   ****************************************************************************/
27    
# Line 604  Line 604 
604                          ARG_TIMECODEFILE = argv[i];                          ARG_TIMECODEFILE = argv[i];
605                  } else if (strcmp("-dump", argv[i]) == 0) {                  } else if (strcmp("-dump", argv[i]) == 0) {
606                          ARG_DUMP = 1;                          ARG_DUMP = 1;
607                  } else if (strcmp("-lumimasking", argv[i]) == 0) {                  } else if (strcmp("-masking", argv[i]) == 0 && i < argc -1) {
608                          ARG_LUMIMASKING = 1;                          i++;
609                            ARG_LUMIMASKING = atoi(argv[i]);
610                  } else if (strcmp("-type", argv[i]) == 0 && i < argc - 1) {                  } else if (strcmp("-type", argv[i]) == 0 && i < argc - 1) {
611                          i++;                          i++;
612                          ARG_INPUTTYPE = atoi(argv[i]);                          ARG_INPUTTYPE = atoi(argv[i]);
# Line 1581  Line 1582 
1582          fprintf(stderr, " -interlaced [integer]          : interlaced encoding (BFF:1, TFF:2) (1)\n");          fprintf(stderr, " -interlaced [integer]          : interlaced encoding (BFF:1, TFF:2) (1)\n");
1583          fprintf(stderr, " -nopacked                      : Disable packed mode\n");          fprintf(stderr, " -nopacked                      : Disable packed mode\n");
1584          fprintf(stderr, " -noclosed_gop                  : Disable closed GOP mode\n");          fprintf(stderr, " -noclosed_gop                  : Disable closed GOP mode\n");
1585          fprintf(stderr, " -lumimasking                   : use lumimasking algorithm\n");          fprintf(stderr, " -masking [integer]             : HVS masking mode (None:0, Lumi:1, Variance:2) (0)\n");
1586          fprintf(stderr, " -stats                         : print stats about encoded frames\n");          fprintf(stderr, " -stats                         : print stats about encoded frames\n");
1587          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");
1588          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");
# Line 1788  Line 1789 
1789          xvid_plugin_2pass1_t rc2pass1;          xvid_plugin_2pass1_t rc2pass1;
1790          xvid_plugin_2pass2_t rc2pass2;          xvid_plugin_2pass2_t rc2pass2;
1791          xvid_plugin_ssim_t ssim;          xvid_plugin_ssim_t ssim;
1792            xvid_plugin_lumimasking_t masking;
1793          //xvid_plugin_fixed_t rcfixed;          //xvid_plugin_fixed_t rcfixed;
1794          xvid_enc_plugin_t plugins[8];          xvid_enc_plugin_t plugins[8];
1795          xvid_gbl_init_t xvid_gbl_init;          xvid_gbl_init_t xvid_gbl_init;
# Line 1907  Line 1909 
1909    
1910    
1911          if (ARG_LUMIMASKING) {          if (ARG_LUMIMASKING) {
1912                    memset(&masking, 0, sizeof(xvid_plugin_lumimasking_t));
1913                    masking.method = (ARG_LUMIMASKING==2);
1914                  plugins[xvid_enc_create.num_plugins].func = xvid_plugin_lumimasking;                  plugins[xvid_enc_create.num_plugins].func = xvid_plugin_lumimasking;
1915                  plugins[xvid_enc_create.num_plugins].param = NULL;                  plugins[xvid_enc_create.num_plugins].param = &masking;
1916                  xvid_enc_create.num_plugins++;                  xvid_enc_create.num_plugins++;
1917          }          }
1918    

Legend:
Removed from v.1812  
changed lines
  Added in v.1863

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