Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ames!claris!UUCP!peirce From: peirce@outpost.UUCP (Michael Peirce) Newsgroups: comp.sys.mac.programmer Subject: using QuickTime compression Message-ID: <0B01FFFB.hsyi3b@outpost.UUCP> Date: 11 Jun 91 01:02:21 GMT Reply-To: peirce@outpost.UUCP (Michael Peirce) Organization: Peirce Software Lines: 44 X-Mailer: uAccess - Mac Release: 1.1.b3 I'm trying to try work with the alpha QuickTime that Apple gave out at the WWDC. Specifically I'm trying to use JPEG to compress a picture. I looked at the sample code provided on the CD-ROM called SampleCompressPicture. It looked fairly straightforeward to emulate. I tried the following code fragment: cPict = (PicHandle) NewHandle(sizeof(Picture)); if ((stat = CompressPicture(rPict,cPict,codecMaxQuality,'jpeg')) != noErr) { NumToString(stat,statStr); DebugStr(statStr); } This always returns to me -8960, codecErr, general error. I also tried the FCompressPicture variation with the same results. I'm including the same include files that the sample program did and the programs found on the CD-ROM run on my machine and will do JPEG compression (and it looks great BYW). The one difference between my code and the sample is that rather than asking the user for settings, I simply ask for the best that JPEG can supply. Has anyone been working with QuickTime yet? -- michael P.S. On a related note, I tried to use the documented Gestalt selector too, but this always crashed on me. The code line before was another call to Gestalt that worked fine. Maybe this really is alpha software :-) -- Michael Peirce -- outpost!peirce@claris.com -- Peirce Software -- Suite 301, 719 Hibiscus Place -- Macintosh Programming -- San Jose, California 95117 -- & Consulting -- (408) 244-6554, AppleLink: PEIRCE