What's New in QuickTime 5
| Previous | Chapter Contents | Chapter Top | Next |
The following API is used by QuickTime to retrieve the video latency:
Retrieves the video latency from the specified video codec.
pascal ComponentResult ImageCodecGetDecompressLatency(ComponentInstance
ci, TimeRecord * latency);The following code snippet shows an example implementation of this function:
pascal ComponentResult myCodecGetDecompressLatency(myCodecGlobals *glob,
TimeRecord *latency)
{
OSErr result = paramErr;
// Example setting 33 ms latency
if (latency != nil) {
latency->value.hi = 0;
latency->value.lo = 33; // latency value
latency->scale = 1000; // 1 ms scale
latency->base = nil;
result = noErr;
}
return result;
}What's New in QuickTime 5
| Previous | Chapter Contents | Chapter Top | Next |