Skip to content

fix SR300 enumeration on linux - #5278

Merged
ev-mp merged 3 commits into
realsenseai:developmentfrom
matkatz:sr300-linux-fix
Nov 20, 2019
Merged

fix SR300 enumeration on linux#5278
ev-mp merged 3 commits into
realsenseai:developmentfrom
matkatz:sr300-linux-fix

Conversation

@matkatz

@matkatz matkatz commented Nov 19, 2019

Copy link
Copy Markdown
Contributor
  • fix sr300 enumeration on linux
  • add missing yuyv fourcc

DSO-13973
#5230, #5233, #5219

@ev-mp ev-mp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Two non-functional remarks, and it will do

Comment thread src/image.cpp Outdated
case RS2_FORMAT_Y8: return 8;
case RS2_FORMAT_Y16: return 16;
case RS2_FORMAT_RAW10: return 10;
case RS2_FORMAT_RAW10: return 16;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Put a comment for maintainers

Comment thread src/libusb/enumerator-libusb.cpp Outdated
std::stringstream port_path;
auto port_count = libusb_get_port_numbers(usb_device, usb_ports, max_usb_depth);
auto usb_dev = std::to_string(libusb_get_device_address(usb_device));
auto speed = libusb_get_device_speed(usb_device);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Drop the variable

@arilowen arilowen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great job on finding and resolving these bugs.
Consider removing the redundant support for YUYV from DS5 cameras.

Comment thread src/ds5/ds5-color.cpp
{
std::map<uint32_t, rs2_format> ds5_color_fourcc_to_rs2_format = {
{rs_fourcc('Y','U','Y','2'), RS2_FORMAT_YUYV},
{rs_fourcc('Y','U','Y','V'), RS2_FORMAT_YUYV},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think that ds5 does not support YUYV fourcc format

@ev-mp ev-mp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you!

@ev-mp
ev-mp merged commit b62e12c into realsenseai:development Nov 20, 2019
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.

3 participants