|
Packit |
0652a1 |
/* GStreamer
|
|
Packit |
0652a1 |
* Copyright (C) 2016 Igalia <calvaris@igalia.com>
|
|
Packit |
0652a1 |
*
|
|
Packit |
0652a1 |
* videodirection.c: video rotation and flipping interface
|
|
Packit |
0652a1 |
*
|
|
Packit |
0652a1 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
0652a1 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
0652a1 |
* License as published by the Free Software Foundation; either
|
|
Packit |
0652a1 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
0652a1 |
*
|
|
Packit |
0652a1 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
0652a1 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
0652a1 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
0652a1 |
* Library General Public License for more details.
|
|
Packit |
0652a1 |
*
|
|
Packit |
0652a1 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
0652a1 |
* License along with this library; if not, write to the
|
|
Packit |
0652a1 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit |
0652a1 |
* Boston, MA 02110-1301, USA.
|
|
Packit |
0652a1 |
*/
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
#ifdef HAVE_CONFIG_H
|
|
Packit |
0652a1 |
#include "config.h"
|
|
Packit |
0652a1 |
#endif
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
#include "video.h"
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
#define PROP_DIRECTION_DEFAULT GST_VIDEO_ORIENTATION_IDENTITY
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
/**
|
|
Packit |
0652a1 |
* SECTION:gstvideodirection
|
|
Packit |
0652a1 |
* @title: GstVideoDirection
|
|
Packit |
0652a1 |
* @short_description: Interface for elements providing video
|
|
Packit |
0652a1 |
* rotation and flipping controls
|
|
Packit |
0652a1 |
*
|
|
Packit |
0652a1 |
* The interface allows unified access to control flipping and rotation
|
|
Packit |
0652a1 |
* operations of video-sources or operators.
|
|
Packit |
0652a1 |
*
|
|
Packit |
0652a1 |
* Since: 1.10
|
|
Packit |
0652a1 |
*/
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
G_DEFINE_INTERFACE (GstVideoDirection, gst_video_direction, 0);
|
|
Packit |
0652a1 |
|
|
Packit |
0652a1 |
static void
|
|
Packit |
0652a1 |
gst_video_direction_default_init (GstVideoDirectionInterface * iface)
|
|
Packit |
0652a1 |
{
|
|
Packit |
0652a1 |
g_object_interface_install_property (iface,
|
|
Packit |
0652a1 |
g_param_spec_enum ("video-direction", "Video direction",
|
|
Packit |
0652a1 |
"Video direction: rotation and flipping",
|
|
Packit |
0652a1 |
GST_TYPE_VIDEO_ORIENTATION_METHOD, PROP_DIRECTION_DEFAULT,
|
|
Packit |
0652a1 |
GST_PARAM_CONTROLLABLE | G_PARAM_READWRITE | G_PARAM_CONSTRUCT |
|
|
Packit |
0652a1 |
G_PARAM_STATIC_STRINGS));
|
|
Packit |
0652a1 |
}
|