droidVNC-NG icon indicating copy to clipboard operation
droidVNC-NG copied to clipboard

AHardwarebuffer and rectangle comparing on GPU

Open bk138 opened this issue 4 years ago • 4 comments

use https://developer.android.com/ndk/reference/group/a-hardware-buffer to maybe speed things up.

bk138 avatar Nov 26 '20 17:11 bk138

Do you still want to develop this feature? I think I can try it.

wawahuy avatar Dec 14 '23 15:12 wawahuy

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.

bk138 avatar Dec 14 '23 19:12 bk138

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?

wawahuy avatar Dec 15 '23 09:12 wawahuy

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!

bk138 avatar Dec 15 '23 09:12 bk138