You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While debugging my own issues, I noticed that get_bytes_per_pixel() gives 0 for synthetic frames. In the rs-software-device example, I modified the code a bit to the following to reproduce the issue:
I noticed that in the function on_video_frame(), if you multiply the input BPP by 8 you get the correct answer (which is 2). It's as if the input was expecting bits_per_pixel. The rs2_software_video_frame struct, which is the input to on_video_frame, has a data member bpp. The example uses this as if it were bytes_per_pixel, but does it actually mean bits_per_pixel?
The text was updated successfully, but these errors were encountered:
While debugging my own issues, I noticed that get_bytes_per_pixel() gives 0 for synthetic frames. In the rs-software-device example, I modified the code a bit to the following to reproduce the issue:
I noticed that in the function on_video_frame(), if you multiply the input BPP by 8 you get the correct answer (which is 2). It's as if the input was expecting bits_per_pixel. The rs2_software_video_frame struct, which is the input to on_video_frame, has a data member bpp. The example uses this as if it were bytes_per_pixel, but does it actually mean bits_per_pixel?
The text was updated successfully, but these errors were encountered: