PDA

View Full Version : dct3 nd 4 source code


hud_nash
07-20-2004, 17:57
hello,

do any one here a source code for dct3 and dct4 calculator?for c language or any other programming language?

maschwa
07-20-2004, 18:06
I donīt know if it works, but I think so...

Greetz

HONGXING
07-20-2004, 21:39
This is cracked algorithm by Indear. I have compared DCT4.txt to my friends "DCT4Calc"-source and it works similarely

hud_nash
07-22-2004, 05:31
sir,
id tried the code in turbo c by borland but it seems the it has too many errors

indear
07-22-2004, 12:26
the code works perfectly.
what errors give you when compiling?

hud_nash
07-23-2004, 07:32
too many error sir...

what compiler are you using?

indear
07-23-2004, 17:28
GCC 3.0
Visual Studio .NET 2003
Visual Studio 6
Borland Turbo C 3.0
and it compiles perfect...

writes the errors that give you when compiling

Dave.W
07-23-2004, 19:58
using visual c++ .net 6
dct3:

--------------------Configuration: Cpp1 - Win32 Debug--------------------
Compiling...
Cpp1.cpp
c:\documents and settings\leddington family\desktop\new folder\cpp1.cpp(253) : warning C4305: 'initializing' : truncation from 'const int' to 'char'
c:\documents and settings\leddington family\desktop\new folder\cpp1.cpp(253) : warning C4309: 'initializing' : truncation of constant value
c:\documents and settings\leddington family\desktop\new folder\cpp1.cpp(253) : warning C4305: 'initializing' : truncation from 'const int' to 'char'
c:\documents and settings\leddington family\desktop\new folder\cpp1.cpp(253) : warning C4309: 'initializing' : truncation of constant value
c:\documents and settings\leddington family\desktop\new folder\cpp1.cpp(253) : warning C4305: 'initializing' : truncation from 'const int' to 'char'
c:\documents and settings\leddington family\desktop\new folder\cpp1.cpp(253) : warning C4309: 'initializing' : truncation of constant value
c:\documents and settings\leddington family\desktop\new folder\cpp1.cpp(253) : warning C4305: 'initializing' : truncation from 'const int' to 'char'
c:\documents and settings\leddington family\desktop\new folder\cpp1.cpp(253) : warning C4309: 'initializing' : truncation of constant value
c:\documents and settings\leddington family\desktop\new folder\cpp1.cpp(260) : error C2664: 'strlen' : cannot convert parameter 1 from 'unsigned char *' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\leddington family\desktop\new folder\cpp1.cpp(260) : error C2664: 'ASCII2HEX' : cannot convert parameter 2 from 'char [12]' to 'unsigned char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\leddington family\desktop\new folder\cpp1.cpp(261) : error C2664: 'ASCII2HEX' : cannot convert parameter 2 from 'char *' to 'unsigned char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\leddington family\desktop\new folder\cpp1.cpp(266) : error C2664: 'permu1' : cannot convert parameter 1 from 'char [12]' to 'unsigned char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\leddington family\desktop\new folder\cpp1.cpp(290) : error C2664: 'calcular_dct3' : cannot convert parameter 1 from 'char [16]' to 'unsigned char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\leddington family\desktop\new folder\cpp1.cpp(293) : error C2664: 'calcular_dct3' : cannot convert parameter 1 from 'char [16]' to 'unsigned char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.

Cpp1.exe - 6 error(s), 8 warning(s)

dct4:
--------------------Configuration: Cpp1 - Win32 Debug--------------------
Compiling...
Cpp1.cpp
C:\Documents and Settings\Leddington Family\Desktop\New Folder\Cpp1.cpp(113) : error C2664: 'strcpy' : cannot convert parameter 1 from 'unsigned char [17]' to 'char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Documents and Settings\Leddington Family\Desktop\New Folder\Cpp1.cpp(114) : error C2664: 'strlen' : cannot convert parameter 1 from 'unsigned char *' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Documents and Settings\Leddington Family\Desktop\New Folder\Cpp1.cpp(472) : error C2664: 'obtener_codigo_liberacion' : cannot convert parameter 3 from 'char [16]' to 'unsigned char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\Documents and Settings\Leddington Family\Desktop\New Folder\Cpp1.cpp(480) : error C2664: 'obtener_codigo_liberacion' : cannot convert parameter 3 from 'char [16]' to 'unsigned char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.

Cpp1.exe - 4 error(s), 0 warning(s)

indear
07-23-2004, 21:33
The problem is by compile the code in C++ mode (/TP)
solution:

a) change to C mode (/TC)
b) change the extension of the file to ".c"
c) adapt the code to C++

MiSieKK
08-03-2004, 00:24
do any one here a source code for dct3 and dct4 calculator for PHP language?

crusher
02-16-2005, 01:54
it is inefficient :) compile with GCC into ELF and use it as CGI :D