Skip to content

Commit

Permalink
put in static logging into image_send_columns as intended
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Aug 13, 2024
1 parent 366a4e6 commit 46c8a1f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 14 deletions.
2 changes: 1 addition & 1 deletion crates/store/re_types/src/archetypes/image.rs

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

6 changes: 1 addition & 5 deletions docs/snippets/all/archetypes/image_send_columns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ int main() {
rerun::ColorModel::RGB,
rerun::ChannelDatatype::U8
);
rec.log(
"images",
rerun::borrow(&format, 1),
rerun::Image::IndicatorComponent()
); // TODO: make static
rec.log_static("images", rerun::borrow(&format, 1), rerun::Image::IndicatorComponent());

// Split up the image data into several components referencing the underlying data.
const size_t image_size_in_bytes = width * height * 3;
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/all/archetypes/image_send_columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# Log the ImageFormat and indicator once, as static.
format_static = rr.components.ImageFormat(width=width, height=height, color_model="RGB", channel_datatype="U8")
rr.log("images", [format_static, rr.Image.indicator()]) # TODO:, static=True)
rr.log("images", [format_static, rr.Image.indicator()], static=True)

# Send all images at once.
rr.send_columns(
Expand Down
2 changes: 1 addition & 1 deletion docs/snippets/all/archetypes/image_send_columns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
});
rec.log_component_batches(
"images",
false, // TODO: static=true,
true,
[&format as _, &rerun::Image::indicator() as _],
)?;

Expand Down
6 changes: 1 addition & 5 deletions rerun_cpp/src/rerun/archetypes/image.hpp

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

2 changes: 1 addition & 1 deletion rerun_py/rerun_sdk/rerun/archetypes/image.py

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

0 comments on commit 46c8a1f

Please sign in to comment.