Package nl.elec332.util.javarecorder.api
Interface IRecorder<T>
-
- All Superinterfaces:
nl.elec332.util.implementationmanager.api.IExtensionImplementation
- All Known Implementing Classes:
AbstractDelegatedRecorder,DecimatedRecorder,JCodecRecorder,ThreadedRecorder
public interface IRecorder<T> extends nl.elec332.util.implementationmanager.api.IExtensionImplementationCreated by Elec332 on 12-4-2020
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.function.Supplier<T>convertFrame(java.awt.image.BufferedImage image)default voidencodeFrame(java.awt.image.BufferedImage frame)default voidencodeFrame(java.util.function.Supplier<T> frame)voidencodeFrame(T frame)nl.elec332.util.implementationmanager.api.ImplementationTypegetImplementationType()booleanisRecording()static java.awt.image.BufferedImagereformatImage(java.awt.image.BufferedImage sourceImage, int targetType, int width, int height)voidstartRecorder(int fps, int width, int height, java.io.File file)voidstopRecorder()
-
-
-
Method Detail
-
getImplementationType
nl.elec332.util.implementationmanager.api.ImplementationType getImplementationType()
- Specified by:
getImplementationTypein interfacenl.elec332.util.implementationmanager.api.IExtensionImplementation
-
startRecorder
void startRecorder(int fps, int width, int height, java.io.File file)
-
stopRecorder
void stopRecorder()
-
isRecording
boolean isRecording()
-
encodeFrame
void encodeFrame(T frame)
-
encodeFrame
default void encodeFrame(java.util.function.Supplier<T> frame)
-
encodeFrame
default void encodeFrame(java.awt.image.BufferedImage frame)
-
convertFrame
java.util.function.Supplier<T> convertFrame(java.awt.image.BufferedImage image)
-
reformatImage
static java.awt.image.BufferedImage reformatImage(java.awt.image.BufferedImage sourceImage, int targetType, int width, int height)
-
-