Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: CVTimeStamp -> TimeValue?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CVTimeStamp -> TimeValue?



I use CoreVideo's Display Link to render a QuickTime movie and I need  
to know to which TimeValue (in the Movie's TimeScale) the returned  
frame of QTVisualContextCopyImageForTime corresponds.
Is there any way to convert a CVTimeStamp to a Movie Time? Or any  
other approach to get the TimeValue of the returned frame?

Have you tried geting the Movie Time from the returned CVImageBufferRef?

See CVBuffer.h

kCVBufferMovieTimeKey - The movie time associated with the buffer. Generally only available for frames emitted by QuickTime (type CFDictionary containing the kCVBufferTimeValueKey and kCVBufferTimeScaleKey keys).

HTH.

regards,
edward

 Edward Agabeg
 WWDR Engineer
 QuickTime
 Worldwide Developer Relations
 Apple

 http://www.apple.com/developer
 http://www.apple.com/quicktime

-- This message was sent from a personal account --
-- All views are mine and not necessarily shared by my employer --
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

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 © 2011 Apple Inc. All rights reserved.