githubのコードからのfolk
Revision | f05618bb296fb2bcb43f0494826010d3328136bc (tree) |
---|---|
Time | 2011-02-27 01:48:04 |
Author | sr55 <sr55@b64f...> |
Commiter | sr55 |
Remove the set cpu count option as it doesn't do anything now
git-svn-id: svn://localhost/HandBrake/trunk@3812 b64f7644-9d1e-0410-96f1-a4d463321fa5
@@ -525,18 +525,6 @@ int hb_check_update( hb_handle_t * h, char ** version ) | ||
525 | 525 | } |
526 | 526 | |
527 | 527 | /** |
528 | - * Sets the cpu count to the desired value. | |
529 | - * @param h Handle to hb_handle_t | |
530 | - * @param cpu_count Number of CPUs to use. | |
531 | - */ | |
532 | -void hb_set_cpu_count( hb_handle_t * h, int cpu_count ) | |
533 | -{ | |
534 | - cpu_count = MAX( 1, cpu_count ); | |
535 | - cpu_count = MIN( cpu_count, 64 ); | |
536 | - h->cpu_count = cpu_count; | |
537 | -} | |
538 | - | |
539 | -/** | |
540 | 528 | * Deletes current previews associated with titles |
541 | 529 | * @param h Handle to hb_handle_t |
542 | 530 | */ |
@@ -28,11 +28,6 @@ int hb_get_build( hb_handle_t * ); | ||
28 | 28 | negative value otherwise. */ |
29 | 29 | int hb_check_update( hb_handle_t * h, char ** version ); |
30 | 30 | |
31 | -/* hb_set_cpu_count() | |
32 | - Force libhb to act as if you had X CPU(s). | |
33 | - Default is to use the detected count (see also hb_get_cpu_count() in | |
34 | - ports.h) */ | |
35 | -void hb_set_cpu_count( hb_handle_t *, int ); | |
36 | 31 | |
37 | 32 | char * hb_dvd_name( char * path ); |
38 | 33 | void hb_dvd_set_dvdnav( int enable ); |
@@ -540,6 +540,7 @@ | ||
540 | 540 | }; |
541 | 541 | buildConfigurationList = 4D4E7BC4087804870051572B /* Build configuration list for PBXProject "HandBrake" */; |
542 | 542 | compatibilityVersion = "Xcode 3.1"; |
543 | + developmentRegion = English; | |
543 | 544 | hasScannedForEncodings = 1; |
544 | 545 | knownRegions = ( |
545 | 546 | English, |
@@ -91,7 +91,6 @@ static int subtitle_scan = 0; | ||
91 | 91 | static int width = 0; |
92 | 92 | static int height = 0; |
93 | 93 | static int crop[4] = { -1,-1,-1,-1 }; |
94 | -static int cpu = 0; | |
95 | 94 | static int vrate = 0; |
96 | 95 | static float vquality = -1.0; |
97 | 96 | static int vbitrate = 0; |
@@ -229,12 +228,6 @@ int main( int argc, char ** argv ) | ||
229 | 228 | /* Geeky */ |
230 | 229 | fprintf( stderr, "%d CPU%s detected\n", hb_get_cpu_count(), |
231 | 230 | hb_get_cpu_count( h ) > 1 ? "s" : "" ); |
232 | - if( cpu ) | |
233 | - { | |
234 | - fprintf( stderr, "Forcing %d CPU%s\n", cpu, | |
235 | - cpu > 1 ? "s" : "" ); | |
236 | - hb_set_cpu_count( h, cpu ); | |
237 | - } | |
238 | 231 | |
239 | 232 | /* Exit ASAP on Ctrl-C */ |
240 | 233 | signal( SIGINT, SigHandler ); |
@@ -2428,7 +2421,6 @@ static void ShowHelp() | ||
2428 | 2421 | " -h, --help Print help\n" |
2429 | 2422 | " -u, --update Check for updates and exit\n" |
2430 | 2423 | " -v, --verbose <#> Be verbose (optional argument: logging level)\n" |
2431 | - " -C, --cpu Set CPU count (default: autodetected)\n" | |
2432 | 2424 | " -Z. --preset <string> Use a built-in preset. Capitalization matters, and\n" |
2433 | 2425 | " if the preset name has spaces, surround it with\n" |
2434 | 2426 | " double quotation marks\n" |
@@ -2803,7 +2795,6 @@ static int ParseOptions( int argc, char ** argv ) | ||
2803 | 2795 | { "help", no_argument, NULL, 'h' }, |
2804 | 2796 | { "update", no_argument, NULL, 'u' }, |
2805 | 2797 | { "verbose", optional_argument, NULL, 'v' }, |
2806 | - { "cpu", required_argument, NULL, 'C' }, | |
2807 | 2798 | { "no-dvdnav", no_argument, NULL, DVDNAV }, |
2808 | 2799 | |
2809 | 2800 | { "format", required_argument, NULL, 'f' }, |
@@ -2919,10 +2910,6 @@ static int ParseOptions( int argc, char ** argv ) | ||
2919 | 2910 | debug = 1; |
2920 | 2911 | } |
2921 | 2912 | break; |
2922 | - case 'C': | |
2923 | - cpu = atoi( optarg ); | |
2924 | - break; | |
2925 | - | |
2926 | 2913 | case 'Z': |
2927 | 2914 | preset = 1; |
2928 | 2915 | preset_name = strdup(optarg); |