Changeset 364

Show
Ignore:
Timestamp:
04/09/07 02:38:45 (1 year ago)
Author:
cweider2
Message:

DarkKit framework installed

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ILDAInspector/ILDAlib.c

    r348 r364  
    44//       
    55//      Created by Chad Weider on 11/11/06. 
    6 //  Copyright (c) 2006 Cotingent
     6//  Copyright (c) 2007 Chad Weider
    77//  Some rights reserved: <http://creativecommons.org/licenses/by/2.5/> 
    88//   
     
    296296                newSpace = realloc(seq->frames, sizeof(ILDAFrame)*newFrameCount); 
    297297                if(newSpace == NULL) 
    298                         return errno
     298                        return -1
    299299                seq->frames = newSpace; 
    300300                 
     
    306306                for(i = oldFrameCount; i < newFrameCount; i++) 
    307307                        { 
    308                         seq->frames[i].header = append->frames[i].header;             //Copy header 
     308                        seq->frames[i].header = append->frames[i-oldFrameCount].header;               //Copy header 
    309309                        seq->frames[i].header.objectCount += oldFrameCount; 
    310310                        seq->frames[i].header.objectNumber = newFrameCount; 
    311311                         
    312                         (seq->frames)[i].points = (ILDAPoint *)malloc(sizeof(ILDAPoint)*(append->frames)[i].header.entryCount);                 //Copy point list 
    313                         memcpy((seq->frames)[i].points, (append->frames)[i].points, sizeof(ILDAPoint)*(append->frames)[i].header.entryCount); 
     312                        seq->frames[i].points = (ILDAPoint *)malloc(sizeof(ILDAPoint)*(append->frames[i-oldFrameCount].header.entryCount));                     //Copy point list 
     313                                /*memcheck*/ 
     314                        memcpy(seq->frames[i].points, append->frames[i].points, sizeof(ILDAPoint)*(append->frames[i-oldFrameCount].header.entryCount)); 
    314315                        } 
    315316        seq->frameCount = newFrameCount; 
     
    321322                newSpace = realloc(seq->frames, sizeof(ILDAPalette)*newPaletteCount); 
    322323                if(newSpace == NULL) 
    323                         return errno
     324                        return -1
    324325                seq->palettes = newSpace; 
    325326                 
    326327                for(i = oldPaletteCount; i < newPaletteCount; i++) 
    327328                        { 
    328                         seq->palettes[i].header = append->palettes[i].header; //Copy header 
     329                        seq->palettes[i].header = append->palettes[i-oldPaletteCount].header; //Copy header 
    329330                         
    330                         (seq->palettes)[i].colors = (ILDAColor *)malloc(sizeof(ILDAColor)*(append->palettes)[i].header.entryCount);             //Copy color table 
    331                         memcpy((seq->palettes)[i].colors, (append->palettes)[i].colors, sizeof(ILDAColor)*(append->palettes)[i].header.entryCount); 
     331                        seq->palettes[i].colors = (ILDAColor *)malloc(sizeof(ILDAColor)*(append->palettes[i-oldFrameCount].header.entryCount));         //Copy color table 
     332                                /*memcheck*/ 
     333                        memcpy(seq->palettes[i].colors, append->palettes[i].colors, sizeof(ILDAColor)*(append->palettes[i-oldFrameCount].header.entryCount)); 
    332334                        } 
    333335                seq->paletteCount = newPaletteCount; 
     
    336338                newSpace = realloc(seq->paletteMap, sizeof(short)*newFrameCount); 
    337339                if(newSpace == NULL) 
    338                         return errno
     340                        return -1
    339341                seq->paletteMap = newSpace; 
    340342                 
    341343                for(i = oldFrameCount; i < newFrameCount; i++) 
    342                         seq->paletteMap[i] = append->paletteMap[i] + oldPaletteCount; 
     344                        seq->paletteMap[i] = append->paletteMap[i-oldFrameCount] + oldPaletteCount; 
    343345         
    344346        return 0; 
     
    615617        frame->points = malloc(sizeof(ILDAPoint)*pointCount); 
    616618        if(frame->points == NULL) 
    617                 return errno
     619                return -1
    618620         
    619621        short i; 
     
    680682        palette->colors = malloc(sizeof(colorSize)*colorCount); //************Must be freed 
    681683        if(palette->colors == NULL) 
    682                 return errno
     684                return -1
    683685         
    684686        switch(palette->header.formatType) 
     
    743745 
    744746 
    745 bool ILDAPoint_blank_bit(ILDAPoint *point)    //return true iff point is blanked 
     747bool ILDAPoint_blank_bit(const ILDAPoint *point)      //return true iff point is blanked 
    746748        { 
    747749        if(point != NULL) 
     
    751753 
    752754 
    753 char ILDAPoint_color_index(ILDAPoint *point) 
     755char ILDAPoint_color_index(const ILDAPoint *point) 
    754756        { 
    755757        if(point != NULL) 
     
    762764 
    763765#pragma mark Misc. 
    764 void printHeader(ILDAHeader *header) 
     766void printHeader(const ILDAHeader *header) 
    765767        { 
    766768        if(header == NULL) 
  • trunk/ILDAInspector/ILDAlib.h

    r348 r364  
    44//   
    55//  Created by Chad Weider on 11/11/06. 
    6 //  Copyright (c) 2006 Cotingent
     6//  Copyright (c) 2007 Chad Weider
    77//  Some rights reserved: <http://creativecommons.org/licenses/by/2.5/> 
    88//   
     
    5050ILDAPalette *ILDASequence_get_palette(const ILDASequence *seq, const unsigned short index); 
    5151ILDAPoint *ILDAFrame_get_point(const ILDAFrame *frame, const unsigned short index); 
    52 bool ILDAPoint_blank_bit(ILDAPoint *point); 
    53 char ILDAPoint_color_index(ILDAPoint *point); 
     52bool ILDAPoint_blank_bit(const ILDAPoint *point); 
     53char ILDAPoint_color_index(const ILDAPoint *point); 
    5454 
    5555 
    5656//Misc. 
    57 void printHeader(ILDAHeader *header); 
     57void printHeader(const ILDAHeader *header); 
  • trunk/ILDAInspector/ILDAtypes.h

    r348 r364  
    2525        ILDAPaletteType = 2, 
    2626        ILDATrueColorType = 3, 
     27        ILDAUnknownType, 
    2728        } ILDASectionType; 
    2829 
  • trunk/LaserLine_2.0/LaserLine_2.0.xcodeproj/project.pbxproj

    r363 r364  
    1616                A83D1CF20BAA1EA800E8271A /* LZFrameObject.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = A83D1CF00BAA1EA800E8271A /* LZFrameObject.h */; }; 
    1717                A83D1CF30BAA1EA800E8271A /* LZFrameObject.m in Sources */ = {isa = PBXBuildFile; fileRef = A83D1CF10BAA1EA800E8271A /* LZFrameObject.m */; }; 
     18                A87A15430BCA2491007AA009 /* DarkKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A87A15420BCA2491007AA009 /* DarkKit.framework */; }; 
    1819                A87BE21F0BA469B1002DEDDF /* LZSpirograph.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = A87BE21D0BA469B1002DEDDF /* LZSpirograph.h */; }; 
    1920                A87BE2200BA469B1002DEDDF /* LZSpirograph.m in Sources */ = {isa = PBXBuildFile; fileRef = A87BE21E0BA469B1002DEDDF /* LZSpirograph.m */; }; 
     
    8485 
    8586/* Begin PBXContainerItemProxy section */ 
    86                 C4C014D20BA0F31100B17D07 /* PBXContainerItemProxy */ = { 
    87                         isa = PBXContainerItemProxy; 
    88                         containerPortal = C4C014CA0BA0F31100B17D07 /* DarkKitApp.xcodeproj */; 
    89                         proxyType = 2; 
    90                         remoteGlobalIDString = C4971DA70B9A2C3C00E57A56; 
    91                         remoteInfo = DarkKit; 
    92                 }; 
    93                 C4C014D40BA0F31100B17D07 /* PBXContainerItemProxy */ = { 
    94                         isa = PBXContainerItemProxy; 
    95                         containerPortal = C4C014CA0BA0F31100B17D07 /* DarkKitApp.xcodeproj */; 
    96                         proxyType = 2; 
    97                         remoteGlobalIDString = 8D1107320486CEB800E47090; 
    98                         remoteInfo = DarkKitApp; 
    99                 }; 
    100                 C4C014DB0BA0F3C300B17D07 /* PBXContainerItemProxy */ = { 
    101                         isa = PBXContainerItemProxy; 
    102                         containerPortal = C4C014CA0BA0F31100B17D07 /* DarkKitApp.xcodeproj */; 
    103                         proxyType = 1; 
    104                         remoteGlobalIDString = C4971DA60B9A2C3C00E57A56; 
    105                         remoteInfo = DarkKit; 
    106                 }; 
    10787                F808BBDC0B9A5156001283DF /* PBXContainerItemProxy */ = { 
    10888                        isa = PBXContainerItemProxy; 
     
    191171                A83D1CF00BAA1EA800E8271A /* LZFrameObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LZFrameObject.h; sourceTree = "<group>"; }; 
    192172                A83D1CF10BAA1EA800E8271A /* LZFrameObject.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LZFrameObject.m; sourceTree = "<group>"; }; 
     173                A87A15420BCA2491007AA009 /* DarkKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = DarkKit.framework; path = ../Frameworks/DarkKit.framework; sourceTree = SOURCE_ROOT; }; 
    193174                A87BE21D0BA469B1002DEDDF /* LZSpirograph.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LZSpirograph.h; sourceTree = "<group>"; }; 
    194175                A87BE21E0BA469B1002DEDDF /* LZSpirograph.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LZSpirograph.m; sourceTree = "<group>"; }; 
     
    202183                A8F7F90E0BA3AA8D00674CC4 /* LZOutputDevice.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LZOutputDevice.h; sourceTree = "<group>"; }; 
    203184                A8F7F90F0BA3AA8D00674CC4 /* LZOutputDevice.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LZOutputDevice.m; sourceTree = "<group>"; }; 
    204                 C4C014CA0BA0F31100B17D07 /* DarkKitApp.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = DarkKitApp.xcodeproj; path = ../UI_Elements/DarkKitApp/DarkKitApp.xcodeproj; sourceTree = SOURCE_ROOT; }; 
    205185                C4C015890BA0F6FA00B17D07 /* LZSplitView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = LZSplitView.m; sourceTree = "<group>"; }; 
    206186                C4C0158A0BA0F6FA00B17D07 /* LZSplitView.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = LZSplitView.h; sourceTree = "<group>"; }; 
     
    301281                                D4957DFB0BC8501A00E3105D /* libEasyLase.1.0b4.dylib in Frameworks */, 
    302282                                D4957DFD0BC8501F00E3105D /* libftd2xx.0.1.3.dylib in Frameworks */, 
     283                                A87A15430BCA2491007AA009 /* DarkKit.framework in Frameworks */, 
    303284                        ); 
    304285                        runOnlyForDeploymentPostprocessing = 0; 
     
    354335                        isa = PBXGroup; 
    355336                        children = ( 
    356                                 C4C014CA0BA0F31100B17D07 /* DarkKitApp.xcodeproj */, 
    357337                                F808C1A80B9AA3BE001283DF /* LaserTools.xcodeproj */, 
    358338                                F808BBD70B9A5156001283DF /* CocoaTimeline.xcodeproj */, 
     
    400380                                D4957DFA0BC8501A00E3105D /* libEasyLase.1.0b4.dylib */, 
    401381                                D4957DFC0BC8501F00E3105D /* libftd2xx.0.1.3.dylib */, 
     382                                A87A15420BCA2491007AA009 /* DarkKit.framework */, 
    402383                                D45F3CB70BAA71F80076788A /* QTKit.framework */, 
    403384                                1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */, 
     
    508489                        sourceTree = "<group>"; 
    509490                }; 
    510                 C4C014CB0BA0F31100B17D07 /* Products */ = { 
    511                         isa = PBXGroup; 
    512                         children = ( 
    513                                 C4C014D30BA0F31100B17D07 /* DarkKit.framework */, 
    514                                 C4C014D50BA0F31100B17D07 /* DarkKitApp.app */, 
    515                         ); 
    516                         name = Products; 
    517                         sourceTree = "<group>"; 
    518                 }; 
    519491                D4C770900BA1361B00418A28 /* Generators */ = { 
    520492                        isa = PBXGroup; 
     
    581553                                F808BBE30B9A516E001283DF /* PBXTargetDependency */, 
    582554                                F808C1B60B9AA3D6001283DF /* PBXTargetDependency */, 
    583                                 C4C014DC0BA0F3C300B17D07 /* PBXTargetDependency */, 
    584555                        ); 
    585556                        name = LaserLine_2.0; 
     
    604575                                }, 
    605576                                { 
    606                                         ProductGroup = C4C014CB0BA0F31100B17D07 /* Products */; 
    607                                         ProjectRef = C4C014CA0BA0F31100B17D07 /* DarkKitApp.xcodeproj */; 
    608                                 }, 
    609                                 { 
    610577                                        ProductGroup = F808C1A90B9AA3BE001283DF /* Products */; 
    611578                                        ProjectRef = F808C1A80B9AA3BE001283DF /* LaserTools.xcodeproj */; 
     
    619586 
    620587/* Begin PBXReferenceProxy section */ 
    621                 C4C014D30BA0F31100B17D07 /* DarkKit.framework */ = { 
    622                         isa = PBXReferenceProxy; 
    623                         fileType = wrapper.framework; 
    624                         path = DarkKit.framework; 
    625                         remoteRef = C4C014D20BA0F31100B17D07 /* PBXContainerItemProxy */; 
    626                         sourceTree = BUILT_PRODUCTS_DIR; 
    627                 }; 
    628                 C4C014D50BA0F31100B17D07 /* DarkKitApp.app */ = { 
    629                         isa = PBXReferenceProxy; 
    630                         fileType = wrapper.application; 
    631                         path = DarkKitApp.app; 
    632                         remoteRef = C4C014D40BA0F31100B17D07 /* PBXContainerItemProxy */; 
    633                         sourceTree = BUILT_PRODUCTS_DIR; 
    634                 }; 
    635588                F808BBDD0B9A5156001283DF /* CocoaTimeline.app */ = { 
    636589                        isa = PBXReferenceProxy; 
     
    746699 
    747700/* Begin PBXTargetDependency section */ 
    748                 C4C014DC0BA0F3C300B17D07 /* PBXTargetDependency */ = { 
    749                         isa = PBXTargetDependency; 
    750                         name = DarkKit; 
    751                         targetProxy = C4C014DB0BA0F3C300B17D07 /* PBXContainerItemProxy */; 
    752                 }; 
    753701                F808BBE30B9A516E001283DF /* PBXTargetDependency */ = { 
    754702                        isa = PBXTargetDependency; 
     
    787735                        buildSettings = { 
    788736                                COPY_PHASE_STRIP = NO; 
     737                                FRAMEWORK_SEARCH_PATHS = ( 
     738                                        "$(inherited)", 
     739                                        "$(FRAMEWORK_SEARCH_PATHS_QUOTED_1)", 
     740                                ); 
     741                                FRAMEWORK_SEARCH_PATHS_QUOTED_1 = "\"$(SRCROOT)/../Frameworks\""; 
    789742                                GCC_DYNAMIC_NO_PIC = NO; 
    790743                                GCC_ENABLE_FIX_AND_CONTINUE = NO; 
     
    813766                                        i386, 
    814767                                ); 
     768                                FRAMEWORK_SEARCH_PATHS = ( 
     769                                        "$(inherited)", 
     770                                        "$(FRAMEWORK_SEARCH_PATHS_QUOTED_1)", 
     771                                ); 
     772                                FRAMEWORK_SEARCH_PATHS_QUOTED_1 = "\"$(SRCROOT)/../Frameworks\""; 
    815773                                GCC_ENABLE_FIX_AND_CONTINUE = NO; 
    816774                                GCC_GENERATE_DEBUGGING_SYMBOLS = NO;