mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-13 20:06:35 +00:00
9f7f54174a
It internally uses gst_gl_context_egl_get_dma_formats() instead of fetching modifiers by itself. Thus gst_egl_image_check_dmabuf_direct() is a decorator of this new function. Co-authored-by: He Junyan <junyan.he@intel.com> Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4680>
42 lines
1.6 KiB
C
42 lines
1.6 KiB
C
/*
|
|
* GStreamer
|
|
* Copyright (C) 2020 Igalia S.L.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
* Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#ifndef _GST_EGL_IMAGE_PRIVATE_H_
|
|
#define _GST_EGL_IMAGE_PRIVATE_H_
|
|
|
|
#include <gst/gl/gstgl_fwd.h>
|
|
#include <gst/gl/gstglformat.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
G_GNUC_INTERNAL
|
|
gboolean gst_egl_image_check_dmabuf_direct (GstGLContext * context,
|
|
const GstVideoInfo * in_info,
|
|
GstGLTextureTarget target);
|
|
|
|
G_GNUC_INTERNAL
|
|
gboolean gst_egl_image_check_dmabuf_direct_with_dma_drm
|
|
(GstGLContext * context,
|
|
const GstVideoInfoDmaDrm * in_info_dma,
|
|
GstGLTextureTarget target);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* _GST_EGL_IMAGE_PRIVATE_H_ */
|