-
Notifications
You must be signed in to change notification settings - Fork 127
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
Camera node holistic record & replay #1117
base: v3_visualizer_support
Are you sure you want to change the base?
Conversation
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.
Thanks Sebastjan!
Let's add an example or two in python as well and move the cpp one to be cross platform, but generally LGTM.
src/pipeline/node/Camera.cpp
Outdated
std::pair<size_t, size_t> Camera::getMaxRequestedSize() const { | ||
uint32_t maxWidth = 0; | ||
uint32_t maxHeight = 0; | ||
for(const auto& outputRequest : pimpl->outputRequests) { | ||
if(outputRequest.capability.size.value) { | ||
if(const auto* size = std::get_if<std::pair<uint32_t, uint32_t>>(&(*outputRequest.capability.size.value))) { | ||
maxWidth = std::max(maxWidth, size->first); | ||
maxHeight = std::max(maxHeight, size->second); | ||
} else { | ||
throw std::runtime_error("Unsupported size value"); | ||
} | ||
} | ||
} | ||
if(maxWidth == 0 || maxHeight == 0) { | ||
throw std::runtime_error("Invalid max width or height"); | ||
} | ||
return std::make_pair(maxWidth, maxHeight); | ||
}; |
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 think we should actually record maxSize, that is full FOV.
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.
Let's remove before merge IMO
…camera_record_n_replay
…camera_record_n_replay
…re into v3_camera_record_n_replay
…re into v3_camera_record_n_replay
…camera_record_n_replay
…re into v3_camera_record_n_replay
…re into v3_camera_record_n_replay
No description provided.