2004-01-15 08:58:22 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
2010-09-13 19:48:50 +00:00
|
|
|
* This file:
|
|
|
|
* Copyright (C) 2003 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
2004-01-15 08:58:22 +00:00
|
|
|
*
|
|
|
|
* 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
|
2012-11-03 23:05:09 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2004-01-15 08:58:22 +00:00
|
|
|
*/
|
|
|
|
|
2011-06-15 15:49:21 +00:00
|
|
|
#ifndef __GST_VIDEOCONVERT_H__
|
|
|
|
#define __GST_VIDEOCONVERT_H__
|
2004-01-15 08:58:22 +00:00
|
|
|
|
|
|
|
#include <gst/gst.h>
|
2010-09-13 19:48:50 +00:00
|
|
|
#include <gst/video/video.h>
|
|
|
|
#include <gst/video/gstvideofilter.h>
|
2004-01-15 08:58:22 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
2004-03-15 16:32:54 +00:00
|
|
|
|
2020-03-12 12:25:47 +00:00
|
|
|
#define GST_TYPE_VIDEO_CONVERT (gst_video_convert_get_type())
|
|
|
|
#define GST_VIDEO_CONVERT_CAST(obj) ((GstVideoConvert *)(obj))
|
|
|
|
G_DECLARE_FINAL_TYPE (GstVideoConvert, gst_video_convert, GST, VIDEO_CONVERT,
|
|
|
|
GstVideoFilter)
|
2004-01-15 08:58:22 +00:00
|
|
|
|
2010-09-13 19:48:50 +00:00
|
|
|
/**
|
2011-06-15 15:49:21 +00:00
|
|
|
* GstVideoConvert:
|
2010-09-13 19:48:50 +00:00
|
|
|
*
|
|
|
|
* Opaque object data structure.
|
|
|
|
*/
|
2011-06-15 15:49:21 +00:00
|
|
|
struct _GstVideoConvert {
|
2010-09-13 19:48:50 +00:00
|
|
|
GstVideoFilter element;
|
2004-01-15 08:58:22 +00:00
|
|
|
|
2014-09-24 14:19:30 +00:00
|
|
|
GstVideoConverter *convert;
|
2014-09-24 13:49:42 +00:00
|
|
|
GstVideoDitherMethod dither;
|
2014-12-02 10:51:19 +00:00
|
|
|
guint dither_quantization;
|
2015-05-08 12:21:16 +00:00
|
|
|
GstVideoResamplerMethod chroma_resampler;
|
|
|
|
GstVideoAlphaMode alpha_mode;
|
|
|
|
GstVideoChromaMode chroma_mode;
|
|
|
|
GstVideoMatrixMode matrix_mode;
|
|
|
|
GstVideoGammaMode gamma_mode;
|
|
|
|
GstVideoPrimariesMode primaries_mode;
|
|
|
|
gdouble alpha_value;
|
2017-02-20 19:38:17 +00:00
|
|
|
gint n_threads;
|
2004-01-15 08:58:22 +00:00
|
|
|
};
|
|
|
|
|
2021-02-11 09:55:25 +00:00
|
|
|
GST_ELEMENT_REGISTER_DECLARE (videoconvert);
|
|
|
|
|
2004-01-15 08:58:22 +00:00
|
|
|
G_END_DECLS
|
2004-03-15 16:32:54 +00:00
|
|
|
|
2011-06-15 15:49:21 +00:00
|
|
|
#endif /* __GST_VIDEOCONVERT_H__ */
|