IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 15, 2023, 4:59:00 AM (3 years ago)
Author:
eugene
Message:

fixing tests so they compile (need to address some API changes to psPlaneTranformAlloc, psImageMapFit; fix unused vars, etc)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/psLib/test/imageops/tap_psImageGeomManip.c

    r21169 r42493  
    528528
    529529        psImage *in;
    530         psImage *out;
    531         psImage *out2;
    532530        psS32 rows = 64;
    533531        psS32 cols = 64;
     
    544542        // Verify the returned psImage structure pointer is NULL and program
    545543        // execution doesn't stop, if input parameter input is NULL.
    546         out2 = psImageRoll(NULL,NULL,0,0);
     544        psImage *out2 = psImageRoll(NULL,NULL,0,0);
    547545        if (out2 != NULL) {
    548546            psError(PS_ERR_UNKNOWN, true,"psImageRoll did not return NULL though input image was NULL!?");
     
    551549
    552550        psFree(in);
    553         psFree(out);
    554 
    555         #define testRollType(DATATYPE) \
     551        psFree(out2);
     552
     553#define testRollType(DATATYPE) {                          \
    556554        in = psImageAlloc(rows1,cols1,PS_TYPE_##DATATYPE); \
    557555        \
     
    564562        \
    565563        errorFlag = false; \
    566         out = psImageRoll(NULL,in,rows1/4,cols1/4); \
     564        psImage *out = psImageRoll(NULL,in,rows1/4,cols1/4);    \
    567565        for (psS32 row=0;row<rows1;row++) { \
    568566            ps##DATATYPE *inRow = in->data.DATATYPE[(row+rows1/4)%rows1]; \
     
    579577        psFree(in); \
    580578        psFree(out); \
    581         ok(!errorFlag, "psImageRoll() produced the correct data values");
     579        ok(!errorFlag, "psImageRoll() produced the correct data values"); }
    582580
    583581        testRollType(U8);
     
    636634        system("mkdir temp");
    637635        psS32 index = 0;
    638         psBool fail = false;
    639636        psF32 radianRot;
    640637
     
    711708                diag("verified psF32 image failed to be read (%d deg. rotation)", rot);
    712709                errorFlag = true;
    713                 fail = true;
    714710            } else {
    715711                if(fTruth->numRows != fOut->numRows || fTruth->numCols != fOut->numCols) {
     
    788784                     "(%d deg. rotation) BILINEAR",rot);
    789785                errorFlag = true;
    790                 fail = true;
    791786            } else {
    792787                if (sBiTruth->numRows != sBiOut->numRows ||
Note: See TracChangeset for help on using the changeset viewer.