00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include "videoorientation.h"
00020 #include <gst/interfaces/videoorientation.h>
00021
00022 namespace QGst {
00023
00024 bool VideoOrientation::horizontalFlipEnabled() const
00025 {
00026 gboolean flipped;
00027
00028 gst_video_orientation_get_hflip(object<GstVideoOrientation>(), &flipped);
00029 return flipped;
00030 }
00031
00032 bool VideoOrientation::verticalFlipEnabled() const
00033 {
00034 gboolean flipped;
00035
00036 gst_video_orientation_get_vflip(object<GstVideoOrientation>(), &flipped);
00037 return flipped;
00038 }
00039
00040 int VideoOrientation::horizontalCenter() const
00041 {
00042 int center = 0;
00043
00044 gst_video_orientation_get_hcenter(object<GstVideoOrientation>(), ¢er);
00045 return center;
00046 }
00047
00048 int VideoOrientation::verticalCenter() const
00049 {
00050 int center = 0;
00051
00052 gst_video_orientation_get_vcenter(object<GstVideoOrientation>(), ¢er);
00053 return center;
00054 }
00055
00056 bool VideoOrientation::enableHorizontalFlip(bool enabled)
00057 {
00058 return gst_video_orientation_set_hflip(object<GstVideoOrientation>(), enabled);
00059 }
00060
00061 bool VideoOrientation::enableVerticalFlip(bool enabled)
00062 {
00063 return gst_video_orientation_set_vflip(object<GstVideoOrientation>(), enabled);
00064 }
00065
00066 bool VideoOrientation::setHorizontalCenter(int center)
00067 {
00068 return gst_video_orientation_set_hcenter(object<GstVideoOrientation>(), center);
00069 }
00070
00071 bool VideoOrientation::setVerticalCenter(int center)
00072 {
00073 return gst_video_orientation_set_hcenter(object<GstVideoOrientation>(), center);
00074 }
00075
00076 }
00077