Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > How can i get one frame data quickly form QuickTime

How can i get one frame data quickly form QuickTime
Thread Tools
chinakid
Fresh-Faced Recruit
Join Date: Sep 2004
Location: china
Status: Offline
Reply With Quote
Sep 21, 2004, 03:05 AM
 
hi All ,
I want to encoder a AVI file to MPEG file . So befor encode every frame i need convert the RGB data to YUV data for every frame .Now i find convert RGB to YUV is much slow . I try do it by two way .
(1) .. use QuickTime playback ( Carbon API : MoviesTask () ) , Get the movie GWorld , then get the Pixmap RGB Data .
(2) .. use QuickTime API GetMoviePict . get the PicHandle , convert the PicHandle to GWorld ,then get the Pixmap RGB Data ..
Is there any method for relizing RGB to YUV in QT quickly ?? Thanks for your help !

ann
     
audiffred
Fresh-Faced Recruit
Join Date: Aug 1999
Status: Offline
Reply With Quote
Sep 26, 2004, 11:57 PM
 
Yes, there is an easy way. Use apple's image compression tools. You will want to setup two gworlds with different pixel formats and decrompress from one into the other. Looks up functions like DecompressImage, DecompressSequenceBeginS, and DecompressFrameWhen.
     
chinakid  (op)
Fresh-Faced Recruit
Join Date: Sep 2004
Location: china
Status: Offline
Reply With Quote
Sep 27, 2004, 02:35 AM
 
hi
okay . I'll try it after my holidays . later ,i'll come here and post my result . Great thanks for audiffred .

ann
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 05:56 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,