Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obtaining raw jpeg data from a Photo-Jpeg track



Helo Mike,

>Hi. I'm trying to find a way to play a track of Photo-Jpegs, but I want to
use a different decompression algorithm than the one provided by QuickTime.
Is there a way to do this? More specifically, is there a way to simply
request a frame of jpeg data at a certain time value of the video track,
preferably once the movie is in memory rather than reading each frame
separately from disk? This would be the ideal solution. I just need to be
able to grab any frame I want from a specific point on a video track,
without making a gworld, etc...I just want the raw jpegs. Any help on what
functions to use here, or what sample code to look at would be greatly
appreciated.
<

This is very simple. You can use GetMediaSampleReferences64 to get a
reference to the data and then just read them in with system read calls
(FSReadFork on the Mac).
You don't normally get the entire movie (i.e. all the frames) in memory
although these days with people having gobs of RAM ...  ;-)  Even then you
still have to read them from disk first so this point is moot.

Jan.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.