Coverage Report

Created: 2026-01-22 06:44

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/gstreamer/subprojects/gst-plugins-base/gst-libs/gst/video/videodirection.c
Line
Count
Source
1
/* GStreamer
2
 * Copyright (C) 2016 Igalia <calvaris@igalia.com>
3
 *
4
 * videodirection.c: video rotation and flipping interface
5
 *
6
 * This library is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU Library General Public
8
 * License as published by the Free Software Foundation; either
9
 * version 2 of the License, or (at your option) any later version.
10
 *
11
 * This library is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
 * Library General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU Library General Public
17
 * License along with this library; if not, write to the
18
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
19
 * Boston, MA 02110-1301, USA.
20
 */
21
22
#ifdef HAVE_CONFIG_H
23
#include "config.h"
24
#endif
25
26
#include "video.h"
27
28
0
#define PROP_DIRECTION_DEFAULT GST_VIDEO_ORIENTATION_IDENTITY
29
30
/**
31
 * SECTION:gstvideodirection
32
 * @title: GstVideoDirection
33
 * @short_description: Interface for elements providing video
34
 * rotation and flipping controls
35
 *
36
 * The interface allows unified access to control flipping and rotation
37
 * operations of video-sources or operators.
38
 *
39
 * Since: 1.10
40
 */
41
42
0
G_DEFINE_INTERFACE (GstVideoDirection, gst_video_direction, 0);
43
0
44
0
static void
45
0
gst_video_direction_default_init (GstVideoDirectionInterface * iface)
46
0
{
47
0
  g_object_interface_install_property (iface,
48
0
      g_param_spec_enum ("video-direction", "Video direction",
49
0
          "Video direction: rotation and flipping",
50
0
          GST_TYPE_VIDEO_ORIENTATION_METHOD, PROP_DIRECTION_DEFAULT,
51
0
          GST_PARAM_CONTROLLABLE | G_PARAM_READWRITE | G_PARAM_CONSTRUCT |
52
0
          G_PARAM_STATIC_STRINGS));
53
0
}