Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/main/java/com/aimmac23/node/RobotScreenshotSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@
import java.awt.image.BufferedImage;
import java.awt.image.ColorModel;
import java.awt.image.DataBufferInt;
import java.util.logging.Logger;

import com.aimmac23.hub.videostorage.LocalFileVideoStore;
import com.aimmac23.node.jna.EncoderInterface;
import com.aimmac23.node.jna.JnaLibraryLoader;
import com.sun.jna.Pointer;

public class RobotScreenshotSource implements ScreenshotSource {

private static final Logger log = Logger.getLogger(RobotScreenshotSource.class.getName());

private Robot robot;

public RobotScreenshotSource() throws AWTException, SecurityException {
Expand Down Expand Up @@ -66,7 +70,7 @@ public void doStartupSanityChecks() {
int bitDepth = bitAllocations[0] + bitAllocations[1] + bitAllocations[2];

if(bitDepth != 24) {
throw new IllegalStateException("Display colour depth incorrect (should be 8 bits of red, blue and green). Currently: "
log.warning("Display colour depth incorrect (should be 8 bits of red, blue and green). Currently: "
+ bitAllocations[0] + "-" + bitAllocations[1] + "-" + bitAllocations[2]);
}
}
Expand Down