video3d_frame_get_number video3d_frame_get_data navigation bar

Table of Contents

video3d_frame_get_timestamp

Get the frame timestamp.

Description

The video3d_frame_get_timestamp function gets the timestamp associated with the given frame.

Prototype

t_error
video3d_frame_get_timestamp(t_video3d_frame frame, t_double * timestamp);
    

Parameters

t_video3d_frame frame

The handle to the frame returned by video3d_stream_get_frame.

t_double * timestamp

The address of a t_double variable to receive the frame timestamp.

Return value

The return value is 0 if the frame number was retrieved successfully. Otherwise a negative error code is returned. Error codes are defined in quanser_errors.h. A suitable error message may be retrieved using msg_get_error_message.

Error codes

QERR_INVALID_ARGUMENT

One of the arguments is invalid.

Requirements

Include Files

Libraries

quanser_video3d.h

quanser_media.lib;quanser_communications.lib;quanser_runtime.lib;quanser_common.lib

Examples

t_double timestamp;
t_error result;

result = video3d_frame_get_timestamp(frame, &timestamp);
    

See Also

 

navigation bar