-
Notifications
You must be signed in to change notification settings - Fork 539
Fix C++ interface for VideoStream
#10745
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
Conversation
Web viewer built successfully. If applicable, you should also test it:
Note: This comment is updated whenever you push a commit. |
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 was going to ask you to make a change and then realized I should make sure the change was possible, and in doing so wrote the change, so I pushed it 😆
Looks good.
I can't approve my own PR but your changes LGTM as well. |
### What Our code gen treats all enums as uint8_t however they can be other types. In this instance we have a uint32_t and by shaving off that precision we get the fairly ambiguous `missing_union_arm` error. Reported on discord [here](https://discord.com/channels/1062300748202921994/1397335975364919392/1397335975364919392) but it means the VideoStream isn't available on C++ right now. ```console re_viewer_context::component_ui_registry] Failed to deserialize component of type rerun.components.VideoCodec: Failed to deserialize "rerun.components.VideoCodec" ``` See my first commit for the point fix then my second commit resolves this in code gen. --------- Co-authored-by: Jeremy Leibs <[email protected]>
VideoStream
What
Our code gen treats all enums as uint8_t however they can be other types. In this instance we have a uint32_t and by shaving off that precision we get the fairly ambiguous
missing_union_arm
error. Reported on discord here but it means the VideoStream isn't available on C++ right now.re_viewer_context::component_ui_registry] Failed to deserialize component of type rerun.components.VideoCodec: Failed to deserialize "rerun.components.VideoCodec"
See my first commit for the point fix then my second commit resolves this in code gen.