내 자신의 질문에 대답하기 : 트랙의 편집 목록의
내용 (있는 경우), 편집 즉/트랙에 존재하는 세그먼트가 결정될 수있다 GetTrackNextInterestingTime()
API 함수를 통해 (코드 Movies.h에서 빼낸) : (트랙 편집에 대한
/*
* GetTrackNextInterestingTime()
*
* Availability:
* Non-Carbon CFM: in QuickTimeLib 2.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
* Windows: in qtmlClient.lib 3.0 and later
*/
EXTERN_API(void)
GetTrackNextInterestingTime(
Track theTrack,
short interestingTimeFlags,
TimeValue time,
Fixed rate,
TimeValue * interestingTime,
TimeValue * interestingDuration);
을 nextTimeTrackEdit
를 전달하여 볼 수 있습니다 s) 및 nextTimeEdgeOK
(경계선 경우 포함)은 interestingTimeFlags
입니다. 당신은 당신이 트랙의 편집을 검토 있었던 경우 (FE를 반환 interestingTime
에 시간 트랙 에서 미디어 시간을지도해야 할 것이다 트랙에 존재 편집에 관심이있을 수있는 대부분의 경우
가능한 트랙 오프셋을 결정한다). TrackTimeToMediaDisplayTime()
것 미디어 시간에 트랙 시간을 변환하는
/*
* TrackTimeToMediaTime()
*
* Availability:
* Non-Carbon CFM: in QuickTimeLib 2.5 and later
* CarbonLib: in CarbonLib 1.0 and later
* Mac OS X: in version 10.0 and later
* Windows: in qtmlClient.lib 3.0 and later
*/
EXTERN_API(TimeValue)
TrackTimeToMediaTime(
TimeValue value,
Track theTrack);
편집
예술 방법의 상태 :
이
은
TrackTimeToMediaTime()
API 함수를 통해 수행됩니다
/*
* TrackTimeToMediaDisplayTime()
*
* Summary:
* Converts a track's time value to a display time value that is
* appropriate to the track's media, using the track's edit list.
* This is a 64-bit replacement for TrackTimeToMediaTime.
*
* Discussion:
* This function maps the track time through the track's edit list
* to come up with the media time. This time value contains the
* track's time value according to the media's time coordinate
* system. If the time you specified lies outside of the movie's
* active segment or corresponds to empty space in the track, this
* function returns a value of -1. Hence you can use it to determine
* whether a specified track edit is empty.
*
* Parameters:
*
* value:
* The track's time value; must be expressed in the time scale of
* the movie that contains the track.
*
* theTrack:
* The track for this operation. Your application obtains this
* track identifier from such functions as NewMovieTrack and
* GetMovieTrack.
*
* Result:
* The corresponding time in media display time, in the media's time
* coordinate system. If the track time corresponds to empty space,
* this function returns a value of -1.
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: not available
* Mac OS X: in version 10.4 (or QuickTime 7.0) and later
* Windows: in qtmlClient.lib version 10.4 (or QuickTime 7.0) and later
*/
EXTERN_API(TimeValue64)
TrackTimeToMediaDisplayTime(
TimeValue64 value,
Track theTrack);