2020-02-06 02:42:56 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 2020 Nicolas Dufresne <nicolas.dufresne@collabora.com>
|
|
|
|
*
|
|
|
|
* 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_V4L2_DECODER_H__
|
|
|
|
#define __GST_V4L2_DECODER_H__
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
#include <gst/video/video.h>
|
|
|
|
|
|
|
|
#include "gstv4l2codecdevice.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define GST_TYPE_V4L2_DECODER gst_v4l2_decoder_get_type ()
|
|
|
|
G_DECLARE_FINAL_TYPE (GstV4l2Decoder, gst_v4l2_decoder, GST, V4L2_DECODER, GstObject);
|
|
|
|
|
|
|
|
GstV4l2Decoder * gst_v4l2_decoder_new (GstV4l2CodecDevice * device);
|
|
|
|
|
|
|
|
gboolean gst_v4l2_decoder_open (GstV4l2Decoder * decoder);
|
|
|
|
|
2020-02-09 16:31:11 +00:00
|
|
|
gboolean gst_v4l2_decoder_enum_sink_fmt (GstV4l2Decoder * self,
|
|
|
|
gint i, guint32 * out_fmt);
|
2020-02-06 02:42:56 +00:00
|
|
|
|
|
|
|
void gst_v4l2_decoder_install_properties (GObjectClass * gobject_class,
|
|
|
|
gint prop_offset,
|
|
|
|
GstV4l2CodecDevice * device);
|
|
|
|
|
|
|
|
void gst_v4l2_decoder_set_property (GObject * object, guint prop_id,
|
|
|
|
const GValue * value, GParamSpec * pspec);
|
|
|
|
|
|
|
|
void gst_v4l2_decoder_get_property (GObject * object, guint prop_id,
|
|
|
|
GValue * value, GParamSpec * pspec);
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GST_V4L2_DECODER_H__ */
|