\section{chaincode.c File Reference}
\label{chaincode_8c}\index{chaincode.c@{chaincode.c}}
{\tt \#include \char`\"{}sadie.h\char`\"{}}\par
{\tt \#include \char`\"{}proto.h\char`\"{}}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf UP}\ 1
\item 
\#define {\bf DOWN}\ 2
\item 
\#define {\bf LEFT}\ 3
\item 
\#define {\bf RIGHT}\ 4
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf CHAINCODE} ({\bf IMAGE} $\ast$in, {\bf IMAGE} $\ast$$\ast${\bf out})
\end{CompactItemize}


\subsection{Define Documentation}
\index{chaincode.c@{chaincode.c}!DOWN@{DOWN}}
\index{DOWN@{DOWN}!chaincode.c@{chaincode.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define DOWN\ 2}\label{chaincode_8c_a1}




Definition at line 5 of file chaincode.c.

Referenced by CHAINCODE.\index{chaincode.c@{chaincode.c}!LEFT@{LEFT}}
\index{LEFT@{LEFT}!chaincode.c@{chaincode.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LEFT\ 3}\label{chaincode_8c_a2}




Definition at line 6 of file chaincode.c.

Referenced by CHAINCODE.\index{chaincode.c@{chaincode.c}!RIGHT@{RIGHT}}
\index{RIGHT@{RIGHT}!chaincode.c@{chaincode.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define RIGHT\ 4}\label{chaincode_8c_a3}




Definition at line 7 of file chaincode.c.

Referenced by CHAINCODE.\index{chaincode.c@{chaincode.c}!UP@{UP}}
\index{UP@{UP}!chaincode.c@{chaincode.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define UP\ 1}\label{chaincode_8c_a0}




Definition at line 4 of file chaincode.c.

Referenced by CHAINCODE.

\subsection{Function Documentation}
\index{chaincode.c@{chaincode.c}!CHAINCODE@{CHAINCODE}}
\index{CHAINCODE@{CHAINCODE}!chaincode.c@{chaincode.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void CHAINCODE ({\bf IMAGE} $\ast$ {\em in}, {\bf IMAGE} $\ast$$\ast$ {\em out})}\label{chaincode_8c_a4}




Definition at line 18 of file chaincode.c.

References CHECKIMG, IMAGE::data, DOWN, GETMEM, IMAGE::gmax, IMAGE::gmin, LEFT, MESSAGE, IMAGE::nbnd, IMAGE::nlin, IMAGE::npix, out, RANGE, RIGHT, rnd, SLEN, IMAGE::text, and UP.