Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gst-plugins-bad gst-plugins-bad
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 972
    • Issues 972
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 105
    • Merge requests 105
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamerGStreamer
  • gst-plugins-badgst-plugins-bad
  • Issues
  • #907
Closed
Open
Issue created Mar 01, 2019 by zouxiaoh@zouxiaoh

DMA buffer import cannot work with msdkvpp on Clearlinux (v4l2 based camera driver use the dma buffer allocated by Intel graphic driver).

We are working on v4l2 based gstreamer camera plugin drivers (icamerasrc), want to run up dma buffer import with msdkvpp on Clearlinux.

gst-launch-1.0 icamerasrc num-vc=1 device-name=ov10640-vc scene-mode=ull io-mode=3 ! video/x-raw(memory:DMABuf), format=NV12,width=1280,height=1080 ! msdkvpp ! glimagesink

But found the dma buffer cannot be mapped successfully, by camera kernel driver, return -EINVAL.

struct dma_buf *dma_buf_get(int fd) { struct file *file;

    file = fget(fd);

    if (!file)
            return ERR_PTR(-EBADF);
    if (!is_dma_buf_file(file)) {
            fput(file);
            return ERR_PTR(-EINVAL);
    }
    return file->private_data;

}

Edited Sep 24, 2021 by Tim-Philipp Müller
Assignee
Assign to
Time tracking