Skip to content

Commit b7b717a

Browse files
committed
* Add support for CaptureStream.hasNewFrame().
* Prep release v0.0.17.
1 parent 299a52a commit b7b717a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ language: java
22

33
install: true
44

5-
before_install: ./scripts/download-openpnp-capture.sh v0.0.16
5+
before_install: ./scripts/download-openpnp-capture.sh v0.0.17
66

77
script: mvn clean package
88

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>org.openpnp</groupId>
55
<artifactId>openpnp-capture-java</artifactId>
6-
<version>0.0.16</version>
6+
<version>0.0.17</version>
77
<properties>
88
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
99
</properties>

src/main/java/org/openpnp/capture/CaptureStream.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,10 @@ public BufferedImage capture() throws Exception {
110110

111111
return image;
112112
}
113-
114-
113+
114+
public boolean hasNewFrame() {
115+
return OpenpnpCaptureLibrary.INSTANCE.Cap_hasNewFrame(context, streamId) == 1;
116+
}
115117

116118
@Override
117119
public String toString() {

0 commit comments

Comments
 (0)