Skip to content

RSDK-13626: Remove getImage, Format helpers, and format field usage#149

Open
hexbabe wants to merge 1 commit intomainfrom
RSDK-13626-remove-getimage-renderframe
Open

RSDK-13626: Remove getImage, Format helpers, and format field usage#149
hexbabe wants to merge 1 commit intomainfrom
RSDK-13626-remove-getimage-renderframe

Conversation

@hexbabe
Copy link
Member

@hexbabe hexbabe commented Mar 17, 2026

Summary

  • Remove getImage abstract method and mimeToFormat/formatToMime from Camera.java
  • Remove getImage() implementation from CameraRPCClient.java
  • Remove getImage() handler and GetImageRequest/GetImageResponse imports from CameraRPCService.java
  • Remove Format import from Media.kt; switch Image.dimensions to use mimeType instead of format.name

Pre-emptive cleanup ahead of viamrobotics/api#758 which deletes GetImage, RenderFrame, and the Format enum from camera.proto. The Java SDK had the deepest usage of these deleted types, including real business logic in the RPC client/service and the Media.kt utility.

Test plan

  • Verify existing camera tests pass

🤖 Generated with Claude Code

Pre-emptive removal ahead of viamrobotics/api#758 which deletes GetImage,
RenderFrame, and the Format enum from camera.proto. Removes:
- getImage abstract method and mimeToFormat/formatToMime from Camera.java
- getImage implementation from CameraRPCClient.java
- getImage handler and deleted type imports from CameraRPCService.java
- Format import from Media.kt; switches Image.dimensions to use mimeType

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@hexbabe hexbabe requested a review from a team as a code owner March 17, 2026 13:31
@hexbabe hexbabe requested review from njooma and stuqdog March 17, 2026 13:31
@viambot
Copy link
Member

viambot commented Mar 17, 2026

👋 Thanks for requesting a review from the team!

We aim to review PRs within one business day. If this is urgent
or blocking you, please reach out in #team-sdk and
we'll prioritize it.

val Image.dimensions: ImageDimensions?
get() = try {
getDimensions(this.image, this.format.name)
getDimensions(this.image, this.mimeType)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does anything important rely on this? I don't think we should support this anymore

@hexbabe
Copy link
Member Author

hexbabe commented Mar 18, 2026

@njooma @stuqdog this PR is ready for a first pass review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants