Skip to content
  • Seungha Yang's avatar
    msdk: Allow video and system memory share among buffers · d4112d3d
    Seungha Yang authored and Víctor Manuel Jáquez Leal's avatar Víctor Manuel Jáquez Leal committed
    gst_buffer_make_writable() requires exclusive reference to the
    GstMemory so the _make_writable() for the msdk buffer will result
    to fallback system memory copy, because the msdk memory were initialized
    with GST_MEMORY_FLAG_NO_SHARE flag.
    
    Note that, disable sharing GstMemory brings high overhead but actually
    the msdk memory objects can be shared over multiple buffers.
    If the memory is not shareable, newly added GstAllocator::mem_copy will
    create copied msdk memory.
    d4112d3d