2003-07-02 06:16:39 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
*
|
|
|
|
* 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-04 00:07:18 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2003-07-02 06:16:39 +00:00
|
|
|
*/
|
|
|
|
|
2005-11-29 01:30:40 +00:00
|
|
|
#ifndef __GST_VIDEO_FLIP_H__
|
|
|
|
#define __GST_VIDEO_FLIP_H__
|
2003-07-02 06:16:39 +00:00
|
|
|
|
2010-04-18 11:03:48 +00:00
|
|
|
#include <gst/gst.h>
|
2010-04-18 12:29:30 +00:00
|
|
|
#include <gst/video/video.h>
|
2005-11-29 10:46:00 +00:00
|
|
|
#include <gst/video/gstvideofilter.h>
|
2003-07-02 06:16:39 +00:00
|
|
|
|
2004-03-15 16:32:54 +00:00
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
docs/plugins/: Added videobalance and videoflip to the docs.
Original commit message from CVS:
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-good-plugins-docs.sgml:
* docs/plugins/gst-plugins-good-plugins-sections.txt:
* docs/plugins/gst-plugins-good-plugins.hierarchy:
Added videobalance and videoflip to the docs.
* gst/videofilter/Makefile.am:
* gst/videofilter/gstvideobalance.c:
(gst_video_balance_update_tables_planar411),
(gst_video_balance_is_passthrough),
(gst_video_balance_update_properties), (oil_tablelookup_u8),
(gst_video_balance_planar411_ip), (gst_video_balance_set_caps),
(gst_video_balance_transform_ip), (gst_video_balance_base_init),
(gst_video_balance_finalize), (gst_video_balance_class_init),
(gst_video_balance_init), (gst_video_balance_interface_supported),
(gst_video_balance_interface_init),
(gst_video_balance_colorbalance_list_channels),
(gst_video_balance_colorbalance_set_value),
(gst_video_balance_colorbalance_get_value),
(gst_video_balance_colorbalance_init),
(gst_video_balance_set_property), (gst_video_balance_get_property),
(gst_video_balance_get_type), (plugin_init):
* gst/videofilter/gstvideobalance.h:
Ported to 0.10. (Fixes #326160)
Added docs.
* gst/videofilter/gstvideoflip.c:
* gst/videofilter/gstvideoflip.h:
Added docs.
2006-03-03 14:39:55 +00:00
|
|
|
/**
|
|
|
|
* GstVideoFlipMethod:
|
|
|
|
* @GST_VIDEO_FLIP_METHOD_IDENTITY: Identity (no rotation)
|
|
|
|
* @GST_VIDEO_FLIP_METHOD_90R: Rotate clockwise 90 degrees
|
|
|
|
* @GST_VIDEO_FLIP_METHOD_180: Rotate 180 degrees
|
|
|
|
* @GST_VIDEO_FLIP_METHOD_90L: Rotate counter-clockwise 90 degrees
|
|
|
|
* @GST_VIDEO_FLIP_METHOD_HORIZ: Flip horizontally
|
|
|
|
* @GST_VIDEO_FLIP_METHOD_VERT: Flip vertically
|
|
|
|
* @GST_VIDEO_FLIP_METHOD_TRANS: Flip across upper left/lower right diagonal
|
|
|
|
* @GST_VIDEO_FLIP_METHOD_OTHER: Flip across upper right/lower left diagonal
|
|
|
|
*
|
|
|
|
* The different flip methods.
|
|
|
|
*/
|
2004-03-15 16:32:54 +00:00
|
|
|
typedef enum {
|
2005-11-29 01:30:40 +00:00
|
|
|
GST_VIDEO_FLIP_METHOD_IDENTITY,
|
|
|
|
GST_VIDEO_FLIP_METHOD_90R,
|
|
|
|
GST_VIDEO_FLIP_METHOD_180,
|
|
|
|
GST_VIDEO_FLIP_METHOD_90L,
|
|
|
|
GST_VIDEO_FLIP_METHOD_HORIZ,
|
|
|
|
GST_VIDEO_FLIP_METHOD_VERT,
|
|
|
|
GST_VIDEO_FLIP_METHOD_TRANS,
|
|
|
|
GST_VIDEO_FLIP_METHOD_OTHER
|
|
|
|
} GstVideoFlipMethod;
|
2003-07-02 06:50:32 +00:00
|
|
|
|
2005-11-29 01:30:40 +00:00
|
|
|
#define GST_TYPE_VIDEO_FLIP \
|
|
|
|
(gst_video_flip_get_type())
|
|
|
|
#define GST_VIDEO_FLIP(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VIDEO_FLIP,GstVideoFlip))
|
|
|
|
#define GST_VIDEO_FLIP_CLASS(klass) \
|
|
|
|
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_VIDEO_FLIP,GstVideoFlipClass))
|
|
|
|
#define GST_IS_VIDEO_FLIP(obj) \
|
|
|
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_VIDEO_FLIP))
|
2006-06-01 21:07:26 +00:00
|
|
|
#define GST_IS_VIDEO_FLIP_CLASS(klass) \
|
2005-11-29 01:30:40 +00:00
|
|
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_VIDEO_FLIP))
|
2003-07-02 06:16:39 +00:00
|
|
|
|
2005-11-29 01:30:40 +00:00
|
|
|
typedef struct _GstVideoFlip GstVideoFlip;
|
|
|
|
typedef struct _GstVideoFlipClass GstVideoFlipClass;
|
2003-07-02 06:16:39 +00:00
|
|
|
|
docs/plugins/: Added videobalance and videoflip to the docs.
Original commit message from CVS:
* docs/plugins/Makefile.am:
* docs/plugins/gst-plugins-good-plugins-docs.sgml:
* docs/plugins/gst-plugins-good-plugins-sections.txt:
* docs/plugins/gst-plugins-good-plugins.hierarchy:
Added videobalance and videoflip to the docs.
* gst/videofilter/Makefile.am:
* gst/videofilter/gstvideobalance.c:
(gst_video_balance_update_tables_planar411),
(gst_video_balance_is_passthrough),
(gst_video_balance_update_properties), (oil_tablelookup_u8),
(gst_video_balance_planar411_ip), (gst_video_balance_set_caps),
(gst_video_balance_transform_ip), (gst_video_balance_base_init),
(gst_video_balance_finalize), (gst_video_balance_class_init),
(gst_video_balance_init), (gst_video_balance_interface_supported),
(gst_video_balance_interface_init),
(gst_video_balance_colorbalance_list_channels),
(gst_video_balance_colorbalance_set_value),
(gst_video_balance_colorbalance_get_value),
(gst_video_balance_colorbalance_init),
(gst_video_balance_set_property), (gst_video_balance_get_property),
(gst_video_balance_get_type), (plugin_init):
* gst/videofilter/gstvideobalance.h:
Ported to 0.10. (Fixes #326160)
Added docs.
* gst/videofilter/gstvideoflip.c:
* gst/videofilter/gstvideoflip.h:
Added docs.
2006-03-03 14:39:55 +00:00
|
|
|
/**
|
|
|
|
* GstVideoFlip:
|
|
|
|
*
|
|
|
|
* Opaque datastructure.
|
|
|
|
*/
|
2005-11-29 01:30:40 +00:00
|
|
|
struct _GstVideoFlip {
|
2005-11-30 08:26:47 +00:00
|
|
|
GstVideoFilter videofilter;
|
2011-12-21 22:51:03 +00:00
|
|
|
|
2010-04-18 11:03:48 +00:00
|
|
|
/* < private > */
|
2005-11-29 01:30:40 +00:00
|
|
|
GstVideoFlipMethod method;
|
2011-06-28 12:03:43 +00:00
|
|
|
void (*process) (GstVideoFlip *videoflip, GstVideoFrame *dest, const GstVideoFrame *src);
|
2003-07-02 06:16:39 +00:00
|
|
|
};
|
|
|
|
|
2005-11-29 01:30:40 +00:00
|
|
|
struct _GstVideoFlipClass {
|
2005-11-30 08:26:47 +00:00
|
|
|
GstVideoFilterClass parent_class;
|
2003-07-02 06:16:39 +00:00
|
|
|
};
|
|
|
|
|
2005-11-30 08:26:47 +00:00
|
|
|
GType gst_video_flip_get_type (void);
|
2003-07-02 06:16:39 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
2004-03-15 16:32:54 +00:00
|
|
|
|
2005-11-29 01:30:40 +00:00
|
|
|
#endif /* __GST_VIDEO_FLIP_H__ */
|