gstdmabuf.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* GStreamer dmabuf allocator
  2. * Copyright (C) 2013 Linaro SA
  3. * Author: Benjamin Gaignard <benjamin.gaignard@linaro.org> for Linaro.
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Library General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Library General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Library General Public
  16. * License along with this library; if not, write to the
  17. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  18. * Boston, MA 02111-1307, USA.
  19. */
  20. #ifndef __GST_DMABUF_H__
  21. #define __GST_DMABUF_H__
  22. #include <gst/gst.h>
  23. G_BEGIN_DECLS
  24. #define GST_ALLOCATOR_DMABUF "dmabuf"
  25. GstAllocator * gst_dmabuf_allocator_new (void);
  26. GstMemory * gst_dmabuf_allocator_alloc (GstAllocator * allocator, gint fd, gsize size);
  27. gint gst_dmabuf_memory_get_fd (GstMemory * mem);
  28. gboolean gst_is_dmabuf_memory (GstMemory * mem);
  29. G_END_DECLS
  30. #endif /* __GST_DMABUF_H__ */