--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/eWlnYlhjbDNWVnNK.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
I need a large buffer because the library for decoding I use decodes all in one buffer. As I wrote - I have another option, to send only part of the buffer each time, but I do not know how to do it. I do not understand your option. You can write your code example how would you solved this problem? Please do. thanks in advance
I compiled the open source library. give it a file name, and she gives me a buffer, but at each iteration, it writes the new part of the buffer in the same array. understand? so I think that the only way to take part of the buffer of char and give java. but how? the entire buffer can give, but if the size reaches 40 million.
It's very simple - I write a while loop, in which the function of obtaining a buffer, for example: while (get buffer) in the performance of the functions of the new buffer is written in the same array. understand?Library work is absolutely essential. importantly, the fact that every time I get more and more buffer, ie all bytes are collected into a single array. I pass the whole array, but then the memory takes under 50 megabytes. I need to understand how to extract from the whole array of only a part. you help with this?
almost true, but it will not work. I initially configured the library for a buffer in a certain char. then at each iteration library itself writes the data in this char. char increases. question: how to use jni to get a certain part of buffer and give java. understand?