From 771262669202239258b54394840cc75114f9cb2b Mon Sep 17 00:00:00 2001 From: ukashanoor Date: Tue, 4 Jul 2017 11:55:14 +0530 Subject: after debugging 1 --- 2.3-1/src/c/signalProcessing/transforms/dct/cdcta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '2.3-1/src/c/signalProcessing/transforms/dct') diff --git a/2.3-1/src/c/signalProcessing/transforms/dct/cdcta.c b/2.3-1/src/c/signalProcessing/transforms/dct/cdcta.c index 5bc27929..bd15e5b9 100644 --- a/2.3-1/src/c/signalProcessing/transforms/dct/cdcta.c +++ b/2.3-1/src/c/signalProcessing/transforms/dct/cdcta.c @@ -26,7 +26,7 @@ void cdcta(floatComplex *in,int row,int col,int sign,floatComplex *out) int x,y; float res,ress; float re,z,q,m; - floatComplex accu = DoubleComplex(0, 0); + floatComplex accu = FloatComplex(0, 0); floatComplex temp,mm; if(sign==-1) { -- cgit From bfedbfd8237ebf4872d37b73f2e0a983bd49f5c6 Mon Sep 17 00:00:00 2001 From: ukashanoor Date: Tue, 4 Jul 2017 16:17:19 +0530 Subject: after debugging 2 --- .../src/c/signalProcessing/transforms/dct/cdcta.c | 97 +++++++++++++---- .../src/c/signalProcessing/transforms/dct/zdcta.c | 121 +++++++++++++++------ 2 files changed, 162 insertions(+), 56 deletions(-) (limited to '2.3-1/src/c/signalProcessing/transforms/dct') diff --git a/2.3-1/src/c/signalProcessing/transforms/dct/cdcta.c b/2.3-1/src/c/signalProcessing/transforms/dct/cdcta.c index bd15e5b9..7ff83645 100644 --- a/2.3-1/src/c/signalProcessing/transforms/dct/cdcta.c +++ b/2.3-1/src/c/signalProcessing/transforms/dct/cdcta.c @@ -15,6 +15,7 @@ #include "addition.h" #include "types.h" #include "floatComplex.h" +#include "multiplication.h" /*#include "matrixMultiplication"*/ /*#include */ #include @@ -24,10 +25,10 @@ void cdcta(floatComplex *in,int row,int col,int sign,floatComplex *out) int i,j,k,u,v; int n; int x,y; - float res,ress; + float res,ress,vv,ff; float re,z,q,m; floatComplex accu = FloatComplex(0, 0); - floatComplex temp,mm; + floatComplex temp,mm,aa,bb,cc; if(sign==-1) { if(row==1) @@ -43,17 +44,25 @@ void cdcta(floatComplex *in,int row,int col,int sign,floatComplex *out) { for(j=0;j*/ #include @@ -24,10 +25,10 @@ void zdcta(doubleComplex *in,int row,int col,int sign,doubleComplex *out) int i,j,k,u,v; int n; int x,y; - double res,ress; - double re,z,q,m; + double res,ress,vv,ff; + double re,z,q,m; doubleComplex accu = DoubleComplex(0, 0); - doubleComplex temp,mm; + doubleComplex temp,mm,aa,bb,cc; if(sign==-1) { if(row==1) @@ -43,22 +44,30 @@ void zdcta(doubleComplex *in,int row,int col,int sign,doubleComplex *out) { for(j=0;j