Capsim Block Documentation
This star inputs an image and outputs it a row at a time.
Port | Type | Name | |
---|---|---|---|
0 | image_t | x |
Port | Type | Name | |
---|---|---|---|
0 | float | y |
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 |
int no_samples; int i,j; int factor; image_t img; |
---|
pointCount = 0; numberRowsInput=0; widthOutput = 0; heightOutput = 0; SET_CELL_SIZE_IN(0,sizeof(image_t)); SET_CELL_SIZE_OUT(0,sizeof(float)); |
---|
/* * 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 |
---|
/* 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 */ |
---|
/* imgserout.s */ /*********************************************************************** imgserout() ************************************************************************ This star inputs an image and outputs it a row at a time. |
---|