C
cppaddict
I have a java program that needs to work with raw pixel data captured
from the screen. Currently I have the code that captures and processes
the data on the native side (in C++) -- and the results of the
processing, which are small amounts of data, are passed back to Java.
How big of a performance hit would my program take if I only used C++
to capture the data, and then passed the raw pixel data back to my
Java program as an int[][] array?
Each int[][] would probably contain about 1.5MB of data, and I would
be returning arrays back to my Java program fairly frequently, say
once every ten seconds or so. Would this be a viable option, or should
I keep everything on the native side?
TIA,
cpp
from the screen. Currently I have the code that captures and processes
the data on the native side (in C++) -- and the results of the
processing, which are small amounts of data, are passed back to Java.
How big of a performance hit would my program take if I only used C++
to capture the data, and then passed the raw pixel data back to my
Java program as an int[][] array?
Each int[][] would probably contain about 1.5MB of data, and I would
be returning arrays back to my Java program fairly frequently, say
once every ten seconds or so. Would this be a viable option, or should
I keep everything on the native side?
TIA,
cpp