IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3767


Ignore:
Timestamp:
Apr 25, 2005, 11:20:41 AM (21 years ago)
Author:
Paul Price
Message:

Added psPixelsCopy

Location:
trunk/doc/pslib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/ChangeLogSDRS.tex

    r3766 r3767  
    1 %%% $Id: ChangeLogSDRS.tex,v 1.89 2005-04-23 02:14:53 price Exp $
     1%%% $Id: ChangeLogSDRS.tex,v 1.90 2005-04-25 21:20:41 price Exp $
    22
    33\subsection{Changes from version 00 to version 01}
     
    538538\item Add \code{PS_META_TIME} to \code{psMetadataType}
    539539\item Changed \code{psPixels} to vector-like array of \code{psPixelCoord} (bug 371).
    540 \item Added \code{psPixelsAlloc} and \code{psPixelsRealloc} (bug 371).
     540\item Added \code{psPixelsAlloc}, \code{psPixelsRealloc} and \code{psPixelsCopy} (bug 371).
    541541\item After conversation with GG:
    542542  \begin{itemize}
  • trunk/doc/pslib/psLibSDRS.tex

    r3766 r3767  
    1 %%% $Id: psLibSDRS.tex,v 1.206 2005-04-23 02:14:53 price Exp $
     1%%% $Id: psLibSDRS.tex,v 1.207 2005-04-25 21:20:41 price Exp $
    22\documentclass[panstarrs,spec]{panstarrs}
    33
     
    30943094
    30953095\begin{verbatim}
     3096psPixels *psPixelsCopy(psPixels *out, const psPixels *pixels);
    30963097psPixels *psPixelsConcatenate(psPixels *out, const psPixels *pixels);
    30973098\end{verbatim}
    30983099
    3099 \code{psPixelsConcatenate} shall concatenate the \code{pixels} onto
     3100\code{psPixelsCopy} shall copy the contents of \code{pixels} to the
    31003101\code{out}.  In the event that \code{out} is \code{NULL}, a new
    31013102\code{psPixels} shall be allocated, and the contents of \code{pixels}
    31023103simply copied in.  If \code{pixels} is \code{NULL}, the function shall
    3103 generate an error and return \code{NULL}.  The function shall take
    3104 care to ensure that there are no duplicate pixels in \code{out} (since
    3105 the order in which the pixels are stored is not important, the values
    3106 may be sorted, allowing the use of a faster algorithm than a linear
    3107 scan).
     3104generate an error and return \code{NULL}.
     3105
     3106\code{psPixelsConcatenate} shall concatenate the \code{pixels} onto
     3107\code{out}.  In the event that \code{out} is \code{NULL}, the function
     3108performs a \code{psPixelsCopy}, returning the copy.  If \code{pixels}
     3109is \code{NULL}, the function shall generate an error and return
     3110\code{NULL}.  The function shall take care to ensure that there are no
     3111duplicate pixels in \code{out} (since the order in which the pixels
     3112are stored is not important, the values may be sorted, allowing the
     3113use of a faster algorithm than a linear scan).
    31083114
    31093115%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Note: See TracChangeset for help on using the changeset viewer.