| .TH "MP4" "3" "Version 0.9" "Cisco Systems Inc." "MP4 File Format Library" |
| .SH "NAME" |
| .LP |
| \fBMP4ConvertToTrackTimestamp\fR \- Convert a timestamp from a specified time scale to the track time scale. |
| .SH "SYNTAX" |
| .LP |
| #include <mp4.h> |
| .LP |
| MP4Timestamp \fBMP4ConvertToTrackTimestamp\fR( |
| .br |
| MP4FileHandle \fIhFile\fP, |
| .br |
| MP4TrackId \fItrackId\fP, |
| .br |
| u_int64_t \fItimestamp\fP, |
| .br |
| u_int32_t \fIoldTimeScale\fP |
| .br |
| ) |
| .SH "ARGUMENTS" |
| .LP |
| .TP |
| \fIhFile\fP |
| Specifies the mp4 file to which the operation applies. |
| .TP |
| \fItrackId\fP |
| Specifies the track from which the duration originates. |
| .TP |
| \fItimestamp\fP |
| Specifies the timestamp that is to be converted. |
| .TP |
| \fIoldTimeScale\fP |
| Specifies the time scale in ticks per second in which the timestamp is currently expressed. |
| .SH "RETURN VALUES" |
| .LP |
| Upon success, the timestamp in the track time scale units. Upon error, MP4_INVALID_TIMESTAMP. |
| .SH "DESCRIPTION" |
| .LP |
| \fBMP4ConvertToTrackTimestamp\fR converts a timestamp such as a sample start time from the specified time scale to the track time scale. |
| .SH "SEE ALSO" |
| .LP |
| MP4(3) MP4ConvertFromTrackTimestamp(3) |