Class ThreadedRecorder<T>
- java.lang.Object
-
- nl.elec332.util.javarecorder.AbstractDelegatedRecorder<T>
-
- nl.elec332.util.javarecorder.modifiers.ThreadedRecorder<T>
-
- All Implemented Interfaces:
nl.elec332.util.implementationmanager.api.IExtensionImplementation,IRecorder<T>
public class ThreadedRecorder<T> extends AbstractDelegatedRecorder<T>
Created by Elec332 on 12-4-2020
-
-
Field Summary
-
Fields inherited from class nl.elec332.util.javarecorder.AbstractDelegatedRecorder
parent
-
-
Constructor Summary
Constructors Constructor Description ThreadedRecorder(IRecorder<T> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.Supplier<T>convertFrame(java.awt.image.BufferedImage image)voidencodeFrame(java.util.function.Supplier<T> frame)voidencodeFrame(T frame)booleanisRecording()voidstartRecorder(int fps, int width, int height, java.io.File file)voidstopRecorder()-
Methods inherited from class nl.elec332.util.javarecorder.AbstractDelegatedRecorder
getImplementationSpeed, getImplementationType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface nl.elec332.util.javarecorder.api.IRecorder
encodeFrame
-
-
-
-
Method Detail
-
startRecorder
public void startRecorder(int fps, int width, int height, java.io.File file)
-
stopRecorder
public void stopRecorder()
-
isRecording
public boolean isRecording()
-
encodeFrame
public void encodeFrame(T frame)
-
encodeFrame
public void encodeFrame(java.util.function.Supplier<T> frame)
-
convertFrame
public java.util.function.Supplier<T> convertFrame(java.awt.image.BufferedImage image)
-
-