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
@whoactuallycares do you mind addressing this in such setters (as setType) and in FW, to set the bytesPP at the final serialization accordingly (Note, use typeToBpp function)
Hi @whoactuallycares. Will code I don't have visibility into work correctly when bytes are rounded up? For example, NV12 uses 1.5 bytes per pixel and your commit has 2
We'll likely have to change to a floating represenatation for cases where bytesPP would be used to do a stride*bytesPP*height to calculate the image size. At current state it was more inline with planes - eg it denoted bytes per pixel on a plane, but still not completely correctly due to NV12 and others having different sizes per plane
the function
dai::RawImgFrame::typeToBpp()
returns unexpected values for common image types. Here are seven examples, they may be more...Setup
v2.17.0
and continues tomain
Repro
A quick hack...
color_frame->setType(dai::ImgFrame::Type::RGB888i);
bytesPP
Result
bytesPP = 1
Expected
bytesPP = 3
because RGB888i uses 3 bytes per pixel to represent the colorThe text was updated successfully, but these errors were encountered: