gst_plugins_base/gst-libs/gst/interfaces/videoorientation.h
changeset 0 0e761a78d257
equal deleted inserted replaced
-1:000000000000 0:0e761a78d257
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __GST_VIDEO_ORIENTATION_H__
       
    20 #define __GST_VIDEO_ORIENTATION_H__
       
    21 
       
    22 #include <gst/gst.h>
       
    23 #include <gst/interfaces/interfaces-enumtypes.h>
       
    24 
       
    25 G_BEGIN_DECLS
       
    26 
       
    27 #define GST_TYPE_VIDEO_ORIENTATION \
       
    28   (gst_video_orientation_get_type ())
       
    29 #define GST_VIDEO_ORIENTATION(obj) \
       
    30   (GST_IMPLEMENTS_INTERFACE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_VIDEO_ORIENTATION, GstVideoOrientation))
       
    31 #define GST_IS_VIDEO_ORIENTATION(obj) \
       
    32   (GST_IMPLEMENTS_INTERFACE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_VIDEO_ORIENTATION))
       
    33 #define GST_VIDEO_ORIENTATION_GET_IFACE(inst) \
       
    34   (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GST_TYPE_VIDEO_ORIENTATION, GstVideoOrientationInterface))
       
    35 
       
    36 /**
       
    37  * GstVideoOrientation:
       
    38  *
       
    39  * Opaque #GstVideoOrientation data structure.
       
    40  */
       
    41 typedef struct _GstVideoOrientation GstVideoOrientation;
       
    42 
       
    43 /**
       
    44  * GstVideoOrientationInterface:
       
    45  * @parent: parent interface type.
       
    46  * @get_hflip: virtual method to get horizontal flipping state
       
    47  * @get_vflip: virtual method to get vertical flipping state
       
    48  * @get_hcenter: virtual method to get horizontal centering state
       
    49  * @get_vcenter: virtual method to get vertical centering state
       
    50  * @set_hflip: virtual method to set horizontal flipping state
       
    51  * @set_vflip: virtual method to set vertical flipping state
       
    52  * @set_hcenter: virtual method to set horizontal centering state
       
    53  * @set_vcenter: virtual method to set vertical centering state
       
    54  *
       
    55  * #GstVideoOrientationInterface interface.
       
    56  */
       
    57 typedef struct _GstVideoOrientationInterface {
       
    58   GTypeInterface parent;
       
    59 
       
    60   /* virtual functions */
       
    61   gboolean (* get_hflip)   (GstVideoOrientation *video_orientation, gboolean *flip);
       
    62   gboolean (* get_vflip)   (GstVideoOrientation *video_orientation, gboolean *flip);
       
    63   gboolean (* get_hcenter) (GstVideoOrientation *video_orientation, gint *center);
       
    64   gboolean (* get_vcenter) (GstVideoOrientation *video_orientation, gint *center);
       
    65 
       
    66   gboolean (* set_hflip)   (GstVideoOrientation *video_orientation, gboolean flip);
       
    67   gboolean (* set_vflip)   (GstVideoOrientation *video_orientation, gboolean flip);
       
    68   gboolean (* set_hcenter) (GstVideoOrientation *video_orientation, gint center);
       
    69   gboolean (* set_vcenter) (GstVideoOrientation *video_orientation, gint center);
       
    70 
       
    71   /*< private > */
       
    72   gpointer _gst_reserved[GST_PADDING];
       
    73 } GstVideoOrientationInterface;
       
    74 #ifdef __SYMBIAN32__
       
    75 IMPORT_C
       
    76 #endif
       
    77 
       
    78 
       
    79 GType           gst_video_orientation_get_type              (void);
       
    80 
       
    81 /* virtual class function wrappers */
       
    82 #ifdef __SYMBIAN32__
       
    83 IMPORT_C
       
    84 #endif
       
    85 
       
    86 gboolean gst_video_orientation_get_hflip (GstVideoOrientation *video_orientation, gboolean *flip);
       
    87 #ifdef __SYMBIAN32__
       
    88 IMPORT_C
       
    89 #endif
       
    90 
       
    91 gboolean gst_video_orientation_get_vflip (GstVideoOrientation *video_orientation, gboolean *flip);
       
    92 #ifdef __SYMBIAN32__
       
    93 IMPORT_C
       
    94 #endif
       
    95 
       
    96 gboolean gst_video_orientation_get_hcenter (GstVideoOrientation *video_orientation, gint *center);
       
    97 #ifdef __SYMBIAN32__
       
    98 IMPORT_C
       
    99 #endif
       
   100 
       
   101 gboolean gst_video_orientation_get_vcenter (GstVideoOrientation *video_orientation, gint *center);
       
   102 #ifdef __SYMBIAN32__
       
   103 IMPORT_C
       
   104 #endif
       
   105 
       
   106 
       
   107 gboolean gst_video_orientation_set_hflip (GstVideoOrientation *video_orientation, gboolean flip);
       
   108 #ifdef __SYMBIAN32__
       
   109 IMPORT_C
       
   110 #endif
       
   111 
       
   112 gboolean gst_video_orientation_set_vflip (GstVideoOrientation *video_orientation, gboolean flip);
       
   113 #ifdef __SYMBIAN32__
       
   114 IMPORT_C
       
   115 #endif
       
   116 
       
   117 gboolean gst_video_orientation_set_hcenter (GstVideoOrientation *video_orientation, gint center);
       
   118 #ifdef __SYMBIAN32__
       
   119 IMPORT_C
       
   120 #endif
       
   121 
       
   122 gboolean gst_video_orientation_set_vcenter (GstVideoOrientation *video_orientation, gint center);
       
   123 
       
   124 G_END_DECLS
       
   125 
       
   126 #endif /* __GST_VIDEO_ORIENTATION_H__ */