Which is the better jpeg library to use?
http://svn.ps2dev.org/listing.php?repna ... rev=0&sc=0
http://svn.ps2dev.org/listing.php?repna ... rev=0&sc=0
Which jpeg library to use?
-
- Posts: 83
- Joined: Wed Jul 13, 2005 12:25 am
I have always used the one from myPS2, its got some changes to it, and I also apply the changes from uLaunchElf; I forget what the reasons for using it were. They also have a slightly patched version of gskit, again, no idea what they changed in it. Their changes are available in the release packages they make.
Hey,
I've made some improvement some time ago on libjpg to sove all unsupported jpg file problems. ( try myps2 and you will see the problem :) ).
You can found needed modified file under Ulaunchelf source code.
Get libjpg from svn first ( the one under ps2/trunk ), and copy/overwrite modified file from ule source in your libjpg folder.
The fonction i wrote is name "jpgData *jpgOpenFILE(FILE *in_file, int mode)", and can open all jpg file, without restriction.
Best regards
Polo
I've made some improvement some time ago on libjpg to sove all unsupported jpg file problems. ( try myps2 and you will see the problem :) ).
You can found needed modified file under Ulaunchelf source code.
Get libjpg from svn first ( the one under ps2/trunk ), and copy/overwrite modified file from ule source in your libjpg folder.
The fonction i wrote is name "jpgData *jpgOpenFILE(FILE *in_file, int mode)", and can open all jpg file, without restriction.
Best regards
Polo
Please be aware that the next version of uLE (v4.13) will have a modified form of that patch. This is not because the methods of jpgOpenFILE were a problem, but only because some other software has a problem with the jpgPrivate struct being defined differently in the uLE patch from how it was defined both in the original libjpg and in the one modified by ntba2. This could make such software malfunction when compiled with the same lib used for uLE, because they somehow rely on the original struct definition. (Which they shouldn't for a 'private' struct.)Polo35 wrote:The fonction i wrote is name "jpgData *jpgOpenFILE(FILE *in_file, int mode)", and can open all jpg file, without restriction.
But the best solution for such problems is to eliminate the deviation, which I have done.
For the new uLE version I have made that structure conform to the original usage, using substructs for two jpgPrivate struct elements that the old uLE patch only used pointers to external structs for. This also required changing one statement in jpgOpenFILE, where one of those elements is assigned a value, which for the old lib patch was directly copied from another pointer while the new version does it by an indirect fetch of the pointer's value (a jpeg_source_mgr struct).
Best regards: dlanor