IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.42k stars 4.8k forks source link

Fixing Y12i stream output in MIPI with CUDA case #13084

Closed Arun-Prasad-V closed 1 day ago

Arun-Prasad-V commented 3 days ago

Tracked by LRS-1052

Arun-Prasad-V commented 2 days ago

The code for mipi and not pipi is exactly the same - the only difference is the padding of 8 bits that has been added for mipi. Few questions: Is the other padding used anywhere? (y16_y16_from_y12i)? If no - please remove it, and keep only the mipi one. If yes - since the code is exactly the same besides the type used (y12i_pixel or y12i_pixel_mipi), could you change it to a template function that would be used for both cases (once with the y12i_pixel type, and once with the y12i_pixel_mipi type)?

@remibettan, UVC with CUDA must be using y16_y16_from_y12i. So, as you mentioned, will change them to template functions.