IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 15, 2005, 11:22:22 AM (21 years ago)
Author:
drobbin
Message:

Minor changes from new SDRS, prototype code for psArguments

File:
1 edited

Legend:

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

    r4544 r5057  
    88 *  @author Robert DeSonia, MHPCC
    99 *
    10  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2005-07-12 19:33:49 $
     10 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2005-09-15 21:22:22 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    9191
    9292    // increment the raw data buffer before freeing anything in the 'out'
    93     psPtr rawData = psMemIncrRefCounter(image->rawDataBuffer);
     93    psPtr rawData = psMemIncrRefCounter(image->p_rawDataBuffer);
    9494
    9595    if (out != NULL) {
     
    100100        }
    101101
    102         psFree(out->rawDataBuffer); // free the previous data reference
     102        psFree(out->p_rawDataBuffer); // free the previous data reference
    103103    } else {
    104104        out = psAlloc(sizeof(psImage));
     
    116116    out->parent = image;
    117117    out->children = NULL;
    118     out->rawDataBuffer = rawData;
     118    out->p_rawDataBuffer = rawData;
    119119
    120120    // set the new psImage's deallocator to the same as the input image
     
    357357    psU32 rowSize = elementSize*numCols;
    358358    psU32 colOffset = elementSize * col0;
    359     psU8* imageData = image->rawDataBuffer;
     359    psU8* imageData = image->p_rawDataBuffer;
    360360    for (psS32 row = row0; row < row1; row++) {
    361361        memmove(imageData,image->data.U8[row] + colOffset,rowSize);
     
    368368    // XXX: should I really resize the buffers?
    369369    image->data.V = psRealloc(image->data.V,sizeof(psPtr)*numRows);
    370     image->rawDataBuffer = psRealloc(image->rawDataBuffer,rowSize*numRows);
    371 
    372     image->data.V[0] = image->rawDataBuffer;
     370    image->p_rawDataBuffer = psRealloc(image->p_rawDataBuffer,rowSize*numRows);
     371
     372    image->data.V[0] = image->p_rawDataBuffer;
    373373    for (psS32 r = 1; r < numRows; r++) {
    374374        image->data.U8[r] = image->data.U8[r-1] + rowSize;
Note: See TracChangeset for help on using the changeset viewer.