- Timestamp:
- Aug 15, 2023, 4:59:00 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20230313/psLib/test/imageops/tap_psImageGeomManip.c
r21169 r42493 528 528 529 529 psImage *in; 530 psImage *out;531 psImage *out2;532 530 psS32 rows = 64; 533 531 psS32 cols = 64; … … 544 542 // Verify the returned psImage structure pointer is NULL and program 545 543 // 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); 547 545 if (out2 != NULL) { 548 546 psError(PS_ERR_UNKNOWN, true,"psImageRoll did not return NULL though input image was NULL!?"); … … 551 549 552 550 psFree(in); 553 psFree(out );554 555 #define testRollType(DATATYPE)\551 psFree(out2); 552 553 #define testRollType(DATATYPE) { \ 556 554 in = psImageAlloc(rows1,cols1,PS_TYPE_##DATATYPE); \ 557 555 \ … … 564 562 \ 565 563 errorFlag = false; \ 566 out = psImageRoll(NULL,in,rows1/4,cols1/4);\564 psImage *out = psImageRoll(NULL,in,rows1/4,cols1/4); \ 567 565 for (psS32 row=0;row<rows1;row++) { \ 568 566 ps##DATATYPE *inRow = in->data.DATATYPE[(row+rows1/4)%rows1]; \ … … 579 577 psFree(in); \ 580 578 psFree(out); \ 581 ok(!errorFlag, "psImageRoll() produced the correct data values"); 579 ok(!errorFlag, "psImageRoll() produced the correct data values"); } 582 580 583 581 testRollType(U8); … … 636 634 system("mkdir temp"); 637 635 psS32 index = 0; 638 psBool fail = false;639 636 psF32 radianRot; 640 637 … … 711 708 diag("verified psF32 image failed to be read (%d deg. rotation)", rot); 712 709 errorFlag = true; 713 fail = true;714 710 } else { 715 711 if(fTruth->numRows != fOut->numRows || fTruth->numCols != fOut->numCols) { … … 788 784 "(%d deg. rotation) BILINEAR",rot); 789 785 errorFlag = true; 790 fail = true;791 786 } else { 792 787 if (sBiTruth->numRows != sBiOut->numRows ||
Note:
See TracChangeset
for help on using the changeset viewer.
