This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
k4a_image_get_size() returns unexpected values #1976
Labels
Bug
Something isn't working
Triage Needed
The Issue still needs to be reviewed by Azure Kinect team members.
Expected behavior
k4a_image_get_size()
should return:k4a_image_get_width_pixels() * k4a_image_get_height_pixels() * 4
, (format==BGRA)k4a_image_get_width_pixels() * k4a_image_get_height_pixels() * 2
, (format==YUY2)k4a_image_get_width_pixels() * k4a_image_get_height_pixels() * 1.5
, (format==NV12)Observation
Most of the time, the above is true. However, sporadically,
k4a_image_get_size()
returns a size that is less than the expected quantity for formatsYUY2
andNV12
. For example, I observed these values for a resolution of 720p and theYUY2
format (every few seconds/every few hundred frames):The text was updated successfully, but these errors were encountered: