Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /filter.h [3af83f] .. [15dc8a] Maximize Restore

  Switch to unified view

a/filter.h b/filter.h
...
...
148
148
149
149
150
//----------------------- Structures -------------------------------------------
150
//----------------------- Structures -------------------------------------------
151
151
152
struct remap_Prefs{                             // Preferences Structure for remap
152
struct remap_Prefs{                             // Preferences Structure for remap
153
        pt_int32         magic;                  //  File validity check, must be 30
153
        int32_t          magic;                  //  File validity check, must be 30
154
        int             from;                   // Image format source image
154
        int             from;                   // Image format source image
155
        int             to;                     // Image format destination image
155
        int             to;                     // Image format destination image
156
        double          hfov;                   // horizontal field of view /in degrees
156
        double          hfov;                   // horizontal field of view /in degrees
157
        double          vfov;                   // vertical field of view (usually ignored)
157
        double          vfov;                   // vertical field of view (usually ignored)
158
        } ;
158
        } ;
159
159
160
typedef struct remap_Prefs rPrefs;
160
typedef struct remap_Prefs rPrefs;
161
161
162
struct perspective_Prefs{                       //  Preferences structure for tool perspective
162
struct perspective_Prefs{                       //  Preferences structure for tool perspective
163
        pt_int32         magic;                  //  File validity check, must be 40
163
        int32_t          magic;                  //  File validity check, must be 40
164
        int             format;                 //  rectilinear or fisheye?
164
        int             format;                 //  rectilinear or fisheye?
165
        double          hfov;                   //  Horizontal field of view (in degree)
165
        double          hfov;                   //  Horizontal field of view (in degree)
166
        double          x_alpha;                //  New viewing direction (x coordinate or angle)
166
        double          x_alpha;                //  New viewing direction (x coordinate or angle)
167
        double          y_beta;                 //  New viewing direction (y coordinate or angle)
167
        double          y_beta;                 //  New viewing direction (y coordinate or angle)
168
        double          gamma;                  //  Angle of rotation
168
        double          gamma;                  //  Angle of rotation
...
...
251
        _extract,
251
        _extract,
252
        _useScript = 8,                     // else use options
252
        _useScript = 8,                     // else use options
253
    };
253
    };
254
254
255
struct adjust_Prefs{                  //  Preferences structure for tool adjust
255
struct adjust_Prefs{                  //  Preferences structure for tool adjust
256
    pt_int32            magic;        //  File validity check, must be 50
256
    int32_t            magic;        //  File validity check, must be 50
257
    pt_int32            mode;         //  What to do: create Panorama etc?
257
    int32_t            mode;         //  What to do: create Panorama etc?
258
    Image               im;           //  Image to be inserted/extracted
258
    Image               im;           //  Image to be inserted/extracted
259
    Image               pano;         //  Panorama to be created/ used for extraction
259
    Image               pano;         //  Panorama to be created/ used for extraction
260
260
261
    stBuf               sBuf;
261
    stBuf               sBuf;
262
    fullPath            scriptFile;   // full path to scriptFile
262
    fullPath            scriptFile;   // full path to scriptFile
...
...
284
        
284
        
285
typedef union panoPrefs panoPrefs;
285
typedef union panoPrefs panoPrefs;
286
286
287
287
288
struct size_Prefs{                      // Preferences structure for 'pref' dialog
288
struct size_Prefs{                      // Preferences structure for 'pref' dialog
289
    pt_int32        magic;              //  File validity check; must be 70
289
    int32_t        magic;              //  File validity check; must be 70
290
    int             displayPart;        // Display cropped/framed image ?
290
    int             displayPart;        // Display cropped/framed image ?
291
    int             saveFile;           // Save to tempfile? 0-no, 1-yes
291
    int             saveFile;           // Save to tempfile? 0-no, 1-yes
292
    fullPath        sFile;              // Full path to file (short name)
292
    fullPath        sFile;              // Full path to file (short name)
293
    int             launchApp;          // Open sFile ?
293
    int             launchApp;          // Open sFile ?
294
    fullPath        lApp;               // the Application to launch
294
    fullPath        lApp;               // the Application to launch
...
...
585
int     Progress( int command, char* argument );    // Progress Reporting 
585
int     Progress( int command, char* argument );    // Progress Reporting 
586
void PT_setInfoDlgFcn(int (*ptr)(int, char *));            // set custom info callback
586
void PT_setInfoDlgFcn(int (*ptr)(int, char *));            // set custom info callback
587
int     infoDlg ( int command, char* argument );    // Display info: same argumenmts as progress
587
int     infoDlg ( int command, char* argument );    // Display info: same argumenmts as progress
588
void PT_setErrorFcn( void (*ptr)( char* , va_list va));         // set custom error function
588
void PT_setErrorFcn( void (*ptr)( char* , va_list va));         // set custom error function
589
void    PrintError( char* fmt, ...);                // Error Reporting
589
void    PrintError( char* fmt, ...);                // Error Reporting
590
void dieWithError(const char*fmt, ...);
590
void dieWithError(char*fmt, ...);
591
591
592
int     ccommand( char ***argvPtr);                 // Shell for standalone programs
592
int     ccommand( char ***argvPtr);                 // Shell for standalone programs
593
593
594
594
595
//  Panorama Tool functions
595
//  Panorama Tool functions