Forums - Dmabuf fd

1 post / 0 new
Dmabuf fd
pradeepreddy.gu...
Join Date: 11 Jan 21
Posts: 1
Posted: Mon, 2021-04-12 08:41

HI, we are working on sa8155p board, how to pass dmafd to qvconv gstremer plugin, unfortunatley we dont have access to qvconv convertor source code. will get dmafd gbm from another process and need to pass it to qvconv. using the below method qvconv is trying to mmap where the fd is not directly mmap.

 GstBuffer *buffer = gst_buffer_new();

    GstAllocator *allocator = gst_dmabuf_allocator_new();

    if (buffer != nullptr && allocator != nullptr) {
      GstMemory *mem = gst_dmabuf_allocator_alloc(allocator, fd, nBufSize);

      gst_buffer_append_memory(buffer, mem);

      *buf = buffer;
 

 

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.