Skip to content
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

fix SR300 enumeration on linux #5278

Merged
merged 3 commits into from
Nov 20, 2019

Conversation

matkatz
Copy link
Contributor

@matkatz matkatz commented Nov 19, 2019

  • fix sr300 enumeration on linux
  • add missing yuyv fourcc

DSO-13973
#5230, #5233, #5219

Copy link
Collaborator

@ev-mp ev-mp left a comment

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

src/image.cpp Outdated
@@ -33,7 +33,7 @@ namespace librealsense
case RS2_FORMAT_BGRA8: return 32;
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
Collaborator

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

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
Collaborator

Choose a reason for hiding this comment

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

Drop the variable

Copy link
Contributor

@arilowen arilowen left a comment

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.

@@ -27,12 +27,14 @@ namespace librealsense
{
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
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

Copy link
Collaborator

@ev-mp ev-mp left a comment

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 IntelRealSense: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