Skip to content

Commit

Permalink
Add get device ID, name and ref methods, refs #256
Browse files Browse the repository at this point in the history
  • Loading branch information
sarxos committed Aug 29, 2014
1 parent 132996c commit 6f15ac2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ public class WebcamDefaultDevice implements WebcamDevice, BufferAccess, Runnable
* but hope that OpenIMAJ can handle this.
*/
private final static Dimension[] DIMENSIONS = new Dimension[] {
WebcamResolution.QQVGA.getSize(),
WebcamResolution.QVGA.getSize(),
WebcamResolution.VGA.getSize(),
WebcamResolution.QQVGA.getSize(),
WebcamResolution.QVGA.getSize(),
WebcamResolution.VGA.getSize(),
};

private class NextFrameTask extends WebcamTask {
Expand Down Expand Up @@ -149,6 +149,18 @@ public String getName() {
return fullname;
}

public String getDeviceName() {
return name;
}

public String getDeviceId() {
return id;
}

public Device getDeviceRef() {
return device;
}

@Override
public Dimension[] getResolutions() {
return DIMENSIONS;
Expand Down

0 comments on commit 6f15ac2

Please sign in to comment.