• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

githubのコードからのfolk


Commit MetaInfo

Revisionf05618bb296fb2bcb43f0494826010d3328136bc (tree)
Time2011-02-27 01:48:04
Authorsr55 <sr55@b64f...>
Commitersr55

Log Message

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

Change Summary

Incremental Difference

--- a/libhb/hb.c
+++ b/libhb/hb.c
@@ -525,18 +525,6 @@ int hb_check_update( hb_handle_t * h, char ** version )
525525 }
526526
527527 /**
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-/**
540528 * Deletes current previews associated with titles
541529 * @param h Handle to hb_handle_t
542530 */
--- a/libhb/hb.h
+++ b/libhb/hb.h
@@ -28,11 +28,6 @@ int hb_get_build( hb_handle_t * );
2828 negative value otherwise. */
2929 int hb_check_update( hb_handle_t * h, char ** version );
3030
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 );
3631
3732 char * hb_dvd_name( char * path );
3833 void hb_dvd_set_dvdnav( int enable );
--- a/macosx/HandBrake.xcodeproj/project.pbxproj
+++ b/macosx/HandBrake.xcodeproj/project.pbxproj
@@ -540,6 +540,7 @@
540540 };
541541 buildConfigurationList = 4D4E7BC4087804870051572B /* Build configuration list for PBXProject "HandBrake" */;
542542 compatibilityVersion = "Xcode 3.1";
543+ developmentRegion = English;
543544 hasScannedForEncodings = 1;
544545 knownRegions = (
545546 English,
--- a/test/test.c
+++ b/test/test.c
@@ -91,7 +91,6 @@ static int subtitle_scan = 0;
9191 static int width = 0;
9292 static int height = 0;
9393 static int crop[4] = { -1,-1,-1,-1 };
94-static int cpu = 0;
9594 static int vrate = 0;
9695 static float vquality = -1.0;
9796 static int vbitrate = 0;
@@ -229,12 +228,6 @@ int main( int argc, char ** argv )
229228 /* Geeky */
230229 fprintf( stderr, "%d CPU%s detected\n", hb_get_cpu_count(),
231230 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- }
238231
239232 /* Exit ASAP on Ctrl-C */
240233 signal( SIGINT, SigHandler );
@@ -2428,7 +2421,6 @@ static void ShowHelp()
24282421 " -h, --help Print help\n"
24292422 " -u, --update Check for updates and exit\n"
24302423 " -v, --verbose <#> Be verbose (optional argument: logging level)\n"
2431- " -C, --cpu Set CPU count (default: autodetected)\n"
24322424 " -Z. --preset <string> Use a built-in preset. Capitalization matters, and\n"
24332425 " if the preset name has spaces, surround it with\n"
24342426 " double quotation marks\n"
@@ -2803,7 +2795,6 @@ static int ParseOptions( int argc, char ** argv )
28032795 { "help", no_argument, NULL, 'h' },
28042796 { "update", no_argument, NULL, 'u' },
28052797 { "verbose", optional_argument, NULL, 'v' },
2806- { "cpu", required_argument, NULL, 'C' },
28072798 { "no-dvdnav", no_argument, NULL, DVDNAV },
28082799
28092800 { "format", required_argument, NULL, 'f' },
@@ -2919,10 +2910,6 @@ static int ParseOptions( int argc, char ** argv )
29192910 debug = 1;
29202911 }
29212912 break;
2922- case 'C':
2923- cpu = atoi( optarg );
2924- break;
2925-
29262913 case 'Z':
29272914 preset = 1;
29282915 preset_name = strdup(optarg);