next up previous index
Next: Program Eduction Up: An Example Program Previous: An Example Program   Index

The Expanded Program

An expanded version of this program is shown in Fig. 8. In this version, the Decompose and Down graphs have been flattened. Their formal parameters have been replaced by their actual ones, and the dimensionality of their internal streams has been increased. In addition, as the first operand of the fby operator was not a constant, it has been replaced with an mcond operation. The constant passed as the level argument to the Decompose function has been converted into the level stream.

Figure 8: The Flattened Example Program
\begin{figure}\begin{verbatim}dimension x, y, d, f, c;
int16 ImageIn.x,y;
int1...
... level
void = ImageFileOut.x,y,c( OutFile, ImageOut );\end{verbatim}\end{figure}



magiceight-web@media.mit.edu