diff options
author | imushir | 2015-11-27 15:40:33 +0530 |
---|---|---|
committer | imushir | 2015-11-27 15:40:33 +0530 |
commit | fe17b91c8363d923f693b84e86d6c9ca9fb1ab14 (patch) | |
tree | feca38a1421fefa59d44b39c78a51b73d46750f6 /2.3-1/src/c/matrixOperations/transpose/u8transposea.c | |
parent | 032b39428eb4608bd1134866c82d676ddb4651b7 (diff) | |
download | Scilab2C-fe17b91c8363d923f693b84e86d6c9ca9fb1ab14.tar.gz Scilab2C-fe17b91c8363d923f693b84e86d6c9ca9fb1ab14.tar.bz2 Scilab2C-fe17b91c8363d923f693b84e86d6c9ca9fb1ab14.zip |
added c files for u8 u16 i8 i16
Diffstat (limited to '2.3-1/src/c/matrixOperations/transpose/u8transposea.c')
-rw-r--r-- | 2.3-1/src/c/matrixOperations/transpose/u8transposea.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/2.3-1/src/c/matrixOperations/transpose/u8transposea.c b/2.3-1/src/c/matrixOperations/transpose/u8transposea.c new file mode 100644 index 00000000..2d0dd743 --- /dev/null +++ b/2.3-1/src/c/matrixOperations/transpose/u8transposea.c @@ -0,0 +1,27 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2008 - INRIA - Allan SIMON + * + * This file must be used under the terms of the CeCILL. + * This source file is licensed as described in the file COPYING, which + * you should have received as part of this distribution. The terms + * are also available at + * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt + * + */ + +#include "matrixTranspose.h" + +void u8transposea ( uint8* in , int lines , int columns, uint8* out ){ + + int i = 0 ; + int j = 0 ; + + for(i = 0 ; i < lines ; i++) + { + for(j = 0 ; j < columns ; j++) + + out[j+i*columns] = (uint8)in[i+j*lines]; + } + +} |