[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] m68000 version of Zorro's LDG codec



Le 27/09/12 18:07, WongCK a écrit :
Ok, took from your MyAES.
It loads without complaining (as expected)  but it crash at the same point (my debugs statement goes so deep only) as the one I compiled.
So I need to debug deeper into the zcodeclib. :-(

I will try to help you but I need more informations:


1) Does the problem come from the codecs or from zcodeclib?
Try to load the codecs, one at a time.

For exemple:

------
codecs_init( "jpg.ldg");
..
img = load_img( argv[argc - 1], -1, -1, 0);
..
vro_cpyfm( vdi_handle, S_ONLY, xy, &img->image[0], &screen);
------

If it isn't working, try:

------
codecs_init( "god.ldg");
..
img = load_img( argv[argc - 1], -1, -1, 0);
..
vro_cpyfm( vdi_handle, S_ONLY, xy, &img->image[0], &screen);
------

If it's working, the problem comes form the jpg codec.
If not, the problem comes form the lib.


2) If the problem comes from the lib: Does the problem come from the library itself or from the memory manager( MEM.LDG) ?

Try to compile the zcodeclib but before, change in " general.h" and in "zcodec.h":

#define shared_malloc( s)    _ldg_malloc( s, ldg_global[2]);
#define shared_free( s)        _ldg_free( s, ldg_global[2]);

by:

#define shared_malloc( s)    Mxalloc( s, 43);    #If I remember well...
#define shared_free( s)         Mfree( s);

After, compile your code against the modified zcodeclib( and with the modified header).

If it's not working, the problem comes from the lib itself, if it's working, the problem comes from memory manager.


--
Zorro


--
Zorro