Rerun C++ SDK
|
Archetype: References a single video frame. More...
#include <rerun/archetypes/video_frame_reference.hpp>
Public Types | |
using | IndicatorComponent = rerun::components::IndicatorComponent< IndicatorComponentName > |
Indicator component, used to identify the archetype when converting to a list of components. | |
Public Member Functions | |
VideoFrameReference (VideoFrameReference &&other)=default | |
VideoFrameReference (rerun::components::VideoTimestamp _timestamp) | |
VideoFrameReference | with_video_reference (rerun::components::EntityPath _video_reference) && |
Optional reference to an entity with a archetypes::AssetVideo . | |
Public Attributes | |
rerun::components::VideoTimestamp | timestamp |
References the closest video frame to this timestamp. | |
std::optional< rerun::components::EntityPath > | video_reference |
Optional reference to an entity with a archetypes::AssetVideo . | |
Static Public Attributes | |
static constexpr const char | IndicatorComponentName [] |
Archetype: References a single video frame.
Used to display individual video frames from a archetypes::AssetVideo
. To show an entire video, a video frame reference for each frame of the video should be logged.
See https://rerun.io/docs/reference/video for details of what is and isn't supported.
|
inline |
Optional reference to an entity with a archetypes::AssetVideo
.
If none is specified, the video is assumed to be at the same entity. Note that blueprint overrides on the referenced video will be ignored regardless, as this is always interpreted as a reference to the data store.
For a series of video frame references, it is recommended to specify this path only once at the beginning of the series and then rely on latest-at query semantics to keep the video reference active.
rerun::components::VideoTimestamp rerun::archetypes::VideoFrameReference::timestamp |
References the closest video frame to this timestamp.
Note that this uses the closest video frame instead of the latest at this timestamp in order to be more forgiving of rounding errors for inprecise timestamp types.
Timestamps are relative to the start of the video, i.e. a timestamp of 0 always corresponds to the first frame. This is oftentimes equivalent to presentation timestamps (known as PTS), but in the presence of B-frames (bidirectionally predicted frames) there may be an offset on the first presentation timestamp in the video.
std::optional<rerun::components::EntityPath> rerun::archetypes::VideoFrameReference::video_reference |
Optional reference to an entity with a archetypes::AssetVideo
.
If none is specified, the video is assumed to be at the same entity. Note that blueprint overrides on the referenced video will be ignored regardless, as this is always interpreted as a reference to the data store.
For a series of video frame references, it is recommended to specify this path only once at the beginning of the series and then rely on latest-at query semantics to keep the video reference active.
|
staticconstexpr |