-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add button for copying and saving images #7156
Conversation
Why exclude from changelog? Wasn't aware we had this previously already 😳 |
Related to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that code dupl makes me very sad, but giving it a pass-as-is anyways (although I'd really really appreciate fixing that)
Don't think it's time to close the linked ticket already or at least need a new one for EncodedImage
which can't be saved and has a preview inconsistent from that (see also notes on Slack)
for x in 0..w { | ||
// NOTE: the name `y` is already taken for the coordinate, so we use `luma` here. | ||
let [luma, u, v] = match pixel_format { | ||
PixelFormat::NV12 => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplication of the decoding makes me very uneasy. I'd rather we divide above's ImageInfo::from_xyz
to get colors as well and then use that again. Otherwise, we'll keep on adding duplicated decoding logic.
Or easier just split this out into a standalone color_at_postion_for_pixel_format
function that takes a blob, format and coordinate which you then can call here and above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I unified it now, but at the cost of making it harder to add a new PixelFormat
that is not chroma-downsampled. I'll leave it for the next person to improve.
We had it, but only if you selected the |
What
Saving an image now also works on web, which it didn't do in 0.17
Checklist
main
build: rerun.io/viewernightly
build: rerun.io/viewerCHANGELOG.md
and the migration guideTo run all checks from
main
, comment on the PR with@rerun-bot full-check
.