|
|
This class is a media reader for TDTF trace files.
|
Constructor.
bool |
Open media.
Parameters:
name | Name of media, e.g. a file name. |
readWrite | true to open file in read/write mode; false for read-only. |
ruRequired | true, if file has to contain resource/utilization list for successful opening; false otherwise. |
Returns: true, if TDTFMediaReader is ready for reading; false otherwise.
Reimplemented from TDTFReader.
void |
Close media, if opened.
Reimplemented from TDTFReader.
inline bool |
[const]
Check, if TDTFMediaReader is ready for reading.
Returns: true, if TDTFMediaReader is ready; false otherwise.
void |
[const]
Get MediaInfo.
Parameters:
mediaInfo | Reference to store media info. |
inline MediaError |
[const]
Get error code.
Returns: Error code.
inline card64 |
[const]
Get current position.
Returns: Position in nanoseconds.
inline card64 |
[const]
Get maximum position.
Returns: maximum position in nanoseconds.
inline void |
Get position.
Parameters:
position | Position in nanoseconds. |
inline double |
[const]
Get frame rate.
Returns: Frame rate.
inline double |
Set frame rate.
Parameters:
frameRate | Frame rate. |
Returns: Frame rate set.
card64 |
Check, if new interval is reached.
?????????????????????????????????
Returns: true, if new interval is reached.
cardinal |
Read next frame trace block.
Parameters:
layers | Maximum number of layers to store in arrays. |
frameIDArray | Pointer to array to store frame-IDs. |
frameSizeArray | Pointer to array to store frame sizes. |
newInterval | Reference to boolean to store true, if new interval is reached; false otherwise. |
Returns: cardinal Number of layers read.