Master Clock

The DVD decoder minidriver may indicate that a given stream is capable of providing master clock information. This indicates that the stream is the one to which all others should synchronize. Only two members of the SRB structure are needed.

The HwClockFunction member is set to a pointer to the DVD decoder minidriver routine that processes calls for clock information. The routine is set when the SRB_OPEN_STREAM call for the master clock stream is received. This indicates that a stream is capable of being a master clock for the system.

The ClockSupportFlags member of the HW_CLOCK_OBJECT structure is set to one of the following values:

CLOCK_SUPPORT_CAN_SET_ONBOARD_CLOCK
Indicates the device can change the onboard clock time to any arbitrary value.

CLOCK_SUPPORT_CAN_READ_ONBOARD_CLOCK
Indicates the current clock time can be read for this stream from the hardware. This clock does not have to correlate to the current stream time, it just indicates the ability of the driver to return the value in 100ns units of the onboard clock.

CLOCK_SUPPORT_CAN_RETURN_STREAM_TIME
Indicates this stream can return the current stream time being processed in the hardware.

For more information, see Master Clocks.