Closed averyanalex closed 1 year ago
Oh, sorry, I changed slices to vectors From
let mut rgb_buf = [0u8; 640 * 480 * 3];
to
let mut rgb_buf: Vec<_> = vec![0u8; 640 * 480 * 3];
and it works now!
Maybe change readme examples to use vecs instead of byte slices?
Hi Alexander,
you are right. All documentation examples allocating data on the stack will work just if the linker stack size is sufficiently large.
Addressing it in upcoming PR.
Thanks for the suggestion!
Here's the PR: https://github.com/aws/dcv-color-primitives/pull/73
I use this code:
And I get stackoverflow:
YUV to BGRA works fine.