I’m curious to know if it is possible to increase the number of surfaces that are used for EGL/CUDA streaming in libArgus?
e.g. in tegra_multimedia_api/argus/samples/cudaHistogram
if we comment out the lines
// cuResult = cuSurfObjectDestroy(cudaSurfObj); ... // cuResult = cuEGLStreamConsumerReleaseFrame(&cudaConnection, cudaResource, &cudaStream);
we see we will receive 10 surfaces before subsequent calls to cuEGLStreamConsumerAcquireFrame() will block (seems to be waiting for one or more frames to be freed).
The point here is for our application, we would like to have a cache of frames we can process at a later time. For example, we would like to hold 30+ frames at any given time, not just 10.
Is this possible? If not, what is the limitation? GPU texture memory?