Skip to content
  • Seungha Yang's avatar
    nvcodec: Add CUDA specific memory and bufferpool · cf5ef563
    Seungha Yang authored and GStreamer Marge Bot's avatar GStreamer Marge Bot committed
    Introducing CUDA buffer pool with generic CUDA memory support.
    Likewise GL memory, any elements which are able to access CUDA device
    memory directly can map this CUDA memory without upload/download
    overhead via the "GST_MAP_CUDA" map flag.
    Also usual GstMemory map/unmap is also possible with internal staging memory.
    
    For staging, CUDA Host allocated memory is used (see CuMemAllocHost API).
    The memory is allowing system access but has lower overhead
    during GPU upload/download than normal system memory.
    
    Part-of: <!1633>
    cf5ef563