I'm studying jpegArmlets too.
I've tried annoTester. I'll test "testARmlet2" very soon. For annoTester, I
just modified the line:
err=VFSFileOpen(volRefNum,"/2.jpg",vfsModeRead,&fp);
and installed the compiled file "starter.prc" into my Zire71 and a jpeg file
"2.jpg" into root directory of my SD card. The image can be displayed at a
speed much faster than JpegLibPalm I've tested.
But I can't get it working on Simulator, even though I copied the bundled
"ARMlet.dll" and "ARMletC.dll" into the simulator directory.
Just black on screen without hang. I can just click home to return to menu.
Any advice and suggesting for this library. Thank you!
"Todd Walk" <[EMAIL PROTECTED]> �b�l�� news:[EMAIL PROTECTED] �����g
...
> Matthew Henry <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]:
>
> > Todd Walk wrote:
> >
> >> I'm trying to get jpegArmlets to work, but I need some help.
> >> (I know zilch about armlets.)
> >>
> >> First, I'm trying to modify testArmlet2 (I need only the
> >> decoder) to work. Will that work? Do I need anything
> >> else besides the stuff in jpegToys? I installed the
> >> starter.prc, ARMlet.pdb, and the jpeg, and I only get
> >> fatal resets.
> >>
> >
> > You only ned testARmlet2. I fear you're gonna have to get your hands
> > diry and actually look at the code though. It's free, and thus, by
> > definition, not well documented. There's no special armlet knowledge
> > required to get it working.
> >
> >
>
> Okay, I compiled testARMlet2 into starter.prc (with changing the
> optimization on the armlet part to size, opt=4). I changed line 273 to:
>
> err=VFSFileOpen(volRefNum,"/intro.jpg",vfsModeRead,&fp);
>
> and I installed intro.jpg to both the T3 and SD card (I'm guessing that
> this will read from memory), along with just starter.prc.
>
> I tap on ARMletSt..., and get the popup "JPEG read error Unable to
> open file Device will reset". ie, I can't even get this to
> run.
>
> Am I missing something? (And yes, I've looked quite a bit at the code.)
> Todd.
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/