IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12815 for trunk/psLib


Ignore:
Timestamp:
Apr 12, 2007, 8:55:33 AM (19 years ago)
Author:
magnier
Message:

use macro to set col0,row0

Location:
trunk/psLib/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageGeomManip.c

    r12745 r12815  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2007-04-05 00:17:29 $
     12 *  @version $Revision: 1.41 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2007-04-12 18:55:10 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    745745        // create the output image.
    746746        output = psImageRecycle(output, numCols, numRows, input->type.type);
    747         output->col0 = region.x0;
    748         output->row0 = region.y0;
     747        P_PSIMAGE_SET_COL0(output, region.x0);
     748        P_PSIMAGE_SET_ROW0(output, region.y0);
    749749    } else { // size of output is determined by output parameter
    750750        numRows = output->numRows;
  • trunk/psLib/src/types/psPixels.c

    r12330 r12815  
    77 *  @author Robert DeSonia, MHPCC
    88 *
    9  *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2007-03-08 22:12:56 $
     9 *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2007-04-12 18:55:33 $
    1111 *
    1212 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    211211        return NULL;
    212212    }
    213     *(psS32*)&out->row0 = (int)y0;
    214     *(psS32*)&out->col0 = (int)x0;
     213    P_PSIMAGE_SET_COL0(out, (int)x0);
     214    P_PSIMAGE_SET_ROW0(out, (int)y0);
    215215
    216216    // initialize image to all zeros
Note: See TracChangeset for help on using the changeset viewer.