-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
imencode issue #324
Comments
Try with BytePointer instead of byte[].
|
It works! Thank you. |
Good! It should also work if you provide a large enough |
I also tried with a big array of one million elements |
That's probably fixed if you try the latest code: bytedeco/javacpp-presets#109 |
Building a BytePointer out of an existing byte[] doesn't seem to work either. Is there a javacpp-presets release that includes fixes for this and using a ByteBuffer also? |
No release yet, no.
|
I'm triyng to encode a Mat as JPEG into a byte array, but it doesn't work, the byte array doesn't change its own values.
Below an example code:
byteArray value remains [0].
Is this a JavaCV issue, or is there anything wrong in my code?
The text was updated successfully, but these errors were encountered: