Microsoft DirectX 8.1 (C++)

CDrawImage::DisplaySampleTimes

The DisplaySampleTimes method displays time stamp of a sample on top of the image.

Syntax

void DisplaySampleTimes(
    IMediaSample *pSample
);

Parameters

pSample

Pointer to the sample containing time stamps.

Return Value

No return value.

Remarks

In debugging builds, it is often instructive to see the time stamps for images that the object is drawing. This member function gets the data pointer for the image the sample holds, along with its time stamps; then, using an off-screen device context, it draws the times approximately 80 percent of the way down the image (and centered horizontally).

This is a protected member function.

See Also