321 |
ARG_OUTPUTFILE = argv[i]; |
ARG_OUTPUTFILE = argv[i]; |
322 |
} else if (strcmp("-vop_debug", argv[i]) == 0) { |
} else if (strcmp("-vop_debug", argv[i]) == 0) { |
323 |
ARG_VOPDEBUG = 1; |
ARG_VOPDEBUG = 1; |
|
|
|
324 |
} else if (strcmp("-help", argv[i])) { |
} else if (strcmp("-help", argv[i])) { |
325 |
usage(); |
usage(); |
326 |
return (0); |
return (0); |
658 |
fprintf(stderr, " -packed : packed mode\n"); |
fprintf(stderr, " -packed : packed mode\n"); |
659 |
fprintf(stderr, " -lumimasking : use lumimasking algorithm\n"); |
fprintf(stderr, " -lumimasking : use lumimasking algorithm\n"); |
660 |
fprintf(stderr, " -stats : print stats about encoded frames\n"); |
fprintf(stderr, " -stats : print stats about encoded frames\n"); |
661 |
fprintf(stderr, " -debug : print all MB dquants\n"); |
fprintf(stderr, " -debug : activates xvidcore internal debugging output\n"); |
662 |
|
fprintf(stderr, " -vop_debug : print some info directly into encoded frames\n"); |
663 |
fprintf(stderr, " -help : prints this help message\n"); |
fprintf(stderr, " -help : prints this help message\n"); |
664 |
fprintf(stderr, "\n"); |
fprintf(stderr, "\n"); |
665 |
fprintf(stderr, "NB: You can define %d zones repeating the -z[qw] option as many times as needed.\n", MAX_ZONES); |
fprintf(stderr, "NB: You can define %d zones repeating the -z[qw] option as many times as needed.\n", MAX_ZONES); |
813 |
/* Set version -- version checking will done by xvidcore */ |
/* Set version -- version checking will done by xvidcore */ |
814 |
memset(&xvid_gbl_init, 0, sizeof(xvid_gbl_init)); |
memset(&xvid_gbl_init, 0, sizeof(xvid_gbl_init)); |
815 |
xvid_gbl_init.version = XVID_VERSION; |
xvid_gbl_init.version = XVID_VERSION; |
|
printf("0x%x\n", ARG_DEBUG); |
|
816 |
xvid_gbl_init.debug = ARG_DEBUG; |
xvid_gbl_init.debug = ARG_DEBUG; |
817 |
|
|
818 |
|
|
893 |
xvid_enc_create.num_plugins++; |
xvid_enc_create.num_plugins++; |
894 |
} |
} |
895 |
|
|
896 |
/* if (ARG_DEBUG) { |
#if 0 |
897 |
|
if (ARG_DEBUG) { |
898 |
plugins[xvid_enc_create.num_plugins].func = rawenc_debug; |
plugins[xvid_enc_create.num_plugins].func = rawenc_debug; |
899 |
plugins[xvid_enc_create.num_plugins].param = NULL; |
plugins[xvid_enc_create.num_plugins].param = NULL; |
900 |
xvid_enc_create.num_plugins++; |
xvid_enc_create.num_plugins++; |
901 |
}*/ |
} |
902 |
|
#endif |
903 |
|
|
904 |
/* No fancy thread tests */ |
/* No fancy thread tests */ |
905 |
xvid_enc_create.num_threads = 0; |
xvid_enc_create.num_threads = 0; |
914 |
} |
} |
915 |
|
|
916 |
/* Maximum key frame interval */ |
/* Maximum key frame interval */ |
|
|
|
917 |
if (ARG_MAXKEYINTERVAL > 0) { |
if (ARG_MAXKEYINTERVAL > 0) { |
918 |
xvid_enc_create.max_key_interval = ARG_MAXKEYINTERVAL; |
xvid_enc_create.max_key_interval = ARG_MAXKEYINTERVAL; |
919 |
}else { |
}else { |