Skip to content

Commit

Permalink
Fix the java wrapper
Browse files Browse the repository at this point in the history
Signed-off-by: Erwan Daubert <erwan.daubert@gmail.com>
  • Loading branch information
edaubert authored and zarvox committed Nov 14, 2011
1 parent 53e8aa2 commit 5855740
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 3 deletions.
26 changes: 25 additions & 1 deletion wrappers/java/src/main/java/org/openkinect/freenect/Context.java
@@ -1,3 +1,27 @@
/**
* This file is part of the OpenKinect Project. http://www.openkinect.org
*
* Copyright (c) 2010 individual OpenKinect contributors. See the CONTRIB file
* for details.
*
* This code is licensed to you under the terms of the Apache License, version
* 2.0, or, at your option, the terms of the GNU General Public License,
* version 2.0. See the APACHE20 and GPL20 files for the text of the licenses,
* or the following URLs:
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.gnu.org/licenses/gpl-2.0.txt
*
* If you redistribute this file in source form, modified or unmodified,
* you may:
* 1) Leave this header intact and distribute it under the same terms,
* accompanying it with the APACHE20 and GPL20 files, or
* 2) Delete the Apache 2.0 clause and accompany it with the GPL20 file, or
* 3) Delete the GPL v2.0 clause and accompany it with the APACHE20 file
* In all cases you must keep the copyright notice intact and include a copy
* of the CONTRIB file.
* Binary distributions must follow the binary distribution requirements of
* either License.
*/
package org.openkinect.freenect; package org.openkinect.freenect;


public interface Context { public interface Context {
Expand All @@ -6,4 +30,4 @@ public interface Context {
void setLogLevel(LogLevel level); void setLogLevel(LogLevel level);
Device openDevice(int index); Device openDevice(int index);
void shutdown(); void shutdown();
} }
@@ -1,3 +1,27 @@
/**
* This file is part of the OpenKinect Project. http://www.openkinect.org
*
* Copyright (c) 2010 individual OpenKinect contributors. See the CONTRIB file
* for details.
*
* This code is licensed to you under the terms of the Apache License, version
* 2.0, or, at your option, the terms of the GNU General Public License,
* version 2.0. See the APACHE20 and GPL20 files for the text of the licenses,
* or the following URLs:
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.gnu.org/licenses/gpl-2.0.txt
*
* If you redistribute this file in source form, modified or unmodified,
* you may:
* 1) Leave this header intact and distribute it under the same terms,
* accompanying it with the APACHE20 and GPL20 files, or
* 2) Delete the Apache 2.0 clause and accompany it with the GPL20 file, or
* 3) Delete the GPL v2.0 clause and accompany it with the APACHE20 file
* In all cases you must keep the copyright notice intact and include a copy
* of the CONTRIB file.
* Binary distributions must follow the binary distribution requirements of
* either License.
*/
package org.openkinect.freenect; package org.openkinect.freenect;




Expand Down Expand Up @@ -29,4 +53,4 @@ public int getHeight() {
public int getFrameSize() { public int getFrameSize() {
return frameSize; return frameSize;
} }
} }
@@ -1,7 +1,31 @@
/**
* This file is part of the OpenKinect Project. http://www.openkinect.org
*
* Copyright (c) 2010 individual OpenKinect contributors. See the CONTRIB file
* for details.
*
* This code is licensed to you under the terms of the Apache License, version
* 2.0, or, at your option, the terms of the GNU General Public License,
* version 2.0. See the APACHE20 and GPL20 files for the text of the licenses,
* or the following URLs:
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.gnu.org/licenses/gpl-2.0.txt
*
* If you redistribute this file in source form, modified or unmodified,
* you may:
* 1) Leave this header intact and distribute it under the same terms,
* accompanying it with the APACHE20 and GPL20 files, or
* 2) Delete the Apache 2.0 clause and accompany it with the GPL20 file, or
* 3) Delete the GPL v2.0 clause and accompany it with the APACHE20 file
* In all cases you must keep the copyright notice intact and include a copy
* of the CONTRIB file.
* Binary distributions must follow the binary distribution requirements of
* either License.
*/
package org.openkinect.freenect; package org.openkinect.freenect;


import java.nio.ByteBuffer; import java.nio.ByteBuffer;


public interface DepthHandler { public interface DepthHandler {
void onFrameReceived(DepthFormat format, ByteBuffer frame, int timestamp); void onFrameReceived(DepthFormat format, ByteBuffer frame, int timestamp);
} }

0 comments on commit 5855740

Please sign in to comment.