IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 9, 2004, 1:34:58 PM (22 years ago)
Author:
desonia
Message:

cleanup of some indent-induced madness.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/image/psImage.c

    r1407 r1440  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.38 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2004-08-07 00:06:06 $
     12 *  @version $Revision: 1.39 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2004-08-09 23:34:58 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3232#include "psImage.h"
    3333
    34 static void imageFree(psImage * image);
     34static void imageFree(psImage* image);
    3535
    3636/*****************************************************************************/
     
    4040/*****************************************************************************/
    4141
    42 psImage *psImageAlloc(unsigned int numCols, unsigned int numRows, const psElemType type)
     42psImage* psImageAlloc(unsigned int numCols, unsigned int numRows, const psElemType type)
    4343{
    4444    int area = 0;
     
    6161    }
    6262
    63     psImage *image = (psImage *) psAlloc(sizeof(psImage));
     63    psImage* image = (psImage* ) psAlloc(sizeof(psImage));
    6464
    6565    if (image == NULL) {
     
    8787    *(unsigned int *)&image->numCols = numCols;
    8888    *(unsigned int *)&image->numRows = numRows;
    89     *(psDimen *) & image->type.dimen = PS_DIMEN_IMAGE;
    90     *(psElemType *) & image->type.type = type;
     89    *(psDimen* ) & image->type.dimen = PS_DIMEN_IMAGE;
     90    *(psElemType* ) & image->type.type = type;
    9191    image->parent = NULL;
    9292    image->nChildren = 0;
     
    9696}
    9797
    98 static void imageFree(psImage * image)
     98static void imageFree(psImage* image)
    9999{
    100100    if (image == NULL) {
     
    107107        unsigned int oldNumRows = image->numRows;
    108108        unsigned int oldNumCols = image->numCols;
    109         psPTR *rowPtr;
     109        psPTR* rowPtr;
    110110
    111111        for (unsigned int row = 0; row < oldNumRows; row++) {
     
    124124}
    125125
    126 psImage *psImageRecycle(psImage * old, unsigned int numCols, unsigned int numRows, const psElemType type)
     126psImage* psImageRecycle(psImage* old, unsigned int numCols, unsigned int numRows, const psElemType type)
    127127{
    128128    int elementSize = PSELEMTYPE_SIZEOF(type);  // element
     
    151151        unsigned int oldNumRows = old->numRows;
    152152        unsigned int oldNumCols = old->numCols;
    153         psPTR *rowPtr;
     153        psPTR* rowPtr;
    154154
    155155        for (unsigned int row = 0; row < oldNumRows; row++) {
     
    177177    *(unsigned int *)&old->numCols = numCols;
    178178    *(unsigned int *)&old->numRows = numRows;
    179     *(psElemType *) & old->type.type = type;
     179    *(psElemType* ) & old->type.type = type;
    180180
    181181    return old;
    182182}
    183183
    184 int psImageFreeChildren(psImage * image)
     184int psImageFreeChildren(psImage* image)
    185185{
    186186    int i = 0;
    187187    int nChildren = 0;
    188     psImage **children = NULL;
     188    psImage* *children = NULL;
    189189    int numFreed = 0;
    190190
     
    216216linear interpolation is performed on the image.
    217217 *****************************************************************************/
    218 psF32 psImagePixelInterpolate(const psImage * input,
     218psF32 psImagePixelInterpolate(const psImage* input,
    219219                              float x, float y, psF32 unexposedValue, psImageInterpolateMode mode)
    220220{
     
    259259
    260260#define PSIMAGE_PIXEL_INTERPOLATE_FLAT(TYPE) \
    261 inline psF64 p_psImagePixelInterpolateFLAT_##TYPE(const psImage *input, \
     261inline psF64 p_psImagePixelInterpolateFLAT_##TYPE(const psImage* input, \
    262262        float x, \
    263263        float y, \
     
    280280
    281281#define PSIMAGE_PIXEL_INTERPOLATE_FLAT_COMPLEX(TYPE) \
    282 inline psC64 p_psImagePixelInterpolateFLAT_##TYPE(const psImage *input, \
     282inline psC64 p_psImagePixelInterpolateFLAT_##TYPE(const psImage* input, \
    283283        float x, \
    284284        float y, \
     
    313313PSIMAGE_PIXEL_INTERPOLATE_FLAT_COMPLEX(C64)
    314314#define PSIMAGE_PIXEL_INTERPOLATE_BILINEAR(TYPE) \
    315 inline psF64 p_psImagePixelInterpolateBILINEAR_##TYPE(const psImage *input, \
     315inline psF64 p_psImagePixelInterpolateBILINEAR_##TYPE(const psImage* input, \
    316316        float x, \
    317317        float y, \
     
    368368}
    369369#define PSIMAGE_PIXEL_INTERPOLATE_BILINEAR_COMPLEX(TYPE) \
    370 inline psC64 p_psImagePixelInterpolateBILINEAR_##TYPE(const psImage *input, \
     370inline psC64 p_psImagePixelInterpolateBILINEAR_##TYPE(const psImage* input, \
    371371        float x, \
    372372        float y, \
Note: See TracChangeset for help on using the changeset viewer.