Skip to content

Conversation

@OhadMeir
Copy link
Contributor

@OhadMeir OhadMeir commented Aug 3, 2025

Tracked on [RSDEV-3646]

@OhadMeir OhadMeir requested review from Nir-Az and Copilot August 3, 2025 06:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds bandwidth calculation and logging functionality for DDS video streams. The implementation calculates expected bandwidth usage based on stream parameters (width, height, framerate, and bits per pixel) and logs this information when streams are opened.

  • Adds a new calculate_bandwidth method to compute and log stream bandwidth information
  • Integrates bandwidth calculation into the stream opening process
  • Supports multiple video formats with appropriate bits-per-pixel calculations

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/dds/rs-dds-sensor-proxy.h Adds forward declaration and method signature for bandwidth calculation
src/dds/rs-dds-sensor-proxy.cpp Implements bandwidth calculation logic and integrates it into stream opening

size_t height = vsp->get_height();
size_t fps = vsp->get_framerate();
size_t bpp = 0;
switch( vsp->get_format() ) // Expected raw formats from the sensor
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't we have a utility function for it?
We have it in several places, maybe better to add if not exist?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is a utility function get_image_bpp. I thought to support only "raw" formats that we expect to get from the camera. Maybe it's not that crucial, if you prefer I will change to use the existing function.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As discussed, will update to use utility function

@Nir-Az Nir-Az merged commit dc1396a into realsenseai:development Aug 3, 2025
26 checks passed
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