Skip to content

Commit

Permalink
Remove buffer access from FsWebcamDevice, refs #240
Browse files Browse the repository at this point in the history
  • Loading branch information
sarxos committed Jul 24, 2014
1 parent 5742ff2 commit 6e4923b
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.ByteBuffer;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
Expand All @@ -29,7 +28,7 @@
import com.github.sarxos.webcam.WebcamResolution;


public class FsWebcamDevice implements WebcamDevice, WebcamDevice.BufferAccess {
public class FsWebcamDevice implements WebcamDevice {

public static final class ExecutorThreadFactory implements ThreadFactory {

Expand Down Expand Up @@ -174,14 +173,6 @@ private synchronized byte[] readBytes() {

}

@Override
public synchronized ByteBuffer getImageBytes() {
if (!open.get()) {
return null;
}
return ByteBuffer.wrap(readBytes());
}

@Override
public BufferedImage getImage() {

Expand Down

0 comments on commit 6e4923b

Please sign in to comment.