Class DecimatedRecorder<T>
- java.lang.Object
-
- nl.elec332.util.javarecorder.AbstractDelegatedRecorder<T>
-
- nl.elec332.util.javarecorder.modifiers.DecimatedRecorder<T>
-
- All Implemented Interfaces:
nl.elec332.util.implementationmanager.api.IExtensionImplementation,IRecorder<T>
public class DecimatedRecorder<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 DecimatedRecorder(IRecorder<T> parent, int maxFps)
-
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)intgetImplementationSpeed()nl.elec332.util.implementationmanager.api.ImplementationTypegetImplementationType()booleanisRecording()voidstartRecorder(int fps, int width, int height, java.io.File file)voidstopRecorder()-
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
-
getImplementationType
public nl.elec332.util.implementationmanager.api.ImplementationType getImplementationType()
- Specified by:
getImplementationTypein interfacenl.elec332.util.implementationmanager.api.IExtensionImplementation- Specified by:
getImplementationTypein interfaceIRecorder<T>- Overrides:
getImplementationTypein classAbstractDelegatedRecorder<T>
-
getImplementationSpeed
public int getImplementationSpeed()
- Specified by:
getImplementationSpeedin interfacenl.elec332.util.implementationmanager.api.IExtensionImplementation- Overrides:
getImplementationSpeedin classAbstractDelegatedRecorder<T>
-
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)
-
-