#1 2011-09-30 14:41:49

sscriboni
Member
Registered: 2011-09-30
Posts: 1

error compiling jpegdec.pas under Delphi 5

I'm just starting to use your pdf engine and jpeg decoder. While the first function properly...the latter give me a lot of assembler compilation error under Delphi 5. I'm working with Windows XP.

Any help is appreciated.

Thank you.


One of this is..

procedure RGB_GrayConv_SSE2;
asm
        push    esi
        mov     ecx, dword ptr [ebp + 000000C8H]
        mov     edx, dword ptr [ebp + 000000B8H]
        mov     esi, dword ptr [ebp + 000000D4H]
        shr     edx, 2

Delphi does'nt like this line:
        movaps  xmm7, dqword ptr [ebp + 000000E0H]
inline assembler syntax error

        neg     edx
@@016:  mov     eax, dword ptr [edx + esi]
        movaps  xmm0, dqword ptr [eax]                 
        movaps  xmm1, dqword ptr [eax + 10H]

Offline

#2 2011-09-30 14:48:56

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,718
Website

Re: error compiling jpegdec.pas under Delphi 5

I tried to make it work under Delphi 5, but its internal assembler won't be able to handle those SSE2 instructions.
I don't see any possibility to make it compile with Delphi 5.
Sorry...

Offline

#3 2011-10-01 14:31:43

RalfS
Member
Registered: 2011-07-11
Posts: 57

Re: error compiling jpegdec.pas under Delphi 5

You have to find the op-codes of the asm commands. Then replace the asm by the op-codes.

Offline

#4 2011-10-01 19:01:30

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,718
Website

Re: error compiling jpegdec.pas under Delphi 5

RalfS wrote:

You have to find the op-codes of the asm commands. Then replace the asm by the op-codes.

Of course, this will work, but will be definitively not worth it IMHO.
This library was proof of concept, and has some limitations about progressive jpegs.

But you are perfectly right, with some search and replace, it may be possible to make it work with Delphi 5.

Offline

Board footer

Powered by FluxBB