Changeset 618

Show
Ignore:
Timestamp:
07/04/07 15:45:00 (1 year ago)
Author:
astrange
Message:

Change multithreading to one thread per CPU.
Remove -fomit-frame-pointer from ColorConversions? since it doesn't do much.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/FFusionCodec.c

    r617 r618  
    15361536        if (sysctlbyname("hw.activecpu", &nthreads, &len, NULL, 0) == -1) nthreads = 1; 
    15371537         
    1538         nthreads--; // each thread is "in addition" to the main thread 
    1539                                 // but 1 thread doesn't do anything? need to investigate 
    1540          
    1541         if (nthreads) avcodec_thread_init(s, nthreads); 
    1542 
     1538        if (nthreads > 1) avcodec_thread_init(s, nthreads); 
     1539
  • trunk/Perian.xcodeproj/project.pbxproj

    r616 r618  
    109109                3D211A300B6B1AD80051299D /* SSATagParsing.m.rl in Sources */ = {isa = PBXBuildFile; fileRef = 3D211A2F0B6B1AD80051299D /* SSATagParsing.m.rl */; }; 
    110110                3D41BEB40BCD3B510069E7C2 /* libuniversaldetector.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3D41BE9A0BCD3B330069E7C2 /* libuniversaldetector.a */; }; 
    111                 3D4A7A990B5533BC004C5D6A /* ColorConversions.c in Sources */ = {isa = PBXBuildFile; fileRef = 3D4A7A980B5533BC004C5D6A /* ColorConversions.c */; settings = {COMPILER_FLAGS = "-O3 -fno-reorder-blocks -fomit-frame-pointer -fweb"; }; }; 
     111                3D4A7A990B5533BC004C5D6A /* ColorConversions.c in Sources */ = {isa = PBXBuildFile; fileRef = 3D4A7A980B5533BC004C5D6A /* ColorConversions.c */; settings = {COMPILER_FLAGS = "-O3 -fno-reorder-blocks -fweb"; }; }; 
    112112                3DAD32DA0B6DB26100DA0A72 /* StdIOCallback.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 61CB114D0ACDF3C2007994BD /* StdIOCallback.cpp */; }; 
    113113                3DB2BB290B6C92F000416863 /* SSARenderCodec.m in Sources */ = {isa = PBXBuildFile; fileRef = 3DB2BB280B6C92F000416863 /* SSARenderCodec.m */; };