/**
* Must be run in the same thread as {@link #prepare}.
*/
- public Optional<Frame> grabFrame() {
+ public Optional<VideoFrame> grabFrame() {
try {
byte[] data = new byte[bytesPerFrame];
int count = fileStream.read(data);
log("# of bytes read = " + count);
- return Optional.of(Frame.of(data, config));
+ return Optional.of(VideoFrame.of(data, config));
} catch (IOException e) {
e.printStackTrace();
}