droidVNC-NG
droidVNC-NG copied to clipboard
AHardwarebuffer and rectangle comparing on GPU
use https://developer.android.com/ndk/reference/group/a-hardware-buffer to maybe speed things up.
Do you still want to develop this feature? I think I can try it.
Yeah sure, otherwise it would be closed. Let me know if you need any pointers to documentation. It only makes sense together with #2 I think and is probably at least a week of work.
I have read the 'a-hardware-buffer', but I am unsure how to compare two images. Perhaps I need to incorporate OpenCL. What are your thoughts on this?
It's maybe easier to go a bit more high-level and do the comparing in managed code, i.e. here https://github.com/bk138/droidVNC-NG/blob/master/app/src/main/java/net/christianbeier/droidvnc_ng/MainService.java#L622 - this probably involves converting the Image's to Bitmaps and then doing comparisons. But it's rather really #2 then so let's continue there!