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

Index out of range exception while decoding #1

Open
AR-Vsx opened this issue Aug 4, 2022 · 0 comments
Open

Index out of range exception while decoding #1

AR-Vsx opened this issue Aug 4, 2022 · 0 comments

Comments

@AR-Vsx
Copy link

AR-Vsx commented Aug 4, 2022

Hi, I sometimes get an exception when decoding a received buffer.

decodedDepthTex = new Texture2D(640, 576, TextureFormat.R16, false, true);
short[] depthImage = new short[decodedDepthTex.width * decodedDepthTex.height];
RVL.DecompressRVL(depthBuffer, depthImage);

My sent depthBuffer and received depthBuffer match in size and I'm using camera_configuration.depth_mode = K4A_DEPTH_MODE_NFOV_UNBINNED; so my resolutions should also be matching.

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

No branches or pull requests

1 participant