imgserout

Capsim Block Documentation

Short Description

This star inputs an image and outputs it a row at a time.

Top
Input Connections
Port Type Name
0 image_t x
Top
Output Connections
Port Type Name
0 float y
Top
States
Num Type Name Initial Value Description
0 float** mat_PP
1 int pointCount 0
2 int numberRowsInput 0
3 int widthOutput 0
4 int heightOutput 0
5 int imageInFlag FALSE
6 int pheight
7 int pwidth
Top

Declarations


 

	int no_samples;
	int i,j;
	int	factor;
	image_t	img;



Top

Initialization Code



 

	pointCount = 0;
	numberRowsInput=0;
        widthOutput = 0;
        heightOutput = 0;
	SET_CELL_SIZE_IN(0,sizeof(image_t));
    SET_CELL_SIZE_OUT(0,sizeof(float));




Top

Main Code



 

/*
 * if the image has been inputted and is ready to be outputted, then
 * output either a row at a time or a column at a time on 
 * each visit
 */
if(imageInFlag) {
	   if(heightOutput == pheight) {
		/*
		 * reset and collect another matrix again
		 */
		pointCount = 0;
		numberRowsInput=0;
       		widthOutput = 0;
       		heightOutput = 0;
		imageInFlag=FALSE;
		return(0);
	   }
           for(j=0; j
    
Top

Wrapup Code



 





Top

License



/*  Capsim (r) Text Mode Kernel (TMK) Star Library (Blocks)
    Copyright (C) 1989-2017  Silicon DSP Corporation

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

    http://www.silicondsp.com
    Silicon DSP  Corporation
    Las Vegas, Nevada
*/


Top

Description



 

/* imgserout.s */
/***********************************************************************
                             imgserout()
************************************************************************
This star inputs an image and outputs it a row at a time. 

imgserout


This star inputs an image and outputs it a row at a time. 


Programmer:  	Sasan Ardalan	
Date: 		April 15, 1988

*/