Add a variant of the DmaAllocator where the buffers are not deallocated after switching mode, allowing you to have multiple sets of buffers stored which can be switched between based on the camera configuration. It selects which buffers to use for a given configuration based off the use_case parameter, so this must be set uniquely for each configuration that will be used with the allocator.
Looks very cool to me! Before I merge, are we happy the we're taking care of the risk of leaks in any of those "persistent" allocations, maybe in configurations that aren't currently being used?
Add a variant of the DmaAllocator where the buffers are not deallocated after switching mode, allowing you to have multiple sets of buffers stored which can be switched between based on the camera configuration. It selects which buffers to use for a given configuration based off the use_case parameter, so this must be set uniquely for each configuration that will be used with the allocator.