mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
620e1d2fcd
This is simple video sink that use libdrm/libkms API to render frames. The element uses planes to render through drmModeSetPlane(). It has been tested in an Exynos4412 board and in a Freescale I.MX6 board. https://bugzilla.gnome.org/show_bug.cgi?id=761059
75 lines
2.1 KiB
C
75 lines
2.1 KiB
C
/*
|
|
* GStreamer
|
|
* Copyright (C) 2016 Igalia
|
|
*
|
|
* Authors:
|
|
* Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
|
|
* Javier Martin <javiermartin@by.com.es>
|
|
*
|
|
* 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_KMS_BUFFER_POOL_H__
|
|
#define __GST_KMS_BUFFER_POOL_H__
|
|
|
|
#include <gst/gst.h>
|
|
#include <gst/video/video.h>
|
|
|
|
#include "gstkmssink.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/**
|
|
* GST_BUFFER_POOL_OPTION_KMS_BUFFER:
|
|
*
|
|
* An option that can be activated on buffer pool to request KMS
|
|
* buffers.
|
|
*/
|
|
#define GST_BUFFER_POOL_OPTION_KMS_BUFFER "GstBufferPoolOptionKMSBuffer"
|
|
|
|
/* video bufferpool */
|
|
typedef struct _GstKMSBufferPool GstKMSBufferPool;
|
|
typedef struct _GstKMSBufferPoolClass GstKMSBufferPoolClass;
|
|
typedef struct _GstKMSBufferPoolPrivate GstKMSBufferPoolPrivate;
|
|
|
|
#define GST_TYPE_KMS_BUFFER_POOL \
|
|
(gst_kms_buffer_pool_get_type())
|
|
#define GST_IS_KMS_BUFFER_POOL(obj) \
|
|
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_KMS_BUFFER_POOL))
|
|
#define GST_KMS_BUFFER_POOL(obj) \
|
|
(G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_KMS_BUFFER_POOL, GstKMSBufferPool))
|
|
#define GST_KMS_BUFFER_POOL_CAST(obj) \
|
|
((GstKMSBufferPool*)(obj))
|
|
|
|
struct _GstKMSBufferPool
|
|
{
|
|
GstVideoBufferPool parent;
|
|
GstKMSBufferPoolPrivate *priv;
|
|
};
|
|
|
|
struct _GstKMSBufferPoolClass
|
|
{
|
|
GstVideoBufferPoolClass parent_class;
|
|
};
|
|
|
|
GType gst_kms_buffer_pool_get_type (void) G_GNUC_CONST;
|
|
|
|
GstBufferPool *gst_kms_buffer_pool_new (void);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GST_KMS_BUFFER_POOL_H__ */
|