Skip to content

Commit 2f24d08

Browse files
Fix VideoOrientation interface / comment out code that never worked!
1 parent a7c254d commit 2f24d08

File tree

2 files changed

+26
-24
lines changed

2 files changed

+26
-24
lines changed

src/org/freedesktop/gstreamer/interfaces/VideoOrientation.java

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
* Copyright (c) 2019 Neil c Smith
23
* Copyright (c) 2009 Levente Farkas
34
* Copyright (c) 2009 Tamas Korodi <[email protected]>
45
*
@@ -45,21 +46,21 @@ private VideoOrientation(Element element) {
4546
super(element, GSTVIDEOORIENTATION_API.gst_video_orientation_get_type());
4647
}
4748

48-
public boolean getHflip(boolean flip) {
49-
return GSTVIDEOORIENTATION_API.gst_video_orientation_get_hflip(this, flip);
50-
}
51-
52-
public boolean getVflip(boolean flip) {
53-
return GSTVIDEOORIENTATION_API.gst_video_orientation_get_vflip(this, flip);
54-
}
55-
56-
public boolean getHcenter(int center) {
57-
return GSTVIDEOORIENTATION_API.gst_video_orientation_get_hcenter(this, center);
58-
}
59-
60-
public boolean getVcenter(int center) {
61-
return GSTVIDEOORIENTATION_API.gst_video_orientation_get_vcenter(this, center);
62-
}
49+
// public boolean getHflip(boolean flip) {
50+
// return GSTVIDEOORIENTATION_API.gst_video_orientation_get_hflip(this, flip);
51+
// }
52+
//
53+
// public boolean getVflip(boolean flip) {
54+
// return GSTVIDEOORIENTATION_API.gst_video_orientation_get_vflip(this, flip);
55+
// }
56+
//
57+
// public boolean getHcenter(int center) {
58+
// return GSTVIDEOORIENTATION_API.gst_video_orientation_get_hcenter(this, center);
59+
// }
60+
//
61+
// public boolean getVcenter(int center) {
62+
// return GSTVIDEOORIENTATION_API.gst_video_orientation_get_vcenter(this, center);
63+
// }
6364

6465
public boolean setHflip(boolean flip) {
6566
return GSTVIDEOORIENTATION_API.gst_video_orientation_set_hflip(this, flip);

src/org/freedesktop/gstreamer/lowlevel/GstVideoOrientationAPI.java

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
* Copyright (c) 2019 Neil C Smith
23
* Copyright (c) 2009 Levente Farkas
34
* Copyright (c) 2009 Tamas Korodi <[email protected]>
45
*
@@ -24,18 +25,18 @@
2425
import com.sun.jna.Library;
2526

2627
public interface GstVideoOrientationAPI extends Library {
27-
GstVideoOrientationAPI GSTVIDEOORIENTATION_API = GstNative.load("gstinterfaces", GstVideoOrientationAPI.class);
28+
GstVideoOrientationAPI GSTVIDEOORIENTATION_API = GstNative.load("gstvideo", GstVideoOrientationAPI.class);
2829

2930
GType gst_video_orientation_get_type();
3031

31-
/* vitrual class functions */
32-
boolean gst_video_orientation_get_hflip(VideoOrientation video_orientation, boolean flip);
33-
34-
boolean gst_video_orientation_get_vflip(VideoOrientation video_orientation, boolean flip);
35-
36-
boolean gst_video_orientation_get_hcenter(VideoOrientation video_orientation, int center);
37-
38-
boolean gst_video_orientation_get_vcenter(VideoOrientation video_orientation, int center);
32+
// @TODO need implementing to use pointers
33+
// boolean gst_video_orientation_get_hflip(VideoOrientation video_orientation, boolean flip);
34+
//
35+
// boolean gst_video_orientation_get_vflip(VideoOrientation video_orientation, boolean flip);
36+
//
37+
// boolean gst_video_orientation_get_hcenter(VideoOrientation video_orientation, int center);
38+
//
39+
// boolean gst_video_orientation_get_vcenter(VideoOrientation video_orientation, int center);
3940

4041
boolean gst_video_orientation_set_hflip(VideoOrientation video_orientation, boolean flip);
4142

0 commit comments

Comments
 (0)