dylanatkeylogic
dylanatkeylogic
Ancient bump... but: Swapping for this code gives me an ArrayOutOfBounds Exception on this line: `bmp = Bitmap.createBitmap(pixels, width, height, Bitmap.Confit.ARGB_8888);` It seems like the pixel array isn't large enough...
@alsaleem00 I see! This may be a very ignorant question, but if I'm using the library via jitpack/gradle implementation, where would I find the C++ file in question to edit?...
Interesting - still having the same issue with the OutOfBoundsException. My pixels[] has a cap of 1,555,200, while the area of a 1080p video is 2073600 So my buffer is...
Ch 3, w 1920, h 1080, all 6220800 On that java side, intBuf.remaining is: 1555200. Then an ArrayIndexOutOfBoundsException at `Bitmap bmp = Bitmap.createBitmap(pixels, width, height, Bitmap.Config.ARGB_8888` Thank you so much...
Update: In the actual callback call in native-lib.cpp, I upped the channel to 4 `callback(env, picture_buf2, 4, ccontext->width, ccontext->height)` Now I do have an image but I'm maybe 2fps and...
Still no luck. Very weird! Any chance you could attach your native-lib.cpp?