Fix typos
This commit is contained in:
parent
71cf60f42f
commit
5f88fce824
|
@ -29,7 +29,7 @@ public class CaptureManagerFrameGrabberSession {
|
||||||
private byte[] arrayByteBuffer = null;
|
private byte[] arrayByteBuffer = null;
|
||||||
private BufferedImage bufferedImage = null;
|
private BufferedImage bufferedImage = null;
|
||||||
|
|
||||||
private ISampleGrabberCall simpleGrabberCall = null;
|
private ISampleGrabberCall sampleGrabberCall = null;
|
||||||
|
|
||||||
private SampleModel sampleModel = null;
|
private SampleModel sampleModel = null;
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ public class CaptureManagerFrameGrabberSession {
|
||||||
.orElse(null);
|
.orElse(null);
|
||||||
|
|
||||||
if (sinkFactory == null) {
|
if (sinkFactory == null) {
|
||||||
LOG.error("Could not find SampleGrabberCallbackSinkFactory");
|
LOG.error("Could not find SampleGrabberCallSinkFactory");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,12 +111,12 @@ public class CaptureManagerFrameGrabberSession {
|
||||||
LOG.error("Could not find valid value part GUID in sink factory = {}", sinkFactory);
|
LOG.error("Could not find valid value part GUID in sink factory = {}", sinkFactory);
|
||||||
}
|
}
|
||||||
|
|
||||||
final ISampleGrabberCallSinkFactory sampleGrabberCallbackSinkFactory = sinkControl.createSampleGrabberCallSinkFactory(
|
final ISampleGrabberCallSinkFactory sampleGrabberCallSinkFactory = sinkControl.createSampleGrabberCallSinkFactory(
|
||||||
sinkGUID
|
sinkGUID
|
||||||
);
|
);
|
||||||
|
|
||||||
if (sampleGrabberCallbackSinkFactory == null) {
|
if (sampleGrabberCallSinkFactory == null) {
|
||||||
LOG.error("Could not create ISampleGrabberCallbackSinkFactory");
|
LOG.error("Could not create ISampleGrabberCallSinkFactory");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,18 +142,18 @@ public class CaptureManagerFrameGrabberSession {
|
||||||
new int[]{2, 1, 0} // Try {1,2,3}, {3,2,1}, {0,1,2}
|
new int[]{2, 1, 0} // Try {1,2,3}, {3,2,1}, {0,1,2}
|
||||||
);
|
);
|
||||||
|
|
||||||
simpleGrabberCall = sampleGrabberCallbackSinkFactory.createOutputNode(
|
sampleGrabberCall = sampleGrabberCallSinkFactory.createOutputNode(
|
||||||
MFMediaType_Video,
|
MFMediaType_Video,
|
||||||
videoFormat,
|
videoFormat,
|
||||||
bufferSizeBytes
|
bufferSizeBytes
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
if (simpleGrabberCall == null) {
|
if (sampleGrabberCall == null) {
|
||||||
LOG.error("Could not create ISampleGrabberCallback");
|
LOG.error("Could not create ISampleGrabberCall");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
final IStreamNode streamNode = simpleGrabberCall.getStreamNode();
|
final IStreamNode streamNode = sampleGrabberCall.getStreamNode();
|
||||||
|
|
||||||
if (streamNode == null) {
|
if (streamNode == null) {
|
||||||
LOG.error("Could not create streamNode");
|
LOG.error("Could not create streamNode");
|
||||||
|
@ -187,8 +187,8 @@ public class CaptureManagerFrameGrabberSession {
|
||||||
|
|
||||||
session.addUpdateStateListener(new IUpdateStateListener() {
|
session.addUpdateStateListener(new IUpdateStateListener() {
|
||||||
@Override
|
@Override
|
||||||
public void invoke(int aCallbackEventCode, int aSessionDescriptor) {
|
public void invoke(int aCallEventCode, int aSessionDescriptor) {
|
||||||
LOG.info("invoke with (aCallbackEventCode, aSessionDescriptor) = ({}, {})", aCallbackEventCode, aSessionDescriptor);
|
LOG.info("invoke with (aCallEventCode, aSessionDescriptor) = ({}, {})", aCallEventCode, aSessionDescriptor);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -285,7 +285,7 @@ public class CaptureManagerFrameGrabberSession {
|
||||||
|
|
||||||
|
|
||||||
public synchronized int updateDirectBuffer() {
|
public synchronized int updateDirectBuffer() {
|
||||||
return simpleGrabberCall.readData(directBuffer);
|
return sampleGrabberCall.readData(directBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isOpen() {
|
public boolean isOpen() {
|
||||||
|
|
Loading…
Reference in New Issue