Allocation of Batched Buffers#

To allocate batched buffers, call the AllocateBatchBuffer() function, which allocates an image that is n times taller than the prototypical image.

Note

The allocation cannot always be interpreted this way, especially if the pixels are planar.

The purpose of this function is mainly to provide storage and then dispose of this storage when the NvCVImage object goes out of scope or its destructor is called.

You can use your own method to allocate the storage for the batched images. The image that AllocateBatchBuffer() yields is used only for bookkeeping and is never used in any of the Video Effects APIs.

Note

The Video Effects APIs require an NvCVImage descriptor for only the first image.