IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6227


Ignore:
Timestamp:
Jan 27, 2006, 3:12:17 PM (20 years ago)
Author:
desonia
Message:

changed 'complex' to 'double complex' to be more C99 compliant.

Location:
trunk/psLib
Files:
12 edited

Legend:

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

    r5511 r6227  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-11-14 22:18:33 $
     12 *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-01-28 01:12:11 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    305305                       const psImage* input,
    306306                       float angle,
    307                        complex exposed,
     307                       double complex exposed,
    308308                       psImageInterpolateMode mode)
    309309{
     
    597597                      float dx,
    598598                      float dy,
    599                       complex exposed,
     599                      double complex exposed,
    600600                      psImageInterpolateMode mode)
    601601{
  • trunk/psLib/src/imageops/psImageGeomManip.h

    r4934 r6227  
    88 *  @author Robert DeSonia, MHPCC
    99 *
    10  *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2005-08-31 21:58:22 $
     10 *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2006-01-28 01:12:11 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    7777    const psImage* input,              ///< input image
    7878    float angle,                       ///< the rotation angle in radians.
    79     complex exposed,            ///< the output image pixel values for non-imagery areas
     79    double complex exposed,            ///< the output image pixel values for non-imagery areas
    8080    psImageInterpolateMode mode        ///< the interpolation mode used
    8181);
     
    9797    float dx,                          ///< the shift in x direction.
    9898    float dy,                          ///< the shift in y direction.
    99     complex exposed,            ///< the output image pixel values for non-imagery areas
     99    double complex exposed,            ///< the output image pixel values for non-imagery areas
    100100    psImageInterpolateMode mode        ///< the interpolation mode to use
    101101);
     
    151151    psRegion region,                   ///< the size of the transformed image
    152152    const psPixels* pixels,            /**< if not NULL, consists of psPixelCoords and specifies which pixels in
    153                                                                          *  output image shall be transformed; otherwise, entire image generated*/
     153                                                                             *  output image shall be transformed; otherwise, entire image generated*/
    154154    psImageInterpolateMode mode,       ///< the interpolation scheme to be used
    155155    double exposedValue                   ///< Exposed value to which non-corresponding pixels are set
  • trunk/psLib/src/imageops/psImagePixelManip.c

    r5227 r6227  
    1010 *  @author Ross Harman, MHPCC
    1111 *
    12  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-10-06 02:41:07 $
     12 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-01-28 01:12:11 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    311311
    312312int psImageClipComplexRegion(psImage* input,
    313                              complex min,
    314                              complex vmin,
    315                              complex max,
    316                              complex vmax)
     313                             double complex min,
     314                             double complex vmin,
     315                             double complex max,
     316                             double complex vmax)
    317317{
    318318    psS32 numClipped = 0;
  • trunk/psLib/src/imageops/psImagePixelManip.h

    r5227 r6227  
    88 *  @author Robert DeSonia, MHPCC
    99 *
    10  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2005-10-06 02:41:07 $
     10 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2006-01-28 01:12:11 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5151int psImageClipComplexRegion(
    5252    psImage* input,                    ///< the image to clip
    53     complex min,                       ///< the minimum image value allowed
    54     complex vmin,                      ///< the value pixels < min are set to
    55     complex max,                       ///< the maximum image value allowed
    56     complex vmax                       ///< the value pixels > max are set to
     53    double complex min,                ///< the minimum image value allowed
     54    double complex vmin,               ///< the value pixels < min are set to
     55    double complex max,                ///< the maximum image value allowed
     56    double complex vmax                ///< the value pixels > max are set to
    5757);
    5858
  • trunk/psLib/src/mathtypes/psImage.c

    r5841 r6227  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.93 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-12-24 00:33:18 $
     11 *  @version $Revision: 1.94 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-01-28 01:12:14 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    289289                int x,
    290290                int y,
    291                 complex value)
     291                double complex value)
    292292{
    293293    if (image == NULL) {
     
    359359}
    360360
    361 complex psImageGet(const psImage *image,
    362                    int x,
    363                    int y)
     361double complex psImageGet(const psImage *image,
     362                          int x,
     363                          int y)
    364364{
    365365    if (image == NULL) {
     
    668668}
    669669
    670 complex psImagePixelInterpolate(const psImage* input,
    671                                 float x,
    672                                 float y,
    673                                 const psImage* mask,
    674                                 psMaskType maskVal,
    675                                 complex unexposedValue,
    676                                 psImageInterpolateMode mode)
     670double complex psImagePixelInterpolate(const psImage* input,
     671                                       float x,
     672                                       float y,
     673                                       const psImage* mask,
     674                                       psMaskType maskVal,
     675                                       double complex unexposedValue,
     676                                       psImageInterpolateMode mode)
    677677{
    678678
  • trunk/psLib/src/mathtypes/psImage.h

    r5530 r6227  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.73 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-11-16 23:06:21 $
     13 *  @version $Revision: 1.74 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2006-01-28 01:12:14 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    206206    int x,                             ///< x-position
    207207    int y,                             ///< y-position
    208     complex value                      ///< specified value to set
     208    double complex value               ///< specified value to set
    209209);
    210210
     
    213213 *  A negative value for the x or y positions means index from the end.
    214214 *
    215  *  @return complex:        The value at the specified x,y position.
    216  */
    217 complex psImageGet(
     215 *  @return complex: The value at the specified x,y position.
     216 */
     217double complex psImageGet(
    218218    const psImage *image,              ///< the image from which to get
    219219    int x,                             ///< x-position
     
    272272/** Interpolate image pixel value given floating point coordinates.
    273273 *
    274  *  @return psF32    Pixel value interpolated from image or unexposedValue if
     274 *  @return complex    Pixel value interpolated from image or unexposedValue if
    275275 *                   given x,y doesn't coorespond to a valid image location
    276276 */
    277 complex psImagePixelInterpolate(
     277double complex psImagePixelInterpolate(
    278278    const psImage* input,              ///< input image for interpolation
    279279    float x,                           ///< column location to derive value of
     
    281281    const psImage* mask,               ///< if not NULL, the mask of the input image
    282282    psMaskType maskVal,                ///< the mask value
    283     complex unexposedValue,            ///< return value if x,y location is not in image.
     283    double complex unexposedValue,            ///< return value if x,y location is not in image.
    284284    psImageInterpolateMode mode        ///< interpolation mode
    285285);
  • trunk/psLib/src/mathtypes/psScalar.c

    r4935 r6227  
    88 *  @author Ross Harman, MHPCC
    99 *
    10  *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2005-08-31 22:00:10 $
     10 *  @version $Revision: 1.21 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2006-01-28 01:12:14 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2727}
    2828
    29 psScalar* psScalarAlloc(complex value, psElemType type)
     29psScalar* psScalarAlloc(double complex value, psElemType type)
    3030{
    3131    psScalar* scalar = NULL;
  • trunk/psLib/src/mathtypes/psScalar.h

    r5057 r6227  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-09-15 21:22:22 $
     13 *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2006-01-28 01:12:14 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    6666 */
    6767psScalar* psScalarAlloc(
    68     complex value,                     ///< Data to be put into psScalar.
     68    double complex value,              ///< Data to be put into psScalar.
    6969    psElemType type                    ///< Type of data to be held by psScalar.
    7070);
  • trunk/psLib/src/mathtypes/psVector.c

    r5841 r6227  
    99*  @author Robert DeSonia, MHPCC
    1010*
    11 *  @version $Revision: 1.63 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2005-12-24 00:33:18 $
     11*  @version $Revision: 1.64 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2006-01-28 01:12:14 $
    1313*
    1414*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    818818bool psVectorSet(const psVector *input,
    819819                 long position,
    820                  complex value)
     820                 double complex value)
    821821{
    822822    if (input == NULL) {
     
    890890}
    891891
    892 complex psVectorGet(const psVector *input,
    893                     long position)
     892double complex psVectorGet(const psVector *input,
     893                           long position)
    894894{
    895895    if (input == NULL) {
  • trunk/psLib/src/mathtypes/psVector.h

    r5530 r6227  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.50 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-11-16 23:06:21 $
     13 *  @version $Revision: 1.51 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2006-01-28 01:12:14 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    235235    const psVector *input,             ///< Input vector to set
    236236    long position,                     ///< vector position
    237     complex value                      ///< value to set
     237    double complex value               ///< value to set
    238238);
    239239
     
    244244 *  @return complex:        Value of the input vector at the specified position.
    245245 */
    246 complex psVectorGet(
     246double complex psVectorGet(
    247247    const psVector *input,             ///< Input vector from which to get value
    248248    long position                      ///< vector position
  • trunk/psLib/src/sys/psType.h

    r5454 r6227  
    1010*  @author Ross Harman, MHPCC
    1111*
    12 *  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2005-10-29 00:05:52 $
     12*  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2006-01-28 01:12:15 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    6767
    6868#else // SWIG
    69 typedef float _Complex psC32;          ///< complex with 32-bit floating point Real and Imagary numbers
    70 typedef double _Complex psC64;         ///< complex with 64-bit floating point Real and Imagary numbers
     69typedef float complex psC32;          ///< complex with 32-bit floating point Real and Imagary numbers
     70typedef double complex psC64;         ///< complex with 64-bit floating point Real and Imagary numbers
    7171#endif // !SWIG
    7272
  • trunk/psLib/test/astro/tst_psTime_04.c

    r6212 r6227  
    1818 *  @author  David Robbins, MHPCC
    1919 *
    20  *  @version $Revision: 1.7 $  $Name: not supported by cvs2svn $
    21  *  @date  $Date: 2006-01-26 23:32:49 $
     20 *  @version $Revision: 1.8 $  $Name: not supported by cvs2svn $
     21 *  @date  $Date: 2006-01-28 01:12:17 $
    2222 *
    2323 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    161161        psError(PS_ERR_BAD_PARAMETER_VALUE, false,
    162162                "psTime_TideUT1Corr failed to return correct values.\n");
    163         printf("\nsec = %ld, nsec = %u\n", (long)(empty->sec), empty->nsec);
     163        printf("\nsec = %ld, nsec = %u\n", (long int)empty->sec, empty->nsec);
    164164        return 2;
    165165    }
Note: See TracChangeset for help on using the changeset viewer.