Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

JPEG 2000 / XL viewer for DOS (Users)

posted by RayeR Homepage, CZ, 07.09.2023, 03:06
(edited by RayeR on 07.09.2023, 04:22)

> Did you have any luck with (cross) compiling a DJGPP binary of v.1.5?

Yes. But, sigh, after all effort that crap just crashes :(

C:\openjpeg\APPLIC~1\codec>j2k_to_image.exe -i sample.j2k -o sample.bmp

[INFO] tile 1 of 1
realloc: memory fouled
Exiting due to signal SIGABRT
Raised at eip=00034695
eax=000cca94 ebx=00000120 ecx=00000000 edx=00000000 esi=0000360c edi=000e09b0
ebp=00003610 esp=000cca80 program=C:\OPENJPEG\APPLIC~1\CODEC\J2K_TO~1.EXE
cs: sel=01a7  base=029f0000  limit=000effff
ds: sel=01af  base=029f0000  limit=000effff
es: sel=01af  base=029f0000  limit=000effff
fs: sel=017f  base=000067f0  limit=0000ffff
gs: sel=01bf  base=00000000  limit=0010ffff
ss: sel=01af  base=029f0000  limit=000effff
App stack: [000cfe78..0004fe78]  Exceptn stack: [0004fdb4..0004de74]

Call frame traceback EIPs:
  0x00034695


It fails somewhere in function j2k_decode, in the for loop, states before crash:
>dbg j2k.state: 01h
>dbg j2k.state: 02h
>dbg j2k.state: 04h
>dbg j2k.state: 04h
>dbg j2k.state: 04h
>dbg j2k.state: 04h
>dbg j2k.state: 10h
>dbg j2k.state: 08h
[INFO] tile 1 of 1

typedef enum J2K_STATUS {
J2K_STATE_MHSOC = 0x0001, /**< a SOC marker is expected */
J2K_STATE_MHSIZ = 0x0002, /**< a SIZ marker is expected */
J2K_STATE_MH = 0x0004, /**< the decoding process is in the main header */
J2K_STATE_TPHSOT = 0x0008, /**< the decoding process is in a tile part header and expects a SOT marker */
J2K_STATE_TPH = 0x0010, /**< the decoding process is in a tile part header */
J2K_STATE_MT = 0x0020, /**< the EOC marker has just been read */
J2K_STATE_NEOC = 0x0040, /**< the decoding process must not expect a EOC marker because the codestream is truncated */
J2K_STATE_ERR = 0x0080 /**< the decoding process has encountered an error */
} J2K_STATUS;

---
DOS gives me freedom to unlimited HW access.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 90 users online (0 registered, 90 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum