Skip to content

Commit

Permalink
reference new example on video asset and video frame reference archet…
Browse files Browse the repository at this point in the history
…ypes
  • Loading branch information
Wumpf committed Sep 12, 2024
1 parent 771d49a commit 8d4ad66
Show file tree
Hide file tree
Showing 12 changed files with 373 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ namespace rerun.archetypes;
/// Follow <https://github.com/rerun-io/rerun/issues/7298> for updates on the native support.
///
/// In order to display a video, you need to log a [archetypes.VideoFrameReference] for each frame.
// TODO(#7368): More docs and examples on how to use this.
///
/// \example archetypes/video_manual_frames title="Video with explicit frames" image="https://static.rerun.io/video_manual_frames/320a44e1e06b8b3a3161ecbbeae3e04d1ccb9589/1200w.png"
// TODO(#7368): Example and reference to `send_video_frames` API.
table AssetVideo (
"attr.rerun.experimental"
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ namespace rerun.archetypes;

/// References a single video frame.
///
/// Used to display video frames from a [archetypes.AssetVideo].
// TODO(#7368): More docs and examples on how to use this.
/// Used to display individual video frames from a [archetypes.AssetVideo].
/// To show an entire video, a fideo frame reference for each frame of the video should be logged.
///
/// \example archetypes/video_manual_frames title="Video with explicit frames" image="https://static.rerun.io/video_manual_frames/320a44e1e06b8b3a3161ecbbeae3e04d1ccb9589/1200w.png"
// TODO(#7368): Example and reference to `send_video_frames` API.
table VideoFrameReference (
"attr.rerun.experimental"
){
Expand All @@ -22,5 +25,9 @@ table VideoFrameReference (
/// 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.
video_reference: rerun.components.EntityPath ("attr.rerun.component_optional", nullable, order: 2000);
}
52 changes: 52 additions & 0 deletions crates/store/re_types/src/archetypes/asset_video.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 62 additions & 1 deletion crates/store/re_types/src/archetypes/video_frame_reference.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/viewer/re_viewer/src/reflection/mod.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions docs/content/reference/types/archetypes/asset_video.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 16 additions & 1 deletion docs/content/reference/types/archetypes/video_frame_reference.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions docs/snippets/all/archetypes/video_manual_frames.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
"""
Log a video asset using manually created frame references.
TODO(#7298): ⚠️ Video is currently only supported in the Rerun web viewer.
"""
"""Log a video asset using manually created frame references."""
# TODO(#7298): ⚠️ Video is currently only supported in the Rerun web viewer.

import sys

Expand Down
52 changes: 52 additions & 0 deletions rerun_cpp/src/rerun/archetypes/asset_video.hpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8d4ad66

Please sign in to comment.