The IAAFSegment interface is implemented by objects which represent a component that is independent of any other components which may surround it in a sequence. More...
Public Member Functions | |
HRESULT | SegmentOffsetToTC ([in] aafPosition_t *pOffset,[out] aafTimecode_t *pTimecode) |
Converts the given Segment offset to timecode. | |
HRESULT | SegmentTCToOffset ([in] aafTimecode_t *pTimecode,[in] aafRational_t *pEditRate,[out] aafFrameOffset_t *pOffset) |
Converts the given Timecode to an Offset. |
The IAAFSegment interface is implemented by objects which represent a component that is independent of any other components which may surround it in a sequence.
In addition to the specific error results listed for each method, all methods in this interface may also return one of the following values:
AAFRESULT_NOMEMORY
AAFRESULT_NOT_INITIALIZED
HRESULT IAAFSegment::SegmentOffsetToTC | ( | [in] aafPosition_t * | pOffset, |
[out] aafTimecode_t * | pTimecode | ||
) |
Converts the given Segment offset to timecode.
Succeeds if all of the following are true:
If this method fails the value of pTimecode is left unchanged.
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
AAFRESULT_TIMECODE_NOT_FOUND
pOffset | [in] Pointer to a Segment Offset to be convert to Timecode |
pTimecode | [out] The converted timecode to be returned |
HRESULT IAAFSegment::SegmentTCToOffset | ( | [in] aafTimecode_t * | pTimecode, |
[in] aafRational_t * | pEditRate, | ||
[out] aafFrameOffset_t * | pOffset | ||
) |
Converts the given Timecode to an Offset.
Succeeds if all of the following are true:
If this method fails the value of pOffset is left unchanged.
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_NULL_PARAM
AAFRESULT_TIMECODE_NOT_FOUND
pTimecode | [in] Pointer to a timecode to be converted to Offset |
pEditRate | [in] The edit rate for the given timecode |
pOffset | [out] Frame Offset to be returned if found |