Changeset 374

Show
Ignore:
Timestamp:
03/21/07 20:43:14 (2 years ago)
Author:
astrange
Message:

Enable Codecprintf for Deployment+Debug, and remove most of its uses.

Files:

Legend:

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

    r373 r374  
    166166    GetComponentInfo((Component)self, &descout, 0, 0, 0); 
    167167         
    168     FourCCprintf("Opening component for type ", descout.componentSubType); 
     168  //  FourCCprintf("Opening component for type ", descout.componentSubType); 
    169169         
    170170    // Allocate memory for our globals, set them up and inform the component manager that we've done so 
     
    204204            if (bitfield >= 0x1010) 
    205205            { 
    206                 Codecprintf(glob->fileLog, "Use speedy y420 component\n"); 
     206  //              Codecprintf(glob->fileLog, "Use speedy y420 component\n"); 
    207207                glob->hasy420 = 1; 
    208208            } 
     
    210210        else 
    211211        { 
    212             Codecprintf(glob->fileLog, "Use slow y420 component\n"); 
     212  //          Codecprintf(glob->fileLog, "Use slow y420 component\n"); 
    213213        } 
    214214                 
  • trunk/Perian.xcodeproj/project.pbxproj

    r366 r374  
    365365                        containerPortal = 089C1669FE841209C02AAC07 /* Project object */; 
    366366                        proxyType = 1; 
    367                         remoteGlobalIDString = 116C42510B5041BD00FB0738 /* PerianUpdateChecker */
     367                        remoteGlobalIDString = 116C42510B5041BD00FB0738
    368368                        remoteInfo = PerianUpdateChecker; 
    369369                }; 
     
    632632                F560DF0203D622D001ABA332 /* FFusionCodec.r */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.rez; path = FFusionCodec.r; sourceTree = "<group>"; }; 
    633633                F57755F40B51EB1800C7D833 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = /System/Library/Frameworks/CoreFoundation.framework; sourceTree = "<absolute>"; }; 
    634                 F5CFD1B40B50009000616865 /* PerianPanePListGenerator */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = PerianPanePListGenerator; sourceTree = BUILT_PRODUCTS_DIR; }; 
     634                F5CFD1B40B50009000616865 /* PerianPanePListGenerator */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = "compiled.mach-o.executable"; path = PerianPanePListGenerator; sourceTree = BUILT_PRODUCTS_DIR; }; 
    635635                F5CFD1BC0B5000CE00616865 /* GBPerianPanePListGenerator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GBPerianPanePListGenerator.h; sourceTree = "<group>"; }; 
    636636                F5CFD1BD0B5000CE00616865 /* GBPerianPanePListGenerator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GBPerianPanePListGenerator.m; sourceTree = "<group>"; }; 
     
    11131113                                F5CFD2D60B5012A100616865 /* A52Codec.component */, 
    11141114                                F5CFD2D80B5012A100616865 /* AC3MovieImport.component */, 
    1115                                 F5CFD2DA0B5012A100616865 /* A52Preferences.app */, 
     1115                                F5CFD2DA0B5012A100616865 /* Preferences.app */, 
    11161116                        ); 
    11171117                        name = Products; 
     
    13551355                        sourceTree = BUILT_PRODUCTS_DIR; 
    13561356                }; 
    1357                 F5CFD2DA0B5012A100616865 /* A52Preferences.app */ = { 
     1357                F5CFD2DA0B5012A100616865 /* Preferences.app */ = { 
    13581358                        isa = PBXReferenceProxy; 
    13591359                        fileType = wrapper.application; 
    1360                         path = A52Preferences.app; 
     1360                        path = Preferences.app; 
    13611361                        remoteRef = F5CFD2D90B5012A100616865 /* PBXContainerItemProxy */; 
    13621362                        sourceTree = BUILT_PRODUCTS_DIR; 
     
    22682268                                DEBUG_INFORMATION_FORMAT = dwarf; 
    22692269                                GCC_MODEL_TUNING = G5; 
     2270                                GCC_PREPROCESSOR_DEFINITIONS = DEBUG_BUILD; 
    22702271                                STRIP_INSTALLED_PRODUCT = NO; 
    22712272                        }; 
  • trunk/SSADocument.m

    r361 r374  
    2222#import "Categories.h" 
    2323#include "SubImport.h" 
     24#include "Codecprintf.h" 
    2425 
    2526@implementation SSADocument 
     
    397398         
    398399        if (![nextLine isEqualToString:@"[Script Info]"]) { 
    399                 NSLog(@"\"%@\" is not a valid SSA header?",nextLine); 
     400                Codecprintf(stderr,"The line \"%s\" isn't a valid SSA header\n",[nextLine UTF8String]); 
    400401                return; 
    401402        } 
     
    548549 
    549550                err=AddMediaSample(theMedia,sampleHndl,0,sampleLen, p->end_time - p->begin_time,(SampleDescriptionHandle)textDesc, 1, 0, &sampleTime); 
    550                 if (err != noErr) {err = GetMoviesError(); NSLog(@"external SSA: error %d adding %d-%d line",err, p->begin_time, p->end_time); goto loopend;} 
     551                if (err != noErr) {err = GetMoviesError(); Codecprintf(stderr,"external SSA: error %d adding %d-%d line\n",err, p->begin_time, p->end_time); goto loopend;} 
    551552                 
    552553                ConvertTimeScale(&movieStartTime, movieTimeScale); 
  • trunk/SubImport.mm

    r370 r374  
    317317                                { 
    318318                                err = LoadSubRipSubtitles(&parentDir, cfFoundFilename, theMovie, &firstSubTrack); 
    319                                 if (err) NSLog(@"Perian: loading .srt, error %d",err); 
    320319                                goto bail; 
    321320                                } 
     
    326325                        { 
    327326                                err = LoadSubStationAlphaSubtitles(&parentDir, cfFoundFilename, theMovie, &firstSubTrack); 
    328                                 if (err) NSLog(@"Perian: loading .ass, error %d",err); 
    329327                                goto bail; 
    330328                        } 
     
    334332                        { 
    335333                                err = LoadSubStationAlphaSubtitles(&parentDir, cfFoundFilename, theMovie, &firstSubTrack); 
    336                                 if (err) NSLog(@"Perian: loading .ssa, error %d",err); 
    337334                                goto bail; 
    338335                        }                        
  • trunk/ff_private.c

    r350 r374  
    156156                // need to lookup the fourcc from the codec_id 
    157157                (*imgHdl)->cType = map_video_codec_to_mov_tag(codec->codec_id); 
    158       FourCCprintf("fourcc: ", (*imgHdl)->cType); 
     158//    FourCCprintf("fourcc: ", (*imgHdl)->cType); 
    159159         
    160160        (*imgHdl)->temporalQuality = codecMaxQuality;