Thanks for Ben. Would you please to tell me where I can get the freely available libjpeg code as a start for seeing how to do JPEG decompression?
Best regards! --- Ben Combee <[EMAIL PROTECTED]> wrote: > At 23:20 2003-1-5 -0800, you wrote: > >Dear all: > > On Palm, I want to display any rectangle area of > a > >.jpg file, not only the total area. What should I > do > >to realize it? I use CodeWarrior8 as IDE. > > JPEG files generally contain compression data to > describe each 8x8 block of > pixels. Based on that, you should be able to just > decompress a subset of > the JPEG data to an offscreen window. Then, you > would do a > window-to-window copy selecting the pixel set you're > interested in. > > I'd look at the freely available libjpeg code as a > start for seeing how to > do JPEG decompression. I don't know of any JPEG > decompression libraries > for Palm OS, so you'll have to do your own porting > of this code, or your > own implementation of this code based on the JPEG > algorithms. > > -- > Ben Combee <[EMAIL PROTECTED]> > CodeWarrior for Palm OS technical lead > Palm OS programming help @ www.palmoswerks.com > > > -- > For information on using the Palm Developer Forums, > or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
